Merge pull request #39334 from ClickHouse/try_fix_flaky_test_store_cleanup

Try fix flaky test_store_cleanup
This commit is contained in:
Alexander Tokmakov 2022-07-18 21:44:40 +03:00 committed by GitHub
commit ffc50fe6ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,7 +197,10 @@ def test_store_cleanup(started_cluster):
node1.exec_in_container(["mkdir", f"{path_to_data}/store/kek"])
node1.exec_in_container(["touch", f"{path_to_data}/store/12"])
node1.exec_in_container(["mkdir", f"{path_to_data}/store/456"])
try:
node1.exec_in_container(["mkdir", f"{path_to_data}/store/456"])
except Exception as e:
print("Failed to create 456/:", str(e))
node1.exec_in_container(["mkdir", f"{path_to_data}/store/456/testgarbage"])
node1.exec_in_container(
["mkdir", f"{path_to_data}/store/456/30000000-1000-4000-8000-000000000003"]
@ -218,7 +221,7 @@ def test_store_cleanup(started_cluster):
timeout=60,
look_behind_lines=1000,
)
node1.wait_for_log_line("directories from store")
node1.wait_for_log_line("directories from store", look_behind_lines=1000)
store = node1.exec_in_container(["ls", f"{path_to_data}/store"])
assert "100" in store