devmadhuu commented on code in PR #12096:
URL: https://github.com/apache/ozone/pull/12096#discussion_r4678064279
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/scm/ReconStorageContainerSyncHelper.java:
##########
Review Comment:
nit: the method no longer rebuilds the record, it moves it back in place.
Could we rename it, for example to
`moveDeletedBackToScmState`,
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/scm/ReconStorageContainerSyncHelper.java:
##########
Review Comment:
This also update this log as it is not building - "Failed to rebuild
container"
##########
hadoop-ozone/recon/src/test/java/org/apache/hadoop/ozone/recon/scm/TestReconSCMContainerSyncIntegration.java:
##########
@@ -297,6 +326,33 @@ void pass1CorrectQuasiClosedToClosedViaForceClose() throws
Exception {
assertEquals(CLOSED, getContainerManager().getContainer(cid).getState());
}
+ @Test
+ void containerDeletedInReconButClosedInScmKeepsReplicas() throws Exception
{
Review Comment:
Both new tests cover only SCM `CLOSED`. `reconcileToQuasiClosed` takes the
same path (`DELETED` in Recon,
`QUASI_CLOSED` in SCM). Could we parameterize this test over `CLOSED` and
`QUASI_CLOSED`, so the `QUASI_CLOSED`
branch is covered too?
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/scm/ReconStorageContainerSyncHelper.java:
##########
Review Comment:
Update this log message also "skipping rebuild"
--
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]