hello-stephen commented on code in PR #71174:
URL: https://github.com/apache/doris/pull/71174#discussion_r4749177181
##########
fe/fe-core/src/main/java/org/apache/doris/system/HeartbeatMgr.java:
##########
@@ -513,7 +514,8 @@ public HeartbeatResponse call() {
System.currentTimeMillis(),
Version.DORIS_BUILD_VERSION + "-" +
Version.DORIS_BUILD_SHORT_HASH,
ExecuteEnv.getInstance().getStartupTime(),
ExecuteEnv.getInstance().getDiskInfos(),
- ExecuteEnv.getInstance().getProcessUUID(),
Config.local_resource_group);
+ ExecuteEnv.getInstance().getProcessUUID(),
Config.local_resource_group)
+
.withRpcPublicKey(InternalRpcRequestSigner.getInstance().getPublicKey());
Review Comment:
[P2] Publish the peer's key for colocated frontends
For two FEs on the same host with different edit-log ports, the host-only
self check above takes this branch for both and publishes the master's key for
the follower. `Frontend.handleHbResponse()` stores that key, so
`Env.getFrontendInfos()` never sends the follower's distinct persisted key to
BEs. With default authentication, `hand_shake` therefore keeps returning false
for the follower and the new `awaitPublication()` aborts startup after 120
seconds, before HTTP/SQL/Flight listeners open. The colocated-authority test
injects the correct heartbeat response and misses this path. Identify self by
the full FE identity and obtain the peer's own key through its actual endpoint.
--
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]