Skip to content

Commit

Permalink
add comments for sending sd event
Browse files Browse the repository at this point in the history
  • Loading branch information
brycezhongqing committed Oct 15, 2024
1 parent a003aee commit 5446d6f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,9 @@ public void setEventEmitter(ServiceDiscoveryEventEmitter emitter) {

@Override
public void emitSDStatusActiveUpdateIntentAndWriteEvents(String cluster, boolean isMarkUp, boolean succeeded, long startAt) {
// since SD event is sent in IndisAnnouncer for INDIS-write-only, inside ZookeeperAnnouncer, any calls to
// "emitSDStatusActiveUpdateIntentAndWriteEvents" should only happen when _server is an instance of
// ZooKeeperServer (which means it only emits the event when it's doing zk-only or dual write).
if (!(_server instanceof ZooKeeperServer))
{
return;
Expand Down

0 comments on commit 5446d6f

Please sign in to comment.