Skip to content

Fix race condition in test#13747

Merged
alexey-milovidov merged 2 commits intomasterfrom
fix-race-condition-in-test
Aug 15, 2020
Merged

Fix race condition in test#13747
alexey-milovidov merged 2 commits intomasterfrom
fix-race-condition-in-test

Conversation

@alexey-milovidov
Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Fix race condition in the annoying test_fix_extra_seek_on_compressed_cache. The test was added here: #4913.
I just found one possible reason for race condition but I'm not sure that the real reason of test failure was fixed.
Also I have found and removed sleep 1 in test - an obvious antipattern (99% of cases sleep cannot workaround race conditions).

It's just a bad test, no bug exists.

@alexey-milovidov alexey-milovidov added the testing Special issue with list of bugs found by CI label Aug 15, 2020
@robot-clickhouse robot-clickhouse added pr-not-for-changelog This PR should not be mentioned in the changelog labels Aug 15, 2020
@alexey-milovidov
Copy link
Copy Markdown
Member Author

@tavplubix The reason is different.
It fails because of lazy DROP in DatabaseAtomic that flushes uncompressed cache.

@alexey-milovidov
Copy link
Copy Markdown
Member Author

But DROP/RENAME in DatabaseAtomic should not drop caches.

@alexey-milovidov
Copy link
Copy Markdown
Member Author

#12550
#12508

@alexey-milovidov
Copy link
Copy Markdown
Member Author

Now it's obvious why it happens in test runs with DatabaseAtomic!

@alexey-milovidov
Copy link
Copy Markdown
Member Author

Stress test (undefined) — Server failed to start

Fixed in #13743

@alexey-milovidov
Copy link
Copy Markdown
Member Author

01060_shutdown_table_after_detach

Fixed in #13746

@alexey-milovidov
Copy link
Copy Markdown
Member Author

01249_flush_interactive

New issue, reported.

@alexey-milovidov alexey-milovidov merged commit 0e3b9d0 into master Aug 15, 2020
@alexey-milovidov alexey-milovidov deleted the fix-race-condition-in-test branch August 15, 2020 12:55
@alexey-milovidov alexey-milovidov mentioned this pull request Aug 15, 2020
40 tasks
@alexey-milovidov
Copy link
Copy Markdown
Member Author

#13760

@azat azat mentioned this pull request Oct 6, 2020
73 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog testing Special issue with list of bugs found by CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants