Skip to content

Commit

Permalink
CURATOR-588 Upgrade ZooKeeper to 3.6.3 (#386)
Browse files Browse the repository at this point in the history
Co-authored-by: Enrico Olivelli <eolivelli@apache.org>
  • Loading branch information
eolivelli and eolivelli committed Jul 6, 2021
1 parent a574966 commit e42a07a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Expand Up @@ -670,9 +670,13 @@ public void testFailure() throws Exception
client.checkExists().forPath("/hey");
fail();
}
catch ( KeeperException.SessionExpiredException e )
{
// correct, this happens on ZK 3.6.3+
}
catch ( KeeperException.ConnectionLossException e )
{
// correct
// correct, this happens on ZK 3.5.x, 3.6.0 -> 3.6.2
}
finally
{
Expand Down
Expand Up @@ -60,7 +60,7 @@ public QuorumPeer getTestingQuorumPeer()
}

@Override
public void close() throws IOException
public void close()
{
if ( (quorumPeer != null) && !isClosed )
{
Expand Down
6 changes: 4 additions & 2 deletions pom.xml
Expand Up @@ -66,8 +66,10 @@
<short-jdk-version>8</short-jdk-version>
<jdk-version>1.${short-jdk-version}</jdk-version>

<redirectTestOutputToFile>true</redirectTestOutputToFile>

<!-- versions -->
<zookeeper-version>3.6.0</zookeeper-version>
<zookeeper-version>3.6.3</zookeeper-version>
<maven-bundle-plugin-version>5.1.1</maven-bundle-plugin-version>
<maven-javadoc-plugin-version>3.0.1</maven-javadoc-plugin-version>
<doxia-module-confluence-version>1.8</doxia-module-confluence-version>
Expand Down Expand Up @@ -772,7 +774,7 @@
<configuration>
<threadCount>1</threadCount>
<reuseForks>false</reuseForks>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<redirectTestOutputToFile>${redirectTestOutputToFile}</redirectTestOutputToFile>
<rerunFailingTestsCount>2</rerunFailingTestsCount>
</configuration>
</plugin>
Expand Down

0 comments on commit e42a07a

Please sign in to comment.