smengcl commented on code in PR #4819:
URL: https://github.com/apache/ozone/pull/4819#discussion_r1232928950


##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/snapshot/SnapshotDiffResponse.java:
##########
@@ -43,16 +45,59 @@ public static JobStatus fromProtobuf(JobStatusProto 
jobStatusProto) {
     }
   }
 
+  /**
+   * Snapshot diff cancel status enum.
+   */
+  public enum CancelStatus {
+    JOB_NOT_CANCELED("Job is not canceled"),
+    NEW_JOB("Cannot cancel a newly submitted job"),
+    JOB_DONE("Job is DONE, cancel failed"),

Review Comment:
   ```suggestion
       JOB_DONE("Job is already DONE"),
   ```



-- 
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]

Reply via email to