jojochuang commented on code in PR #9873:
URL: https://github.com/apache/ozone/pull/9873#discussion_r3029467292
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OMDBCheckpointServlet.java:
##########
@@ -133,6 +134,25 @@ public void init() throws ServletException {
lock = new Lock(om);
}
+ @Override
+ public void processMetadataSnapshotRequest(HttpServletRequest request,
HttpServletResponse response,
+ boolean isFormData, boolean flush) {
+ OzoneManager om = (OzoneManager)
getServletContext().getAttribute(OzoneConsts.OM_CONTEXT_ATTRIBUTE);
+ boolean isOmLeader = om.isLeaderReady();
+ if (!isOmLeader) {
+ String msg = "Unable to process metadata snapshot request as this OM is
not the leader";
Review Comment:
```suggestion
String msg = "Unable to process metadata snapshot request as this OM
is not a leader or not ready to serve requests";
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]