Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2227,14 +2227,14 @@ public void shutdown() {
// wait reconfiguration thread, if any, to exit
shutdownReconfigurationTask();

LOG.info("Waiting up to 30 seconds for transfer threads to complete");
LOG.info("Waiting up to 15 seconds for transfer threads to complete");
Copy link
Contributor

Choose a reason for hiding this comment

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

executorService.awaitTermination(timeout, unit) will be possibly invoked 2 times in HadoopExecutors#shutdown. The time value in log looks ok.

HadoopExecutors.shutdown(this.xferService, LOG, 15L, TimeUnit.SECONDS);

// wait for all data receiver threads to exit
if (this.threadGroup != null) {
int sleepMs = 2;
while (true) {
// When shutting down for restart, wait 2.5 seconds before forcing
// When shutting down for restart, wait 1.0 seconds before forcing
// termination of receiver threads.
if (!this.shutdownForUpgrade ||
(this.shutdownForUpgrade && (Time.monotonicNow() - timeNotified
Expand Down