Explorar o código

HADOOP-16708. HadoopExecutors cleanup to only log at debug.

Contributed by David Mollitor.

Change-Id: Ib501a3ed6ed299ccd3c773c4dc086441a5728e73
Steve Loughran %!s(int64=5) %!d(string=hai) anos
pai
achega
a139a87610

+ 3 - 3
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/concurrent/HadoopExecutors.java

@@ -115,18 +115,18 @@ public final class HadoopExecutors {
     try {
       executorService.shutdown();
 
-      logger.info(
+      logger.debug(
           "Gracefully shutting down executor service. Waiting max {} {}",
           timeout, unit);
       if (!executorService.awaitTermination(timeout, unit)) {
-        logger.info(
+        logger.debug(
             "Executor service has not shutdown yet. Forcing. "
                 + "Will wait up to an additional {} {} for shutdown",
             timeout, unit);
         executorService.shutdownNow();
       }
       if (executorService.awaitTermination(timeout, unit)) {
-        logger.info("Succesfully shutdown executor service");
+        logger.debug("Succesfully shutdown executor service");
       } else {
         logger.error("Unable to shutdown executor service after timeout {} {}",
             (2 * timeout), unit);