[
https://issues.apache.org/jira/browse/CURATOR-633?focusedWorklogId=733582&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-733582
]
ASF GitHub Bot logged work on CURATOR-633:
------------------------------------------
Author: ASF GitHub Bot
Created on: 27/Feb/22 01:57
Start Date: 27/Feb/22 01:57
Worklog Time Spent: 10m
Work Description: tisonkun commented on a change in pull request #409:
URL: https://github.com/apache/curator/pull/409#discussion_r815376906
##########
File path:
curator-framework/src/test/java/org/apache/curator/framework/state/TestConnectionStateManager.java
##########
@@ -91,7 +92,10 @@ public void stateChanged(CuratorFramework client,
ConnectionState newState)
}
@Test
- public void testConnectionStateRecoversFromUnexpectedExpiredConnection()
throws Exception {
+ void testConnectionStateRecoversFromUnexpectedExpiredConnection() throws
Exception {
+ final int major = getVersionPart("MAJOR");
+ final int minor = getVersionPart("MINOR");
+ assumeTrue(major == 3 && minor >= 6 || major > 4, "Zookeeper version
must be 3.6 or higher");
Review comment:
Also, the boolean condition should not be `==3 || > 4`, what if `==4`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 733582)
Time Spent: 2h 10m (was: 2h)
> Run
> org.apache.curator.framework.state.TestConnectionStateManager#testConnectionStateRecoversFromUnexpectedExpiredConnection
> only for Zookeeper 3.6.x
> -----------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CURATOR-633
> URL: https://issues.apache.org/jira/browse/CURATOR-633
> Project: Apache Curator
> Issue Type: Bug
> Reporter: Martin Tzvetanov Grigorov
> Assignee: Jordan Zimmerman
> Priority: Major
> Time Spent: 2h 10m
> Remaining Estimate: 0h
>
> The build is broken by CURATOR-561:
> {code:java}
> [INFO] Running org.apache.curator.framework.state.TestConnectionStateManager
> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 7.387
> s <<< FAILURE! - in
> org.apache.curator.framework.state.TestConnectionStateManager
> [ERROR]
> org.apache.curator.framework.state.TestConnectionStateManager.testConnectionStateRecoversFromUnexpectedExpiredConnection
> Time elapsed: 0.489 s <<< ERROR!
> java.lang.NoSuchMethodError:
> org.apache.zookeeper.Testable.queueEvent(Lorg/apache/zookeeper/WatchedEvent;)V
> at
> org.apache.curator.framework.state.TestConnectionStateManager.testConnectionStateRecoversFromUnexpectedExpiredConnection(TestConnectionStateManager.java:110){code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)