Skip to content
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

Update Zookeeper client and other minor maintenance #183

Merged
merged 4 commits into from
Mar 3, 2022
Merged

Update Zookeeper client and other minor maintenance #183

merged 4 commits into from
Mar 3, 2022

Conversation

bwester
Copy link
Member

@bwester bwester commented Feb 24, 2022

The primary goal of this PR is to upgrade the Zookeeper client package. The old one, github.com/samuel/go-zookeeper, is no longer being maintained. All development on it has shifted to github.com/go-zookeeper/zk.

To make that change, the code needed a touch-up:

  • The new module removed the testing-related function StartTestCluster, so it is copied into a new local package
  • The new module added path validation, revealing the use of an invalid path in tests. This is now fixed

Additionally, this updates the module to use go1.16 conventions, since that is the earliest supported Go version. This isn't strictly needed; it's just keeping the build up-to-date for security patches.

Copies the StartTestCluster function and related types and methods out
of github.com/samuel/go-zookeeper/zk due to the functionality being
removed from upstream in later versions.
The previous default of an empty string is an invalid path. "/" is the
correct default root.  This code is only used by tests in the config
package.
Go 1.16 is the earliest version of Go that is still officially supported
and receiving updates.  This commit upgrades the declared language
version to 1.16, adds testing for the latest point releases of go1.16
and go1.17, and drops testing for older versions.
The github.com/samuel/go-zookeeper module is no longer being maintained.
All development on it has shifted to github.com/go-zookeeper/zk.
@michaelfinch michaelfinch merged commit e20e094 into square:master Mar 3, 2022
@bwester bwester deleted the zookeeper branch March 3, 2022 20:10
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.

3 participants