Skip to content

Comments

CURATOR-593: Append chroot for EnsembleProvider::setConnectionString in EnsembleTracker#460

Merged
kezhuw merged 2 commits intoapache:masterfrom
kezhuw:CURATOR-593-EnsembleTracker-chroot-connection-string
May 23, 2023
Merged

CURATOR-593: Append chroot for EnsembleProvider::setConnectionString in EnsembleTracker#460
kezhuw merged 2 commits intoapache:masterfrom
kezhuw:CURATOR-593-EnsembleTracker-chroot-connection-string

Conversation

@kezhuw
Copy link
Member

@kezhuw kezhuw commented May 5, 2023

Curator uses EnsembleProvider::getConnectionString as connection string to ZooKeeper. EnsembleTracker subscribes to config node to construct up to date connection string for EnsembleProvider. This is great.

But, currently, EnsembleTracker omits chroot part of connection string which could cause curator locating at ZooKeeper root after reconnection. This could damage clients' data hierarchy in unexpected manner.

…in EnsembleTracker

Curator uses `EnsembleProvider::getConnectionString` as connection
string to `ZooKeeper`. `EnsembleTracker` subscribes to config node
to construct up to date connection string for `EnsembleProvider`.
This is great.

But, currently, `EnsembleTracker` omits chroot part of connection string
which could cause curator locating at ZooKeeper root after reconnection.
This could damage clients' data hierarchy in unexpected manner.
Copy link
Member

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

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

Thanks for taking care of this issue. One question for EnsembleTracker. Other comments are about style.

@kezhuw kezhuw merged commit 4221604 into apache:master May 23, 2023
@kezhuw
Copy link
Member Author

kezhuw commented May 23, 2023

Thank you for your reviewing. @tisonkun

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.

2 participants