hanishakoneru commented on a change in pull request #276: HDDS-2637. Handle 
LeaderNot ready exception in OzoneManager StateMachine and upgrade ratis to 
latest version.
URL: https://github.com/apache/hadoop-ozone/pull/276#discussion_r351541135
 
 

 ##########
 File path: 
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OMDBCheckpointServlet.java
 ##########
 @@ -144,9 +155,20 @@ public void doGet(HttpServletRequest request, 
HttpServletResponse response) {
       response.setHeader("Content-Disposition",
           "attachment; filename=\"" +
                file.toString() + ".tgz\"");
-      // Ratis snapshot index used when downloading DB checkpoint to OM 
follower
-      response.setHeader(OM_RATIS_SNAPSHOT_INDEX,
-          String.valueOf(ratisSnapshotIndex));
+
+      if (setBothHeaders) {
+        // Ratis snapshot index and term index is used when downloading DB
 
 Review comment:
   We can reuse takeRatisSnapshot boolean here.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to