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

NullPointerException thrown while trying to read a file when datanode restarted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 0.3.0
    • Ozone Datanode
    • None

    Description

      steps taken :

      -------------------

      1. Put few files and directories using ozonefs
      2. stopped all services of cluster.
      3. started the scm, om and then datanodes.

      While datanodes were starting up, tried to read a file. Null pointer Exception was thrown.

       

      [root@ctr-e138-1518143905142-544443-01-000003 ~]# /root/hadoop_trunk/ozone-0.3.0-SNAPSHOT/bin/ozone fs -ls -R /
      2018-10-24 04:48:00,703 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
      drwxrwxrwx - root root 0 2018-10-24 04:12 /testdir1
      -rw-rw-rw- 1 root root 5368709120 1970-02-25 15:29 /testdir1/5GB
      -rw-rw-rw- 1 root root 4798 1970-02-25 15:22 /testdir1/passwd
      drwxrwxrwx - root root 0 2018-10-24 04:46 /testdir3
      
      [root@ctr-e138-1518143905142-544443-01-000003 ~]# /root/hadoop_trunk/ozone-0.3.0-SNAPSHOT/bin/ozone fs -cat o3fs://fs-bucket.fs-volume/testdir1/passwd
      2018-10-24 04:49:24,955 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
      cat: Exception getting XceiverClient: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException

       

      Attachments

        1. all-node-ozone-logs-1540356965.tar.gz
          278 kB
          Nilotpal Nandi
        2. HDDS-721-ozone-0.3.000.patch
          1 kB
          Shashikant Banerjee
        3. HDDS-721-ozone-0.3.001.patch
          4 kB
          Shashikant Banerjee

        Activity

          People

            shashikant Shashikant Banerjee
            nilotpalnandi Nilotpal Nandi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: