prashantpogde commented on code in PR #4490:
URL: https://github.com/apache/ozone/pull/4490#discussion_r1164581559
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/SnapshotDiffManager.java:
##########
@@ -838,6 +835,18 @@ private synchronized void updateJobStatus(String jobKey,
snapDiffJobTable.put(jobKey, snapshotDiffJob);
}
+ private synchronized void updateJobStatusToDone(String jobKey,
+ long totalNumberOfEntries) {
+ SnapshotDiffJob snapshotDiffJob = snapDiffJobTable.get(jobKey);
+ if (snapshotDiffJob.getStatus() != IN_PROGRESS) {
Review Comment:
What if its in IN_QUEUE status and the system got restarted, wouldn't you
move it directly to 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]