Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

Emit server-added and server-removed stat on ringChanged event #281

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

btromanova
Copy link
Contributor

Stat is emitted on ringChange in go-version, need to keep node version in-sync.

@btromanova
Copy link
Contributor Author

Similar logic in go: https://github.com/uber/ringpop-go/blob/dev/ringpop.go#L509

Versions will still be not in sync in emitting events after this change, because node version emits ringServerAdded events on hashring.addServer (same for remove) and go version emits RingChangedEvent. But I think it's a separate issue and can be fixed later.

@mennopruijssers
Copy link
Contributor

LGTM, can you add tests for this though?

@CorgiMan
Copy link
Contributor

CorgiMan commented Jun 7, 2016

Looks good!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants