HDFS-16926. Fix Typo of ImageServlet#Put()

This commit is contained in:
Haiyang.Hu 2023-02-18 19:37:55 +08:00
parent a3b500d046
commit c587bb9480
1 changed files with 4 additions and 4 deletions

View File

@ -570,8 +570,8 @@ public class ImageServlet extends HttpServlet {
@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 class ImageServlet extends HttpServlet {
// 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;
}