Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
There appears to be an issue with the unit tests for the ZooKeeper State Provider. The client intermittently receives a ConnectionLossException when attempting to fetch the state from ZK. We need to properly address the unit test, but i propose that we should immediately mark the unit test as ignored until we have a chance to properly fix the test, as it is currently preventing master from building. We end up with the following stack trace:
Tests run: 171, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 153.028 sec <<< FAILURE! - in TestSuite
testStateTooLargeExceptionThrownOnReplace on testStateTooLargeExceptionThrownOnReplace(org.apache.nifi.controller.state.providers.zookeeper.TestZooKeeperStateProvider)(org.apache.nifi.controller.state.providers.zookeeper.TestZooKeeperStateProvider) Time elapsed: 5.841 sec <<< FAILURE!
java.io.IOException: Failed to set cluster-wide state in ZooKeeper for component with ID 111111111-1111-1111-1111-111111111111
at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
at org.apache.zookeeper.ZooKeeper.setData(ZooKeeper.java:1270)
at org.apache.nifi.controller.state.providers.zookeeper.ZooKeeperStateProvider.setState(ZooKeeperStateProvider.java:318)
at org.apache.nifi.controller.state.providers.zookeeper.ZooKeeperStateProvider.setState(ZooKeeperStateProvider.java:283)
at org.apache.nifi.controller.state.providers.zookeeper.ZooKeeperStateProvider.setState(ZooKeeperStateProvider.java:228)
at org.apache.nifi.controller.state.providers.zookeeper.TestZooKeeperStateProvider.testStateTooLargeExceptionThrownOnReplace(TestZooKeeperStateProvider.java:163)