scylla-manager icon indicating copy to clipboard operation
scylla-manager copied to clipboard

Use small_table_optimization in repair

Open Michal-Leszczynski opened this issue 10 months ago • 2 comments

This PR utilizes the small_table_optimization param in repair API which allows SM to repair the whole table with just one API call. It should bring significant improvements when repairing smaller tables.

As we can't check supported API parameters on Scylla side, we need to rely on checking Scylla version. At the beginning I wanted to set required version to at least 6.0 or 2024.2, but Scylla nightly is considered to be 5.5, so the last TODO commit lowers the requirement to 5.5 in order to run the tests.

Fixes #3642

Michal-Leszczynski avatar Apr 24 '24 13:04 Michal-Leszczynski

Note: small_table_optimization doesn't work with tablets.

Michal-Leszczynski avatar Apr 24 '24 16:04 Michal-Leszczynski

@karol-kokoszka PR is ready for review.

Michal-Leszczynski avatar Apr 29 '24 09:04 Michal-Leszczynski

Ref for Scylla versions constraints: https://github.com/scylladb/scylla-enterprise/issues/4140#issuecomment-2095497858.

Michal-Leszczynski avatar May 06 '24 11:05 Michal-Leszczynski