|
|
@@ -113,7 +113,7 @@ public abstract class AbstractClusterSlaveService {
|
|
|
private ClusterMessage getClusterMessage() {
|
|
|
List<ClusterMessageData> details = getClusterMessageData();
|
|
|
return ClusterMessage.builder()
|
|
|
- .nodeId(this.clusterConfig.getId())
|
|
|
+ .clusterId(this.clusterConfig.getId())
|
|
|
.master(this.clusterConfig.isMaster())
|
|
|
.serverTime(getSysTime())
|
|
|
.infos(details)
|
|
|
@@ -159,16 +159,16 @@ public abstract class AbstractClusterSlaveService {
|
|
|
f.awaitUninterruptibly();
|
|
|
if (f.isDone() || f.isSuccess()) {
|
|
|
if (this.clusterConfig.isLogging()) {
|
|
|
- log.info("ClusterSlaveService.sendSyncData: [{}], {}, [--TO: nodeId: {}, (nodeId: {}, serverTime: {})]",
|
|
|
+ log.info("ClusterSlaveService.sendSyncData: [{}], {}, [--TO: clusterId: {}, (clusterId: {}, serverTime: {})]",
|
|
|
this.clusterConfig.getId(), ClusterUtils.getTcpAddress(channel),
|
|
|
- cluster.getId(), clusterMsg.getNodeId(), clusterMsg.getServerTime());
|
|
|
+ cluster.getId(), clusterMsg.getClusterId(), clusterMsg.getServerTime());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
catch (Exception e) {
|
|
|
- log.error("ClusterSlaveService.sendSyncData: [{}], {}, Failed: [--TO: nodeId: {}, (nodeId: {}, serverTime: {})]",
|
|
|
+ log.error("ClusterSlaveService.sendSyncData: [{}], {}, Failed: [--TO: clusterId: {}, (clusterId: {}, serverTime: {})]",
|
|
|
this.clusterConfig.getId(), ClusterUtils.getTcpAddress(channel),
|
|
|
- cluster.getId(), clusterMsg.getNodeId(), clusterMsg.getServerTime());
|
|
|
+ cluster.getId(), clusterMsg.getClusterId(), clusterMsg.getServerTime());
|
|
|
log.error("ClusterSlaveService.sendSyncData: [{}], {}, Failed: {}",
|
|
|
this.clusterConfig.getId(), ClusterUtils.getTcpAddress(channel), e.getMessage());
|
|
|
}
|