Andrew Wong has uploaded this change for review. ( http://gerrit.cloudera.org:8080/16145
Change subject: test: fix flakiness of TestDeletedRowsetGc ...................................................................... test: fix flakiness of TestDeletedRowsetGc The test would sometimes fail (4/100 times in debug mode) with the following newly added log lines: W0706 19:48:08.251113 4454 env_posix.cc:1634] Error running callback with file /tmp/dist-test-taskGX39QD/test-tmp/tablet_history_gc-itest.0.TabletHistoryGcITest.TestDeletedRowsetGc.1594064887277463-4454/minicluster-data/ts-0-root/tablet-meta/57ca68c74fa94632b1acffbc547afa4c.kudutmp.308Cez during walk: Not found: /tmp/dist-test-taskGX39QD/test-tmp/tablet_history_gc-itest.0.TabletHistoryGcITest.TestDeletedRowsetGc.1594064887277463-4454/minicluster-data/ts-0-root/tablet-meta/57ca68c74fa94632b1acffbc547afa4c.kudutmp.308Cez: No such file or directory (error 2) ../../src/kudu/integration-tests/tablet_history_gc-itest.cc:327: Failure Failed Bad status: IO error: /tmp/dist-test-taskGX39QD/test-tmp/tablet_history_gc-itest.0.TabletHistoryGcITest.TestDeletedRowsetGc.1594064887277463-4454/minicluster-data/ts-0-root: One or more errors occurred It seems recursing through the file system isn't a great idea when maintenance ops are running in the background. This addresses the issue by asserting eventual success. With this patch, the test succeeded 1000/1000 times in debug mode. Change-Id: If2b2583d984c7cca1a747920095e4dbafde9cad9 --- M src/kudu/integration-tests/tablet_history_gc-itest.cc M src/kudu/util/env_posix.cc 2 files changed, 8 insertions(+), 3 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/45/16145/1 -- To view, visit http://gerrit.cloudera.org:8080/16145 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: If2b2583d984c7cca1a747920095e4dbafde9cad9 Gerrit-Change-Number: 16145 Gerrit-PatchSet: 1 Gerrit-Owner: Andrew Wong <[email protected]>
