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

   ## What changes were proposed in this pull request?
   
   `InterSCMGrpcClient` reads `ozone.scm.ha.grpc.deadline.interval` in 
milliseconds, then applies the same numeric value to gRPC with 
`TimeUnit.SECONDS`. The default 30-minute deadline therefore becomes ~20 days 
(1000x). This affects SCM HA install-snapshot catch-up and Recon SCM DB sync.
   
   Added a test that sets `ozone.scm.ha.grpc.deadline.interval` to `200ms`, 
uses a hanging Inter-SCM download RPC, and asserts the client fails with 
`DEADLINE_EXCEEDED` within a bounded timeout.
   
   This patch keeps the fetch unit and the gRPC unit consistent:
   
   ```java
   client = InterSCMProtocolServiceGrpc.newStub(channel)
       .withDeadlineAfter(timeout, TimeUnit.MILLISECONDS);
   ```
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-16373
   
   ## How was this patch tested?
   
   - TestInterSCMGrpcClient pass.
   - ci: https://github.com/shuan1026/ozone/actions/runs/33625361380


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