Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-7343

Fix flaky condition for TestDrainingServer

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

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.94.3
    • 0.94.4
    • test
    • None
    • Reviewed

    Description

      The assert statement in setUpBeforeClass() may fail in case the region distribution is not even (a particular rs has 0 regions).

      junit.framework.AssertionFailedError
      	at junit.framework.Assert.fail(Assert.java:48)
      	at junit.framework.Assert.assertTrue(Assert.java:20)
      	at junit.framework.Assert.assertFalse(Assert.java:34)
      	at junit.framework.Assert.assertFalse(Assert.java:41)
      	at org.apache.hadoop.hbase.TestDrainingServer.setUpBeforeClass(TestDrainingServer.java:83)
      
      

      This is already fixed in trunk with HBASE-5992, but as that's a bigger change and uses 5877, this jira fixes that issue instead of backporting 5992.

      Attachments

        1. HBASE-7343.patch
          2 kB
          Himanshu Vashishtha

        Activity

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

          People

            v.himanshu Himanshu Vashishtha
            v.himanshu Himanshu Vashishtha
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment