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

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

    Details

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

      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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: