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

TestLargeDirectoryDelete fails with NullPointerException

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.21.0
    • 0.21.0
    • namenode
    • None
    • 64-bit debian 5, 64-bit sun java6, running in a single processor VM.

    Description

      I've hit the following failure two out of two times running "ant test" at rev 813587. This test doesn't appear to be failing on hudson. All other tests passed except TestHDFSFileSystemContract which timed out, so perhaps there's a race due to the test executing slowly.

      [junit] Running org.apache.hadoop.hdfs.server.namenode.TestLargeDirectoryDelete
      [junit] Exception in thread "Thread-30148" java.lang.NullPointerException
      [junit] at org.apache.hadoop.hdfs.server.namenode.NameNodeAdapter.getNamesystem(NameNodeAdapter.java:32)
      [junit] at org.apache.hadoop.hdfs.MiniDFSCluster.getNamesystem(MiniDFSCluster.java:522)
      [junit] at org.apache.hadoop.hdfs.server.namenode.TestLargeDirectoryDelete.getBlockCount(TestLargeDirectoryDelete.java:75)
      [junit] at org.apache.hadoop.hdfs.server.namenode.TestLargeDirectoryDelete.access$000(TestLargeDirectoryDelete.java:38)
      [junit] at org.apache.hadoop.hdfs.server.namenode.TestLargeDirectoryDelete$1.run(TestLargeDirectoryDelete.java:90)
      [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 94.264 sec

      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ No failures or errors?

      public static FSNamesystem getNamesystem(NameNode namenode)

      { return namenode.getNamesystem(); <=========== }

      Attachments

        1. TestLargeDirectoryDelete.zip
          798 kB
          Anatoli Fomenko
        2. HDFS-615.patch
          0.6 kB
          Konstantin I Boudnik

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            eli Eli Collins
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment