devabhishekpal commented on code in PR #7517:
URL: https://github.com/apache/ozone/pull/7517#discussion_r1870706281


##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/spi/impl/OzoneManagerServiceProviderImpl.java:
##########
@@ -225,25 +229,30 @@ public OzoneManagerServiceProviderImpl(
         new ThreadFactoryBuilder().setNameFormat(threadNamePrefix + 
"SyncOM-%d")
             .build();
     this.reconContext = reconContext;
+    this.deltaUpdateTaskStatus = new ReconTaskStatus(
+        OmSnapshotTaskName.OmDeltaRequest.name(),
+        0L, 0L, 0, 0);
+    this.snapshotUpdateTaskStatus = new ReconTaskStatus(
+        OmSnapshotTaskName.OmSnapshotRequest.name(),
+        0L, 0L, 0, 0);
+    this.taskStatusCounter = ReconTaskStatusCounter.getCurrentInstance();
   }
 
   public void registerOMDBTasks() {
-    ReconTaskStatus reconTaskStatusRecord = new ReconTaskStatus(
-        OmSnapshotTaskName.OmDeltaRequest.name(),
-        System.currentTimeMillis(), getCurrentOMDBSequenceNumber());
+    
deltaUpdateTaskStatus.setLastUpdatedSeqNumber(getCurrentOMDBSequenceNumber());
+    deltaUpdateTaskStatus.setLastUpdatedTimestamp(System.currentTimeMillis());

Review Comment:
   Addressed in latest change



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