ss77892 commented on code in PR #11080:
URL: https://github.com/apache/ozone/pull/11080#discussion_r4169795862
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/transport/server/GrpcXceiverService.java:
##########
@@ -132,6 +193,11 @@ public void onNext(ContainerCommandRequestProto request) {
if (context != null) {
context.release();
}
+ lastRequestNanos = System.nanoTime();
Review Comment:
The Ozone client never mixes request types on one stream.
StreamBlockInputStream sends only ReadBlock on its stream, and the classic path
opens a new stream for each request (sendCommandAsync: one onNext, then
onCompleted). So other request types can't refresh a block file's idle clock.
On classic streams the block file is never opened, so the idle check is never
scheduled and the lock is never contended.
--
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]