OneSizeFitsQuorum commented on code in PR #12357:
URL: https://github.com/apache/iotdb/pull/12357#discussion_r1568763061
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/schedule/CompactionWorker.java:
##########
@@ -50,14 +50,22 @@ public CompactionWorker(
@SuppressWarnings("squid:S2142")
@Override
public void run() {
- while (!Thread.currentThread().isInterrupted()) {
+ while (true) {
+ if (Thread.currentThread().isInterrupted()) {
+ // If the interrupt is caused by `drop database`, clear the status
+ if (!CompactionTaskManager.getInstance().isStopAllCompactionWorker()) {
+ Thread.interrupted();
Review Comment:
What's this as it's result is not used?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]