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
EtcdConfigurationSource #318
Conversation
NetflixOSS » archaius » archaius-pull-requests #85 FAILURE |
Build failed because of a JVM error... or maybe a bunch of failing unit tests unrelated to the Etcd module. Unless I am missing something. |
archaius-pull-requests #254 SUCCESS |
There're two pull-requests builds. One of them was not configured with On Thu, Jun 11, 2015 at 6:02 PM, Eric Schoonover notifications@github.com
|
final Map<String, Object> set = Maps.newHashMap(); | ||
final Map<String, Object> delete = Maps.newHashMap(); | ||
|
||
final String action = updateResponse.action().toLowerCase(); |
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.
Can the action() return null when it's error?
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.
only if I duplicate the etcd.waitRecursive call on l:89
It'd probably be best to capture the wasError condition, throw an exception and have a finally that calls etcd.waitRecursive. But I'm not sure that really makes things more readable. I'll just duplicate l:89 and return early.
NetflixOSS » archaius » archaius-pull-requests #86 FAILURE |
archaius-pull-requests #255 SUCCESS |
@howardyuan, tried to address your feedback with the following changes.
|
Looks good to me. Will leave the PR open for a few days to see if anybody else have any more comments. |
@howardyuan merge? |
EtcdConfigurationSource -- @spoon16 Thanks for the contributions!
why there is no case for node action "compareandswap" in etcd UpdateHandler. we have node actions create,set and delete action on UpdateHandler . but no compareandswap. Is there any reason for not having that action. |
@chandrapersonal I don't think "compareandswap" is a type of update notification. It's part of the Etcd update API and the side effect is that an update notification is emitted, either set or create. |
An Etcd watched configuration source very similar to the ZooKeeperConfigurationSource.
Uses the Boon Etcd client https://github.com/boonproject/boon/blob/master/etcd/README.md. Seems to be the most widely adopted Etcd client.
Tests included.