Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,10 @@ public void testConcurrentFastAppends(@TempDir File dir) throws Exception {
SCHEMA,
SPEC,
ImmutableMap.of(
// Use a high retry count so no committer exhausts its retries under the forced
// lock-step contention below (matches Test{Jdbc,Hive}TableConcurrency).
COMMIT_NUM_RETRIES,
String.valueOf(threadsCount),
"20",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why 20 ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because two sibling optimistic-commit concurrency tests TestJdbcTableConcurrency and TestHiveTableConcurrency both use 20 retries, and it looks like it's enough avoid flakiness this way.

COMMIT_MIN_RETRY_WAIT_MS,
"10",
COMMIT_MAX_RETRY_WAIT_MS,
Expand Down