Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-4949 Centralized cache management in HDFS
  3. HDFS-5543

fix narrow race condition in TestPathBasedCacheRequests

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha1
    • 2.3.0
    • test
    • None

    Description

      TestPathBasedCacheRequests has a narrow race condition in testWaitForCachedReplicasInDirectory where an assert checking the number of bytes cached may fail. The reason is because waitForCachedBlock looks at the NameNode data structures directly to see how many replicas are cached, but the scanner asynchronously updates the cache entries with this information.

      Attachments

        1. HDFS-5543.002.patch
          6 kB
          Colin McCabe
        2. HDFS-5543.001.patch
          6 kB
          Colin McCabe

        Activity

          People

            cmccabe Colin McCabe
            cmccabe Colin McCabe
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: