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

Bug in TestBPOfferService can cause test failure

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.5.0
    • Component/s: test
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      need to fix a bug in TestBPOfferService#waitForBlockReceived that fails the trunk, e.g. in Build #1781.
      Details: in this test, the utility function waitForBlockReceived() has a bug:
      parameter mockNN is never used but hard-coded mockNN1 is used.
      This bug introduces undeterministic test failure when testBasicFunctionality() calls
      ret = waitForBlockReceived(FAKE_BLOCK, mockNN2);
      and the call finishes before the actual interaction with mockNN2 happens.

        Attachments

          Activity

            People

            • Assignee:
              timxzl Zhilei Xu
              Reporter:
              timxzl Zhilei Xu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: