[
https://issues.apache.org/jira/browse/FLINK-12006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16803002#comment-16803002
]
Till Rohrmann commented on FLINK-12006:
---------------------------------------
Yes, atm I don't see a proper fix apart from using the {{CreateMode#CONTAINER}}
for which we and all our users need to upgrade Zk.
In the meantime, we should try to harden this test case so that this background
operation does not occur. I think your proposal to explicitly wait on the new
leader could work. Can we do the following:
1. Try to reliably reproduce the problem on Travis by running this test in a
loop (take a look at this commit
https://github.com/tillrohrmann/flink/commit/a4a2b30f4306f3a768d95126b1345f3c12ad2a9f)
2. Add the proposed fix (waiting for a new leader) to see whether this will
clear the background operation
> ZooKeeperHaServicesTest.testSimpleCloseAndCleanupAllData is unstable
> --------------------------------------------------------------------
>
> Key: FLINK-12006
> URL: https://issues.apache.org/jira/browse/FLINK-12006
> Project: Flink
> Issue Type: Bug
> Components: Runtime / Coordination
> Reporter: Aljoscha Krettek
> Assignee: TisonKun
> Priority: Critical
> Labels: pull-request-available, test-stability
> Time Spent: 10m
> Remaining Estimate: 0h
>
> This is the log from a failed Travis run:
> https://travis-ci.org/apache/flink/jobs/510263371
> The relevant section is:
> {code}
> 11:15:11.201 [INFO] Running
> org.apache.flink.runtime.highavailability.zookeeper.ZooKeeperHaServicesTest
> 11:15:12.908 [INFO] Tests run: 23, Failures: 0, Errors: 0, Skipped: 0, Time
> elapsed: 9.255 s - in org.apache.flink.runtime.jobmaster.JobMasterTest
> 11:15:13.646 [INFO] Running
> org.apache.flink.runtime.highavailability.zookeeper.ZooKeeperRegistryTest
> 11:15:14.874 [ERROR] Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time
> elapsed: 3.67 s <<< FAILURE! - in
> org.apache.flink.runtime.highavailability.zookeeper.ZooKeeperHaServicesTest
> 11:15:14.874 [ERROR]
> testSimpleCloseAndCleanupAllData(org.apache.flink.runtime.highavailability.zookeeper.ZooKeeperHaServicesTest)
> Time elapsed: 0.132 s <<< FAILURE!
> java.lang.AssertionError:
> Expected: is <[zookeeper]>
> but: was <[zookeeper, foo]>
> at
> org.apache.flink.runtime.highavailability.zookeeper.ZooKeeperHaServicesTest.testSimpleCloseAndCleanupAllData(ZooKeeperHaServicesTest.java:136)
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)