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

VolumeInfo#getScmUsed throws NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 0.3.0, 0.4.0
    • Ozone Datanode
    • None

    Description

      The failure can be seen at the following jenkins run

      https://builds.apache.org/job/PreCommit-HDDS-Build/1540/testReport/org.apache.hadoop.hdds.scm.pipeline/TestNodeFailure/testPipelineFail/

      2018-10-29 13:44:11,984 WARN  concurrent.ExecutorHelper (ExecutorHelper.java:logThrowableFromAfterExecute(50)) - Execution exception when running task in Datanode ReportManager Thread - 3
      2018-10-29 13:44:11,984 WARN  concurrent.ExecutorHelper (ExecutorHelper.java:logThrowableFromAfterExecute(63)) - Caught exception in thread Datanode ReportManager Thread - 3: 
      java.lang.NullPointerException
      	at org.apache.hadoop.ozone.container.common.volume.VolumeInfo.getScmUsed(VolumeInfo.java:107)
      	at org.apache.hadoop.ozone.container.common.volume.VolumeSet.getNodeReport(VolumeSet.java:379)
      	at org.apache.hadoop.ozone.container.ozoneimpl.OzoneContainer.getNodeReport(OzoneContainer.java:225)
      	at org.apache.hadoop.ozone.container.common.report.NodeReportPublisher.getReport(NodeReportPublisher.java:64)
      	at org.apache.hadoop.ozone.container.common.report.NodeReportPublisher.getReport(NodeReportPublisher.java:39)
      	at org.apache.hadoop.ozone.container.common.report.ReportPublisher.publishReport(ReportPublisher.java:86)
      	at org.apache.hadoop.ozone.container.common.report.ReportPublisher.run(ReportPublisher.java:73)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

      Attachments

        1. HDDS-754.001.patch
          3 kB
          Hanisha Koneru
        2. HDDS-754.002.patch
          2 kB
          Hanisha Koneru
        3. HDDS-754.003.patch
          7 kB
          Hanisha Koneru
        4. HDDS-754.004.patch
          9 kB
          Hanisha Koneru

        Activity

          People

            hanishakoneru Hanisha Koneru
            msingh Mukul Kumar Singh
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: