Skip to content

Conversation

@WH77
Copy link
Contributor

@WH77 WH77 commented Sep 23, 2021


public CuratorFramework getCuratorFramework() {
return iterator.next();
int ci = curatorIndex.getAndUpdate(i -> (i + 1) % curatorFrameworks.size());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might've been able to get away without using an AtomicInteger here, but don't think it makes a huge difference either way

ZooKeeperConfiguration zookeeperConfig = configuration.getZooKeeperConfiguration();

if (configuration.isReadOnlyInstance()) {
LOG.trace("Creating multiple logging curator frameworks for read-only instance");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might want to update this to reflect the actual value used in the line below

@WH77 WH77 merged commit 1415dea into master Sep 23, 2021
@WH77 WH77 deleted the curator-framework-null branch September 23, 2021 19:45
@ssalinas ssalinas added this to the 1.5.0 milestone May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants