File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
hadoop-hdfs-project/hadoop-hdfs
src/main/java/org/apache/hadoop/hdfs/server/datanode Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1216,6 +1216,8 @@ Release 2.7.0 - UNRELEASED
1216
1216
1217
1217
HDFS-7816. Unable to open webhdfs paths with "+". (wheat9 via kihwal)
1218
1218
1219
+ HDFS-7932. Speed up the shutdown of datanode during rolling upgrade.(kihwal)
1220
+
1219
1221
BREAKDOWN OF HDFS-7584 SUBTASKS AND RELATED JIRAS
1220
1222
1221
1223
HDFS-7720. Quota by Storage Type API, tools and ClientNameNode
Original file line number Diff line number Diff line change @@ -1724,8 +1724,9 @@ public void shutdown() {
1724
1724
// termination of receiver threads.
1725
1725
if (!this .shutdownForUpgrade ||
1726
1726
(this .shutdownForUpgrade && (Time .monotonicNow () - timeNotified
1727
- > 2500 ))) {
1727
+ > 1000 ))) {
1728
1728
this .threadGroup .interrupt ();
1729
+ break ;
1729
1730
}
1730
1731
LOG .info ("Waiting for threadgroup to exit, active threads is " +
1731
1732
this .threadGroup .activeCount ());
@@ -1736,8 +1737,8 @@ public void shutdown() {
1736
1737
Thread .sleep (sleepMs );
1737
1738
} catch (InterruptedException e ) {}
1738
1739
sleepMs = sleepMs * 3 / 2 ; // exponential backoff
1739
- if (sleepMs > 1000 ) {
1740
- sleepMs = 1000 ;
1740
+ if (sleepMs > 200 ) {
1741
+ sleepMs = 200 ;
1741
1742
}
1742
1743
}
1743
1744
this .threadGroup = null ;
You can’t perform that action at this time.
0 commit comments