-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replica/database: stop compaction before closing system tables during shutdown #17218
replica/database: stop compaction before closing system tables during shutdown #17218
Conversation
The So, the only possible race condition is the one that happens when all the system tables are closed in parallel - there is a chance that compaction_history table closes early when other system tables are still compacting. So, to prevent that this patch just stops all the compaction of the system tables before starting to closing them in parallel. This is now protected by a barrier as well to prevent another shard from updating |
445ed1c
to
d2bd963
Compare
🔴 CI State: FAILURE✅ - Build Failed Tests (2/24453):Build Details:
|
🟢 CI State: SUCCESS✅ - Build Build Details:
|
d2bd963
to
b76aa4e
Compare
b76aa4e
to
eaa9d0b
Compare
🔴 CI State: FAILURE✅ - Build Failed Tests (2/24588):Build Details:
|
🟢 CI State: SUCCESS✅ - Build Build Details:
|
…ing shutdown During shutdown, as all system tables are closed in parallel, there is a possibility of a race condition between compaction stoppage and the closure of the compaction_history table. So, quiesce all the compaction tasks before attempting to close the tables. Fixes scylladb#15721 Signed-off-by: Lakshmi Narayanan Sreethar <lakshmi.sreethar@scylladb.com>
eaa9d0b
to
2903d26
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good! thanks.
🟢 CI State: SUCCESS✅ - Build Build Details:
|
…ing shutdown During shutdown, as all system tables are closed in parallel, there is a possibility of a race condition between compaction stoppage and the closure of the compaction_history table. So, quiesce all the compaction tasks before attempting to close the tables. Fixes #15721 Signed-off-by: Lakshmi Narayanan Sreethar <lakshmi.sreethar@scylladb.com> Closes #17218 (cherry picked from commit 3b7b315)
…ing shutdown During shutdown, as all system tables are closed in parallel, there is a possibility of a race condition between compaction stoppage and the closure of the compaction_history table. So, quiesce all the compaction tasks before attempting to close the tables. Fixes scylladb#15721 Signed-off-by: Lakshmi Narayanan Sreethar <lakshmi.sreethar@scylladb.com> Closes scylladb#17218
During shutdown, as all system tables are closed in parallel, there is a possibility of a race condition between compaction stoppage and the closure of the compaction_history table. So, stop all the compaction tasks before attempting to close the tables.
Fixes #15721