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

TestCacheDirectives#testExceedsCapacity should take FSN read lock when accessing pendingCached list

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.0
    • 2.5.0
    • None
    • None

    Description

      Observed from

      https://builds.apache.org/job/PreCommit-HDFS-Build/7080//testReport/

      Test
      org.apache.hadoop.hdfs.server.namenode.TestCacheDirectives.testExceedsCapacity
      fails intermittently

      Failing for the past 1 build (Since Failed#7080 )
      Took 7.3 sec.
      Stacktrace
      
      java.lang.AssertionError: null
      	at org.junit.Assert.fail(Assert.java:86)
      	at org.junit.Assert.assertTrue(Assert.java:41)
      	at org.junit.Assert.assertTrue(Assert.java:52)
      	at org.apache.hadoop.hdfs.server.namenode.TestCacheDirectives.checkPendingCachedEmpty(TestCacheDirectives.java:1416)
      	at org.apache.hadoop.hdfs.server.namenode.TestCacheDirectives.testExceedsCapacity(TestCacheDirectives.java:1437)
      

      A second run with the same code is successful,

      https://builds.apache.org/job/PreCommit-HDFS-Build/7082//testReport/

      Running it locally is also successful.

      HDFS-6257 mentioned about possible race, maybe the issue is still there.

      Thanks.

      Attachments

        1. HDFS-6518.001.patch
          1 kB
          Andrew Wang

        Issue Links

          Activity

            People

              andrew.wang Andrew Wang
              yzhangal Yongjun Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: