]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: RGWMetaSyncShardControlCR retries with backoff on all error codes 13868/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 20 Feb 2017 21:00:01 +0000 (16:00 -0500)
committerNathan Cutler <ncutler@suse.com>
Wed, 8 Mar 2017 14:10:26 +0000 (15:10 +0100)
commit1f86be6e19dc3e26f62bf57c55d662414247b480
tree6764a6051ae8b65623471e710c59d10016c64f2e
parent98a87fa97c9b23e21a05130c72730f5034691310
rgw: RGWMetaSyncShardControlCR retries with backoff on all error codes

RGWBackoffControlCR only treats EBUSY and EAGAIN as 'temporary' error
codes, with all other errors being fatal when exit_on_error is set

to RGWMetaSyncShardControlCR, a 'fatal' error means that no further sync
is possible on that shard until the gateway restarts

this changes RGWMetaSyncShardControlCR to set exit_on_error to false, so
that it will continue to retry with backoff no matter what error code it
gets

Fixes: http://tracker.ceph.com/issues/19019
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 3e4059557fd6cad5d31014327f60832b36d04a6c)
src/rgw/rgw_sync.cc