Skip to content
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

Compaction task can not stopped when abort compaction #14538

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

shuwenwei
Copy link
Collaborator

Description

Compaction task can not stopped when abort compaction

Comment on lines 296 to 303
private void abortAllSubTasks(List<Future<Void>> futures) {
for (Future<Void> future : futures) {
future.cancel(true);
try {
future.get();
} catch (Exception ignored) {
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can cancel them all first and then wait for them.

new CompactionWorker.CompactionTaskFuture(new CompactionTaskSummary()));
phaser.arriveAndAwaitAdvance();
try {
Thread.sleep(10000);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be unstable. If the test is hung up for 10s or there is a clock problem in the test machine, this test is likely to fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants