caiconghui commented on a change in pull request #5027:
URL: https://github.com/apache/incubator-doris/pull/5027#discussion_r537593855
##########
File path: fe/fe-core/src/main/java/org/apache/doris/system/HeartbeatMgr.java
##########
@@ -282,13 +276,20 @@ public HeartbeatResponse call() {
// heartbeat to self
if (Catalog.getCurrentCatalog().isReady()) {
return new FrontendHbResponse(fe.getNodeName(),
Config.query_port, Config.rpc_port,
-
Catalog.getCurrentCatalog().getReplayedJournalId(), System.currentTimeMillis(),
+ Catalog.getCurrentCatalog().getMaxJournalId(),
System.currentTimeMillis(),
Version.DORIS_BUILD_VERSION + "-" +
Version.DORIS_BUILD_SHORT_HASH);
} else {
return new FrontendHbResponse(fe.getNodeName(), "not
ready");
}
}
+ if (Config.enable_fe_heartbeat_by_thrift) {
+ return getHeartbeatResponseByThrift();
+ } else {
+ return getHeartbeatResponseByHttp();
Review comment:
@sduzh be compatible with older versions(0.13), and should be moved next
version(0.15). if you ugrade non master fe first, the heartbeat will fail.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]