From 1e15c7e855f9eb37286dc58f572a71f1cf04cc3b Mon Sep 17 00:00:00 2001 From: Arpit Agarwal Date: Thu, 15 Nov 2018 12:42:31 -0800 Subject: [PATCH] HADOOP-15936. [JDK 11] MiniDFSClusterManager & MiniHadoopClusterManager compilation fails due to the usage of '_' as identifier. Contributed by Zsolt Venczel. --- .../test/java/org/apache/hadoop/test/MiniDFSClusterManager.java | 2 +- .../org/apache/hadoop/mapreduce/MiniHadoopClusterManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/test/MiniDFSClusterManager.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/test/MiniDFSClusterManager.java index 1d06616f24..b26c1d61ec 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/test/MiniDFSClusterManager.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/test/MiniDFSClusterManager.java @@ -127,7 +127,7 @@ private void sleepForever() { LOG.info("Cluster is no longer up, exiting"); return; } - } catch (InterruptedException _) { + } catch (InterruptedException e) { // nothing } } diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapreduce/MiniHadoopClusterManager.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapreduce/MiniHadoopClusterManager.java index d29dd344e3..1d1c08347c 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapreduce/MiniHadoopClusterManager.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapreduce/MiniHadoopClusterManager.java @@ -137,7 +137,7 @@ private void sleepForever() { while (true) { try { Thread.sleep(1000 * 60); - } catch (InterruptedException _) { + } catch (InterruptedException e) { // nothing } }