Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-28001

Fix the flaky test TestLeaderElection

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0
    • None

    Description

      The TestLeaderElection is failing sometimes, example:

      http://ci.hive.apache.org/blue/organizations/jenkins/hive-precommit/detail/master/2032/tests

      http://ci.hive.apache.org/blue/organizations/jenkins/hive-precommit/detail/PR-4995/3/tests

      http://ci.hive.apache.org/job/hive-flaky-check/796/

      They are failed because of:
      java.lang.AssertionError
           at org.apache.hadoop.hive.metastore.leader.TestLeaderElection.testLeaseLeaderElection(TestLeaderElection.java:121)

      assertFalse(lockId1 == instance1.getLockId()); 

      Lock remains the same, however it's supposed to be changed after a new leader is elected.
       

      Attachments

        Activity

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

          People

            dengzh Zhihua Deng Assign to me
            dengzh Zhihua Deng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment