]> git-server-git.apps.pok.os.sepia.ceph.com Git - radosgw-agent.git/commit
worker: check op state for progress on any HTTP error 14/head
authorJosh Durgin <jdurgin@redhat.com>
Thu, 18 Dec 2014 05:49:35 +0000 (21:49 -0800)
committerJosh Durgin <jdurgin@redhat.com>
Fri, 19 Dec 2014 11:22:09 +0000 (03:22 -0800)
commit2e3b1f94fccb29582affddbe4823d74c544be614
tree9d97582b8379ba2d0985156c61af8adc7a4f61f1
parent8d47f62f6f179040c504eba6ed01094a24da944e
worker: check op state for progress on any HTTP error

500 can be caused by an fcgi timeout when the operation still ends up
succeeding. It doesn't hurt to check for op state being in progress in
general in case other error codes happen but don't indicate actual
failure of the copy, since wait_for_object fails immediately if the
op state is not in progress.

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