]> git-server-git.apps.pok.os.sepia.ceph.com Git - radosgw-agent.git/commit
Immediately fail when op state is not found
authorJosh Durgin <jdurgin@redhat.com>
Tue, 25 Nov 2014 00:26:27 +0000 (16:26 -0800)
committerJosh Durgin <jdurgin@redhat.com>
Tue, 25 Nov 2014 00:44:09 +0000 (16:44 -0800)
commit39a967e8e5ac1112a534697663bd3eb7fe1cb59b
treefa2e435ee385fb327686a9b42b31762534769c3e
parentbcf04288e1ca0207529be3fb8a6a7778d14afb60
Immediately fail when op state is not found

There's a very narrow window in which our connection sending the copy
request could fail before radosgw records the op state, and we query
the op state in that time. Retrying later at that point is fine, and
avoids a long timeout if there is a bug causing us to reach this point
without the op state ever being recorded. This race hasn't been
observed in practice.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
radosgw_agent/tests/test_worker.py
radosgw_agent/worker.py