Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-1808

TestBalancer waits forever, errs without giving information

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.22.0
    • 0.23.0
    • datanode, namenode
    • None
    • Reviewed

    Description

      In three locations in the code, TestBalancer waits forever on a condition. Failures result in Hudson/Jenkins "Timeout occurred" error message with no information about where or why. Need to replace with TimeoutExceptions that throw a stack trace and useful info about the failure mode.

      In waitForHeartBeat(), it is waiting on an exact match for a value that may be coarsely quantized – i.e., significant deviation from the exact "expected" result may occur. Replace with an allowed range of result.

      Attachments

        1. TestBalancer.java.patch
          8 kB
          Matthew Foley
        2. 1808_TestBalancer_v4.patch
          8 kB
          Matthew Foley
        3. 1808_TestBalancer_v3.patch
          9 kB
          Matthew Foley

        Activity

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

          People

            mattf Matthew Foley
            mattf Matthew Foley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment