From 0482771645f32beb8be7ed35ac2e1f00413937bc Mon Sep 17 00:00:00 2001 From: "Haiyang.Hu" Date: Sat, 18 Feb 2023 19:37:55 +0800 Subject: [PATCH] HDFS-16926. Fix Typo of ImageServlet#Put() --- .../apache/hadoop/hdfs/server/namenode/ImageServlet.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ImageServlet.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ImageServlet.java index 442c1aba95b1c..3dbc3a5fe099d 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ImageServlet.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ImageServlet.java @@ -570,8 +570,8 @@ protected void doPut(final HttpServletRequest request, @Override public Void run() throws Exception { - // if its not the active NN, then we need to notify the caller it was was the wrong - // target (regardless of the fact that we got the image) + // if it's not the active NN and Observer NN, then we need to notify the caller it was + // the wrong target (regardless of the fact that we got the image) HAServiceProtocol.HAServiceState state = NameNodeHttpServer .getNameNodeStateFromContext(getServletContext()); if (state != HAServiceProtocol.HAServiceState.ACTIVE && @@ -580,8 +580,8 @@ public Void run() throws Exception { // from the failure to upload due to (1) security, or (2) other checkpoints already // present sendError(response, HttpServletResponse.SC_EXPECTATION_FAILED, - "Nameode "+request.getLocalAddr()+" is currently not in a state which can " - + "accept uploads of new fsimages. State: "+state); + "NameNode " + request.getLocalAddr() + " is currently not in a state " + + "which can accept uploads of new fsimages. State: " + state); return null; }