-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wildcard subscription of ddata changes #31731
Conversation
* Subscribe to keys starting with a given prefix. * Useful together with the new expiry feature, for example. * Also fixed a bug in the (non-released) exiry feature, gossip was broken.
expiryDuration != Duration.Zero && timestamp <= System.currentTimeMillis() - expiryDuration.toMillis | ||
} else { | ||
false | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a bug in the gossip exchange when expiry was configured (enabled) but exchanging other keys without expiry. getExpiryDuration is zero for those.
} | ||
|
||
enterBarrier("done-7") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reproducer of the bug, but also required delta-crdt to be disabled to show up
val second = role("second") | ||
|
||
commonConfig(ConfigFactory.parseString(""" | ||
akka.loglevel = DEBUG |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change to INFO again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but additional test coverage could be good.
} | ||
|
||
enterBarrier("done-3") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add two/multiple subscribers with same and or overlapping wildcards, for good measure?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added a few more in f6675e2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
TODO:
mima