Skip to content

Commit

Permalink
move cancel statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Guo committed Dec 17, 2024
1 parent 35cf3ec commit 14422d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/java/org/apache/cassandra/service/StorageService.java
Original file line number Diff line number Diff line change
Expand Up @@ -1616,9 +1616,9 @@ private boolean bootstrap(final Collection<Token> tokens)
logger.info("Stopped waiting for bootstrap streaming to complete because detected a bootstrap error.", SafeArg.of("nonTransientErrors", getNonTransientErrors()));
break;
}
bootstrapStream.cancel(true);
Uninterruptibles.sleepUninterruptibly(1, TimeUnit.SECONDS);
}
bootstrapStream.cancel(true);
isBootstrapMode = false;
return !StorageService.instance.hasNonTransientError(StorageServiceMBean.NonTransientError.BOOTSTRAP_ERROR);
}
Expand Down

0 comments on commit 14422d1

Please sign in to comment.