fmorg-git opened a new pull request, #12038:
URL: https://github.com/apache/ozone/pull/12038

   Co-authored with Cursor.
   
   Please describe your PR in detail:
   * RecoverLease used to refresh block pipelines and mint gRPC block tokens 
inside `doWork` during `validateAndUpdateCache` on every OM apply thread, while 
holding **BUCKET_LOCK**. That work is only needed for the client reply and is 
not persisted in OM metadata.
   
   If SCM failed with a plain `IOException`, the apply path often surfaced 
`INTERNAL_ERROR` and could terminate the OM. Slow SCM also extended bucket 
write lock hold time on all replicas.
   
   Split durable lease-recovery updates from reply: `doWork` now returns 
key/open-key protobuf without pipelines or tokens. The leader RPC path calls 
`OMRecoverLeaseRequest.addBlockInfo` after a successful apply, matching the 
CreateKey derived-key pattern. SCM failures on that path are mapped to 
`SCM_GET_PIPELINE_EXCEPTION`. Block tokens use the RPC caller via 
`HddsServerUtil.getRemoteUser()`.
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-16823
   
   ## How was this patch tested?
   unit tests, CI workflow
   


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