Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-5108

TestFileSystemApplicationHistoryStore fails

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      Unit test failure is found in other JIRA Jenkins test (YARN-5100):

      Running org.apache.hadoop.yarn.server.applicationhistoryservice.TestFileSystemApplicationHistoryStore
      Tests run: 8, Failures: 1, Errors: 2, Skipped: 0, Time elapsed: 20.188 sec <<< FAILURE! - in org.apache.hadoop.yarn.server.applicationhistoryservice.TestFileSystemApplicationHistoryStore
      testMissingApplicationAttemptHistoryData(org.apache.hadoop.yarn.server.applicationhistoryservice.TestFileSystemApplicationHistoryStore)  Time elapsed: 0.054 sec  <<< ERROR!
      java.lang.NullPointerException: null
      	at java.util.TreeMap.getEntry(TreeMap.java:347)
      	at java.util.TreeMap.get(TreeMap.java:278)
      	at org.apache.hadoop.fs.GlobalStorageStatistics.put(GlobalStorageStatistics.java:73)
      	at org.apache.hadoop.fs.FileSystem.getStatistics(FileSystem.java:3598)
      	at org.apache.hadoop.fs.FileSystem.initialize(FileSystem.java:214)
      	at org.apache.hadoop.fs.RawLocalFileSystem.initialize(RawLocalFileSystem.java:101)
      	at org.apache.hadoop.yarn.server.applicationhistoryservice.TestFileSystemApplicationHistoryStore.initAndStartStore(TestFileSystemApplicationHistoryStore.java:70)
      	at org.apache.hadoop.yarn.server.applicationhistoryservice.TestFileSystemApplicationHistoryStore.setup(TestFileSystemApplicationHistoryStore.java:64)
      
      testMissingApplicationAttemptHistoryData(org.apache.hadoop.yarn.server.applicationhistoryservice.TestFileSystemApplicationHistoryStore)  Time elapsed: 0.054 sec  <<< ERROR!
      java.lang.NullPointerException: null
      	at org.apache.hadoop.yarn.server.applicationhistoryservice.TestFileSystemApplicationHistoryStore.tearDown(TestFileSystemApplicationHistoryStore.java:89)
      
      testInitNonExistingWorkingDirectoryInSafeMode(org.apache.hadoop.yarn.server.applicationhistoryservice.TestFileSystemApplicationHistoryStore)  Time elapsed: 0.517 sec  <<< FAILURE!
      org.mockito.exceptions.verification.WantedButNotInvoked: 
      Wanted but not invoked:
      rawLocalFileSystem.isDirectory(<any>);
      -> at org.apache.hadoop.yarn.server.applicationhistoryservice.TestFileSystemApplicationHistoryStore.testInitNonExistingWorkingDirectoryInSafeMode(TestFileSystemApplicationHistoryStore.java:304)
      
      However, there were other interactions with this mock:
      -> at org.apache.hadoop.yarn.server.applicationhistoryservice.TestFileSystemApplicationHistoryStore.initAndStartStore(TestFileSystemApplicationHistoryStore.java:70)
      
      	at org.apache.hadoop.yarn.server.applicationhistoryservice.TestFileSystemApplicationHistoryStore.testInitNonExistingWorkingDirectoryInSafeMode(TestFileSystemApplicationHistoryStore.java:304)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              xgong Xuan Gong
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: