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

   ## What changes were proposed in this pull request?
   
   
`TestContainerReportHandling#testDeletingOrDeletedContainerWhenNonEmptyReplicaIsReported`
   intermittently times out on CI while waiting for replicas to be deleted.
   
   In this test, SCM only deletes a DELETING/DELETED container's replicas when 
it processes a
   container report. The test triggers that report once, by restarting the 
datanodes. Because
   `hdds.container.report.interval` is left at its 60-minute default, if that 
single report is
   disrupted (e.g. command expiry, missed heartbeat, or a datanode briefly 
marked stale/dead under
   CI load), the next report is 60 minutes away, far beyond the 180s wait, so 
the test times out.
   
   The fix sets `hdds.container.report.interval` to 1s, matching sibling tests
   (`TestECContainerRecovery`, `TestBlockDeletion`). A periodic report then 
re-triggers the
   deletion within seconds, so a single disrupted report can recover well 
within the wait.
   
   `TestContainerReportHandlingWithHA` shares the identical pattern and root 
cause, so it is fixed
   the same way in this PR.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-14774
   
   ## How was this patch tested?
   
   - Reproduced the timeout deterministically: with the datanode restart 
removed (simulating a
     disrupted report) and the default report interval, all parameters fail 
with the same
     `TimeoutException`; with the 1s interval added, they pass.
   - Ran both `TestContainerReportHandling` and 
`TestContainerReportHandlingWithHA` locally; all
     parameters pass.
   - `checkstyle` passes.
   
   Generated-by: Claude Code (Opus 4.8)
   


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