]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: RGWMetaSyncShardControlCR retries with backoff on all error codes 13546/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 20 Feb 2017 21:00:01 +0000 (16:00 -0500)
committerCasey Bodley <cbodley@redhat.com>
Mon, 27 Feb 2017 20:05:18 +0000 (15:05 -0500)
commit3e4059557fd6cad5d31014327f60832b36d04a6c
tree1dc91a0fa8c7b6fcb88909b55e9069594ee82d04
parentc0b1e6ef10d3ac9c95ee80c55d5a6ff68f4197b5
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>
src/rgw/rgw_sync.cc