Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-859

Fix NPE ServerUtils#getOzoneMetaDirPath

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • None
    • HDDS BadLands

    Description

      This can be reproed with "mvn test" under hadoop-ozone project but not with individual test run under IntelliJ.

       

      Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.33 s <<< FAILURE! - in org.apache.hadoop.ozone.TestOmUtils
      
      testNoOmDbDirConfigured(org.apache.hadoop.ozone.TestOmUtils)  Time elapsed: 0.028 s  <<< FAILURE!
      
      java.lang.AssertionError:
      
       
      
      Expected: an instance of java.lang.IllegalArgumentException
      
           but: <java.lang.NullPointerException> is a java.lang.NullPointerException
      
      Stacktrace was: java.lang.NullPointerException
      
              at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:187)
      
              at org.apache.hadoop.hdds.server.ServerUtils.getOzoneMetaDirPath(ServerUtils.java:130)
      
              at org.apache.hadoop.ozone.OmUtils.getOmDbDir(OmUtils.java:141)
      
              at org.apache.hadoop.ozone.TestOmUtils.testNoOmDbDirConfigured(TestOmUtils.java:89)
      
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      
              at java.lang.reflect.Method.invoke(Method.java:498)
      
              at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      
              at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      
              at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      
              at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      
              at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)
      
       
      
      

      Attachments

        Activity

          People

            xyao Xiaoyu Yao
            xyao Xiaoyu Yao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: