Flaugh24 commented on code in PR #1267:
URL: https://github.com/apache/ignite-3/pull/1267#discussion_r1019065601
##########
modules/network/src/main/java/org/apache/ignite/network/scalecube/ScaleCubeClusterServiceFactory.java:
##########
@@ -190,6 +201,17 @@ public void beforeNodeStop() {
public boolean isStopped() {
return shutdownFuture.isDone();
}
+
+ @Override
+ public void updateMetadata(NodeMetadata metadata) {
+
cluster.updateMetadata(metadata).subscribeOn(scheduler).subscribe();
+ MembershipEvent membershipEvent =
createUpdated(cluster.member(),
+
cluster.<NodeMetadata>metadata().map(METADATA_CODEC::serialize).orElse(null),
+ METADATA_CODEC.serialize(metadata),
+ System.currentTimeMillis()
+ );
+ topologyService.onMembershipEvent(membershipEvent);
Review Comment:
to stick the general flow of handling events in the cluster
--
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]