Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-1872

ZooKeeper State Provider unit tests failing

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

      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)

        Attachments

          Activity

            People

            • Assignee:
              markap14 Mark Payne
              Reporter:
              markap14 Mark Payne

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment