]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Allow canceling manual compaction while waiting for conflicting compaction (#11165)
authorAndrew Kryczka <andrewkr@fb.com>
Wed, 1 Feb 2023 00:57:49 +0000 (16:57 -0800)
committerAndrew Kryczka <andrewkr@fb.com>
Thu, 2 Feb 2023 01:00:51 +0000 (17:00 -0800)
commit06765b5131efc773cecf97c36a7a842445999092
treef7a5fc269dd8ccd940534e1734dfd3522de8b6df
parentfa13962e0c5e79250eec2c4a68676c10bc8bb8d5
Allow canceling manual compaction while waiting for conflicting compaction (#11165)

Summary:
This PR adds logic to the `RunManualCompaction()` loop to check for cancellation before waiting on any conflicting compactions to finish. In case of cancellation, `RunManualCompaction()` no longer waits on conflicting compactions

Pull Request resolved: https://github.com/facebook/rocksdb/pull/11165

Test Plan: repro test case

Reviewed By: cbi42

Differential Revision: D42864058

Pulled By: ajkr

fbshipit-source-id: ea4dd1a8f294abe212905495a8fbe8f07fca3f5a
HISTORY.md
db/db_compaction_test.cc
db/db_impl/db_impl_compaction_flush.cc