devmadhuu opened a new pull request, #10326:
URL: https://github.com/apache/ozone/pull/10326

   ## What changes were proposed in this pull request?
   This PR improves Recon’s DN report handling for existing containers whose 
local lifecycle state has become stale.
   
   Previously, Recon only used `ICR/FCR` replica reports to move an existing 
container from `OPEN` to `CLOSING`. If Recon already had a container in stale 
CLOSING or DELETED, it could remain stale until a later targeted SCM sync.
   
   This change adds SCM-authoritative recovery for those cases:
     - keeps `OPEN` -> `CLOSING` gated by healthy non-OPEN replica reports
     - preserves `pipelineToOpenContainer` accounting when moving OPEN -> 
CLOSING
     - treats DN reports for CLOSING containers as a wake-up signal, then 
queries SCM and advances Recon to SCM’s authoritative state:
         - `QUASI_CLOSED`
         - `CLOSED`
         - `DELETING`
         - `DELETED`
     - recovers Recon DELETED containers when:
         - DN reports a live terminal replica state, `CLOSED` or `QUASI_CLOSED`
         - SCM still reports the container as `CLOSED` or `QUASI_CLOSED`
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-15308
   
   ## How was this patch tested?
   Added junit tests in `TestReconContainerManager` class.


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