From 5d3882d5653cb39e447591a7f2f32457b4c9db50 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Fri, 6 May 2016 15:32:50 -0700 Subject: [PATCH] test/rgw: fix bucket checkpoint Can refer to the incremental sync marker only if bucket is in the incremental sync state. Signed-off-by: Yehuda Sadeh --- src/test/rgw/test_multi.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/test/rgw/test_multi.py b/src/test/rgw/test_multi.py index 88626851a65..92b36bd7612 100644 --- a/src/test/rgw/test_multi.py +++ b/src/test/rgw/test_multi.py @@ -323,7 +323,10 @@ class RGWRealm: markers={} for entry in sync_status: val = entry['val'] - pos = val['inc_marker']['position'].split('#')[-1] # get rid of shard id; e.g., 6#00000000002.132.3 -> 00000000002.132.3 + if val['status'] == 'incremental-sync': + pos = val['inc_marker']['position'].split('#')[-1] # get rid of shard id; e.g., 6#00000000002.132.3 -> 00000000002.132.3 + else: + pos = '' markers[entry['key']] = pos return markers -- 2.47.3