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
"nodetool stop RESHAPE" stops individual task, but doesn't abort the whole operation #15058
Comments
That's a bad interaction between compaction_manager and shard_reshaping_compaction_task_impl::run(), where latter expects the former to propagate compaction_stopped_exception to it (which is being swallowed by compaction_manager::perform_task()), in order to abort the whole reshape operation, not only the individual task. This is a regression introduced in 5.1. |
@roydahan do we have a test for this API? |
this new dtest reproduces the issue https://github.com/scylladb/scylla-dtest/pull/3510 @Deexie FYI |
Hopefully now we will have... |
Loop in shard_reshaping_compaction_task_impl::run relies on whether sstables::compaction_stopped_exception is thrown from run_custom_job. The exception is swallowed for each type of compaction in compaction_manager::perform_task. Rethrow an exception in perfrom task for reshape compaction. Fixes: scylladb#15058.
Loop in shard_reshaping_compaction_task_impl::run relies on whether sstables::compaction_stopped_exception is thrown from run_custom_job. The exception is swallowed for each type of compaction in compaction_manager::perform_task. Rethrow an exception in perfrom task for reshape compaction. Fixes: scylladb#15058.
@scylladb/scylla-maint please consider backport |
What are the affected branches? I doubt 5.1 is affected. @Deexie ? |
#15058 (comment) mentions 5.1. |
Cherry-pick is not clean, not even to 5.2. @Deexie please open backport pull requests for 5.2 and 5.1. |
Loop in shard_reshaping_compaction_task_impl::run relies on whether sstables::compaction_stopped_exception is thrown from run_custom_job. The exception is swallowed for each type of compaction in compaction_manager::perform_task. Rethrow an exception in perfrom task for reshape compaction. Fixes: scylladb#15058.
Loop in shard_reshaping_compaction_task_impl::run relies on whether sstables::compaction_stopped_exception is thrown from run_custom_job. The exception is swallowed for each type of compaction in compaction_manager::perform_task. Rethrow an exception in perfrom task for reshape compaction. Fixes: scylladb#15058.
Loop in shard_reshaping_compaction_task_impl::run relies on whether sstables::compaction_stopped_exception is thrown from run_custom_job. The exception is swallowed for each type of compaction in compaction_manager::perform_task. Rethrow an exception in perfrom task for reshape compaction. Fixes: scylladb#15058. (cherry picked from commit e0ce711)
Loop in shard_reshaping_compaction_task_impl::run relies on whether sstables::compaction_stopped_exception is thrown from run_custom_job. The exception is swallowed for each type of compaction in compaction_manager::perform_task. Rethrow an exception in perfrom task for reshape compaction. Fixes: scylladb#15058. (cherry picked from commit e0ce711)
Loop in shard_reshaping_compaction_task_impl::run relies on whether sstables::compaction_stopped_exception is thrown from run_custom_job. The exception is swallowed for each type of compaction in compaction_manager::perform_task. Rethrow an exception in perfrom task for reshape compaction. Fixes: scylladb#15058. Closes scylladb#15067
Loop in shard_reshaping_compaction_task_impl::run relies on whether sstables::compaction_stopped_exception is thrown from run_custom_job. The exception is swallowed for each type of compaction in compaction_manager::perform_task. Rethrow an exception in perfrom task for reshape compaction. Fixes: #15058. (cherry picked from commit e0ce711) Closes #15122
Loop in shard_reshaping_compaction_task_impl::run relies on whether sstables::compaction_stopped_exception is thrown from run_custom_job. The exception is swallowed for each type of compaction in compaction_manager::perform_task. Rethrow an exception in perfrom task for reshape compaction. Fixes: #15058. (cherry picked from commit e0ce711) Closes #15123
Loop in shard_reshaping_compaction_task_impl::run relies on whether sstables::compaction_stopped_exception is thrown from run_custom_job. The exception is swallowed for each type of compaction in compaction_manager::perform_task. Rethrow an exception in perfrom task for reshape compaction. Fixes: scylladb#15058. Closes scylladb#15067
On reshape on boot, we want "nodetool stop" to abort the whole reshape operation, rather than only stopping individual tasks. Otherwise, it's not helping to bypass reshape on boot.
The text was updated successfully, but these errors were encountered: