Skip to content

Commit c18db27

Browse files
suxb201claude
andcommitted
test: add debug logs for marker key sync timeout
Add more detailed logging to help diagnose intermittent CI failures in wait_for_sync(), specifically when marker key deletion times out. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8c1570e commit c18db27

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/helpers/shake.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,19 @@ def wait_for_sync(self, timeout: float = 5, db: int = 0):
189189

190190
# 5. Delete marker key
191191
self.src.do("del", marker_key)
192+
pybbt.log(f"Deleted marker key from src: {marker_key}")
192193

193194
# 6. Wait for marker to be deleted in dst
194195
while True:
195196
result = self.dst.do("get", marker_key)
196197
if result is None:
198+
pybbt.log(f"Marker key deleted from dst: {marker_key}")
197199
break
198200
if timer.elapsed() > timeout:
201+
# Log detailed status for debugging
202+
status = self.get_status()
203+
pybbt.log(f"Timeout waiting for marker deletion. Status: consistent={status.get('consistent')}")
204+
pybbt.log(f"Marker key still exists in dst with value: {result}")
199205
raise TimeoutError(f"marker key not deleted within {timeout}s")
200206
time.sleep(0.1) # Increased from 0.01 to 0.1 for cluster stability
201207

0 commit comments

Comments
 (0)