sodonnel commented on code in PR #9351:
URL: https://github.com/apache/ozone/pull/9351#discussion_r2564441493
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/states/endpoint/HeartbeatEndpointTask.java:
##########
@@ -425,6 +426,8 @@ private void processReregisterCommand() {
+ " Interrupt HEARTBEAT and transit to GETVERSION state.");
}
rpcEndpoint.setState(EndPointStates.GETVERSION);
+ // trigger immediate GETVERSION
+ context.getParent().setNextHB(Time.monotonicNow());
Review Comment:
In the `VersionEndpointTask` it does not seem to set the same thing to
immediately call register - is there a change needed there too, or is it not
needed there for some reason?
On first startup, `VersionEndpointTask` might take a while as it looks like
it scans all the volume as part of that, but after that is complete, we
probably don't need to wait for another heartbeat interval. On a re-register,
the volumes are likely already scanned so it should be fast, I think?
--
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]