You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The eventer applies the config on an object that is returned from
an invocation of config.Organizations(), which returns the same
reference of map in each config update.
The config.Organizations() is a map from org name to config.ApplicationOrg
which has the anchor peers.
Due to the fact that the references are the same,
the ce.lastConfig.orgMap is the same as the new orgMap of a new config update,
and this makes the logic think that there has not been any update of
anchor peers at every real update (of anchor peers).
I fixed the bug by cloning the map, and also fixed the test
in eventer_test.go(line 98) to fail when the code of the eventer.go
is before the fix.
Change-Id: Iede772975216a88d00badfc9d7092f92580737a8
Signed-off-by: Yacov Manevich <[email protected]>
0 commit comments