ArafatKhan2198 commented on PR #12096: URL: https://github.com/apache/ozone/pull/12096#issuecomment-7202152118
Thanks @devmadhuu. Renamed `rebuildContainerFromScm` to `moveDeletedBackToScmState`, and updated both log lines to say "move back" instead of "rebuild". The replica test now runs for both SCM CLOSED and QUASI_CLOSED. Filed the two follow-ups and linked them to HDDS-17061: * HDDS-17943: Recon marks a live container DELETED from a stale SCM DELETED page * HDDS-17944: Recon unhealthy-containers API returns HTTP 500 when an unhealthy row's container is missing from Recon What was going wrong: 1. Recon reads a page of containers SCM has marked DELETED. 2. A datanode reports a copy that still has data. SCM moves the container back to CLOSED or QUASI_CLOSED and keeps its replicas. 3. Recon finishes the old page and marks the container DELETED. The replicas are still on Recon's record. 4. On the next sync, SCM lists the container as CLOSED or QUASI_CLOSED. Recon deletes its own record and adds a new one from SCM's container info. 5. The new record has no replicas. The next health check marks the container MISSING, even though the datanodes still hold the data. The replicas come back only on the next full datanode report. 6. If adding the new record fails, the container is gone from Recon. A leftover unhealthy row then makes `/api/v1/containers/unhealthy` return HTTP 500 for the whole page. What happens now: 1. Steps 1 to 3 are unchanged. Recon can still mark the container DELETED from that stale page. That is HDDS-17943. 2. On the next sync, Recon checks that SCM still lists the container as CLOSED or QUASI_CLOSED. 3. It then moves the existing record back in place, the same way SCM does. The replicas stay with the container. 4. If that move fails, the container stays in Recon as DELETED with its replicas. The unhealthy-containers API keeps working, and the next sync tries again. 5. A missing container on an unhealthy row can still fail the whole page. That remaining case is HDDS-17944. -- 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]
