ringpop-go v0.7.0 Release Notes
Release Date: 2016-10-20 // over 7 years ago-
- ๐ Feature: Added label support to ringpop for nodes to annotate themselves with more information #167 #171 #172
- ๐จ Maintainability: Refactored internal representation of member state for more flexible reincarnation and state change of a member #159 #161
- ๐ Fix: Make sure ringpop is listening for requests before bootstrapping #176 #146
- ๐ Fix: Added support for imports in
.thrift
files in generated code for thrift forwarding #162 - ๐ Fix: Mark generated code as being generated for suppression in diffs #169
- ๐ Fix: Be more specific in the functionality required from TChannel #166
- โ Tests: Run all tests on go 1.7 #179
- โ Tests: More stable unit tests, integration tests and race detector tests. Races are now mandatory tests on ci #164 #178 #181 #182
- โ Tests: All examples are tested on every pull request #157 #170
๐ Release notes
๐ Change to ringpop interface
The ringpop interface changed two existing functions
GetReachableMembers
andCountReachableMembers
that now take a variadic argument of typeswim.MemberPredicate
instead of no arguments. This does not change the usage of these functions, but does change the type of the function. This might cause custom declared interfaces to not match ringpop anymore. The solution is to ๐ change these functions in the interface used to match the current signature.Previously the signature was:
GetReachableMembers() ([]string, error) CountReachableMembers() (int, error)
The current signature is:
GetReachableMembers(predicates ...swim.MemberPredicate) ([]string, error) CountReachableMembers(predicates ...swim.MemberPredicate) (int, error)
๐ Deprecated RegisterListener
๐จ Due to a refactor in how event emitting is done the
RegisterListener
method is ๐ deprecated. Even though it still works and behaves as previously it will start โ logging warnings. Since this code is not on the hot path only little log volume is expected. Instead of this function it is now advised to useAddListener
. This function also returns if the listener has been added or not.