|
@@ -1731,8 +1731,9 @@ public class DataNode extends ReconfigurableBase
|
|
|
// termination of receiver threads.
|
|
|
if (!this.shutdownForUpgrade ||
|
|
|
(this.shutdownForUpgrade && (Time.monotonicNow() - timeNotified
|
|
|
- > 2500))) {
|
|
|
+ > 1000))) {
|
|
|
this.threadGroup.interrupt();
|
|
|
+ break;
|
|
|
}
|
|
|
LOG.info("Waiting for threadgroup to exit, active threads is " +
|
|
|
this.threadGroup.activeCount());
|
|
@@ -1743,8 +1744,8 @@ public class DataNode extends ReconfigurableBase
|
|
|
Thread.sleep(sleepMs);
|
|
|
} catch (InterruptedException e) {}
|
|
|
sleepMs = sleepMs * 3 / 2; // exponential backoff
|
|
|
- if (sleepMs > 1000) {
|
|
|
- sleepMs = 1000;
|
|
|
+ if (sleepMs > 200) {
|
|
|
+ sleepMs = 200;
|
|
|
}
|
|
|
}
|
|
|
this.threadGroup = null;
|