devmadhuu commented on code in PR #11933:
URL: https://github.com/apache/ozone/pull/11933#discussion_r4509703820


##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/spi/impl/OzoneManagerServiceProviderImpl.java:
##########
@@ -333,6 +320,35 @@ public void start() {
     LOG.info("Ozone Manager Service Provider is started.");
   }
 
+  /**
+   * Selects the registered derived OM tasks that must be reprocessed at 
startup because their
+   * persisted sequence cursor does not match the OmDeltaRequest cursor. A 
derived task is
+   * reprocessed whenever the two cursors differ, not only when the derived 
cursor lags. After a
+   * full-snapshot swap onto a different OM lineage (for example a 
disaster-recovery restore or
+   * re-bootstrap), the freshly installed OM DB copy can carry a sequence 
number lower than what the
+   * derived task last recorded against the previous lineage. If the async 
reprocess queued by the
+   * full snapshot is lost to a restart, a strict "less than" check would read 
the higher stale cursor
+   * as "caught up" and skip the rebuild, leaving the derived tables 
permanently built against the old
+   * lineage. A new lineage that lands on exactly the same sequence number 
cannot be detected here.
+   */
+  @VisibleForTesting

Review Comment:
   This annotation should no longer be used.



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