Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      TestPeerCache is flaky now because it relies on using the same global cache for every test function. So the cache timeout can't be set to something different for each test.

      Also, we should implement equals and hashCode for FakePeer, since otherwise testMultiplePeersWithSameDnId is not really testing what happens when multiple equal peers are inserted into the cache. (The default equals is object equality).

        Attachments

        1. HDFS-4433.001.patch
          8 kB
          Colin McCabe

          Activity

            People

            • Assignee:
              cmccabe Colin McCabe
              Reporter:
              cmccabe Colin McCabe
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: