From ea6b183a1a649ad2874050ade8856286728c654c Mon Sep 17 00:00:00 2001 From: Tsuyoshi Ozawa Date: Tue, 27 Oct 2015 10:57:45 +0900 Subject: [PATCH] HADOOP-12457. [JDK8] Fix a failure of compiling common by javadoc. Contributed by Akira AJISAKA. --- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../src/main/java/org/apache/hadoop/conf/Configuration.java | 2 +- .../src/main/java/org/apache/hadoop/fs/shell/Delete.java | 2 +- .../src/main/java/org/apache/hadoop/ipc/Server.java | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 1b4b27e429..a0c2fa12d2 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -1265,6 +1265,9 @@ Release 2.8.0 - UNRELEASED HADOOP-12513. Dockerfile lacks initial 'apt-get update'. (Akihiro Suda via ozawa) + HADOOP-12457. [JDK8] Fix a failure of compiling common by javadoc. + (Akira AJISAKA via ozawa) + OPTIMIZATIONS HADOOP-12051. ProtobufRpcEngine.invoke() should use Exception.toString() diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java index 8801c6cf8e..8355d9694e 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java @@ -179,7 +179,7 @@ *

When conf.get("otherdir") is called, then ${env.BASE_DIR} * will be resolved to the value of the ${BASE_DIR} environment variable. * It supports ${env.NAME:-default} and ${env.NAME-default} notations. - * The former is resolved to “default” if ${NAME} environment variable is undefined + * The former is resolved to "default" if ${NAME} environment variable is undefined * or its value is empty. * The latter behaves the same way only if ${NAME} is undefined. *

By default, warnings will be given to any deprecated configuration diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Delete.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Delete.java index 6983eb922c..a066395015 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Delete.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Delete.java @@ -65,7 +65,7 @@ public static class Rm extends FsCommand { "-[rR]: Recursively deletes directories.\n" + "-skipTrash: option bypasses trash, if enabled, and immediately " + "deletes .\n" + - "-safely: option requires safety confirmation,if enabled, " + + "-safely: option requires safety confirmation, if enabled, " + "requires confirmation before deleting large directory with more " + "than files. Delay is " + "expected when walking over large directory recursively to count " + diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java index 39cabc24b9..26043a7e4a 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java @@ -416,7 +416,7 @@ protected void setLogSlowRPC(boolean logSlowRPCFlag) { * if this request took too much time relative to other requests * we consider that as a slow RPC. 3 is a magic number that comes * from 3 sigma deviation. A very simple explanation can be found - * by searching for 68–95–99.7 rule. We flag an RPC as slow RPC + * by searching for 68-95-99.7 rule. We flag an RPC as slow RPC * if and only if it falls above 99.7% of requests. We start this logic * only once we have enough sample size. */