Skip to content

GH-1251: Upgrade Zookeeper to 3.9.3+ #1252

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

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Copy link
Member

Choose a reason for hiding this comment

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

Seems these changes cause compile fail. Why do you make these changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tisonkun Thank-you for taking a look at the PR. It seems like in the newer version of zookeeper, the method that was being overridden has become final, so I just altered the access method to it.

Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public void close() throws IOException {

try {
if (zkServer != null) {
zkServer.shutdown();
zkServer.customShutdown();
ZKDatabase zkDb = zkServer.getZKDatabase();
if (zkDb != null) {
// make ZK server close its log files
Expand Down Expand Up @@ -209,7 +209,7 @@ private void internalRunFromConfig(ServerConfig config) throws IOException {
latch.countDown();
cnxnFactory.join();
if ((zkServer != null) && zkServer.isRunning()) {
zkServer.shutdown();
zkServer.customShutdown();
}
} catch (InterruptedException e) {
// warn, but generally this is ok
Expand Down Expand Up @@ -255,8 +255,7 @@ public TestZooKeeperServer(FileTxnSnapLog txnLog, ServerConfig config) {
this.setMaxSessionTimeout(config.getMaxSessionTimeout());
}

@Override
public synchronized void shutdown(boolean fullyShutDown) {
public synchronized void customShutdown(boolean fullyShutDown) {
super.shutdown(fullyShutDown);
try {
txnLog.close();
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<redirectTestOutputToFile>true</redirectTestOutputToFile>

<!-- versions -->
<zookeeper-version>3.9.2</zookeeper-version>
<zookeeper-version>3.9.3</zookeeper-version>
<maven-bundle-plugin-version>5.1.4</maven-bundle-plugin-version>
<maven-compiler-plugin-version>3.10.0</maven-compiler-plugin-version>
<maven-dependency-plugin-version>3.2.0</maven-dependency-plugin-version>
Expand Down
Loading