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

Replace NPE with IOException in DataNode.class

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      In current logic, if storage not yet initialized, it will throw a NPE in DataNode.class. Developers or SREs are very sensitive to NPE, so I feel that we can use IOException instead of NPE when storage not yet initialized.

      Attachments

        Issue Links

          Activity

            People

              xuzq_zander ZanderXu
              xuzq_zander ZanderXu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h