Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8257

Auto-HA: TestZKFailoverControllerStress occasionally fails with Mockito error

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Once in a while I've seen the following in TestZKFailoverControllerStress:

      Unfinished stubbing detected here: -> at org.apache.hadoop.ha.TestZKFailoverControllerStress.testRandomHealthAndDisconnects(TestZKFailoverControllerStress.java:118) E.g. thenReturn() may be missing....

      This is because we set up the mock answers after starting the ZKFCs. So if the ZKFC calls the mock object while it's in the middle of the setup, this exception occurs.

      Attachments

        1. hadoop-8257.txt
          2 kB
          Todd Lipcon

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tlipcon Todd Lipcon
            tlipcon Todd Lipcon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment