kimmking opened a new issue #4773: CuratorZookeeperClient change-event bug in Unit Test URL: https://github.com/apache/incubator-shardingsphere/issues/4773 Generally the Unittests will be successful. But sometimes Unittests failed with an error: ``` [ERROR] Tests run: 12, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 9.731 s <<< FAILURE! - in org.apache.shardingsphere.orchestration.center.instance.CuratorZookeeperCenterRepositoryTest [ERROR] assertWatchDeletedChangedType(org.apache.shardingsphere.orchestration.center.instance.CuratorZookeeperCenterRepositoryTest) Time elapsed: 4.995 s <<< ERROR! java.util.concurrent.TimeoutException: Timeout waiting for task. at org.apache.shardingsphere.orchestration.center.instance.CuratorZookeeperCenterRepositoryTest.assertWatchDeletedChangedType(CuratorZookeeperCenterRepositoryTest.java:105) ``` The details see: https://api.travis-ci.org/v3/job/661777933/log.txt and the main part of logs: [zk-change.txt](https://github.com/apache/incubator-shardingsphere/files/4336263/zk-change.txt) This test case use curator testingzkserver and cache to support zk unit test, and then watch a key to fire a delete event. After comparing with a normal log and an error log. We find a normal one: > publish and process a delete event with key `/test/children/5` And an error one: > only pushlish a NodeChangeEvent with the parent key `/test/children`, which watched by the last case So, now we can't reproduce this error by sevaral times running. But we would like to fix it now and make some further investigation about it: - [ ] set an independent key for each watched test case to avoid only publishing parent event - [ ] test the bug is related of zk-server or curator+cache
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
