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

RBF: Handle mount table znode with null value

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      When we are adding the mounttable entry, the router sever is terminated.
      Some error messages show in log, as follow:

      2018-08-20 14:18:32,404 ERROR org.apache.hadoop.hdfs.server.federation.store.driver.impl.StateStoreZooKeeperImpl: Cannot get data for 0SLASH0testzk: null.

      The reason is that router server have created the znode but not to set data before being terminated. But the method zkManager.getStringData(path, stat) will throw NPE if the path has null value in the StateStoreZooKeeperImpl, leading to fail in adding the same mounttable entry and deleting the existing znode.

      Attachments

        1. HDFS-13836.001.patch
          1 kB
          yanghuafeng
        2. HDFS-13836.002.patch
          6 kB
          yanghuafeng
        3. HDFS-13836.003.patch
          7 kB
          yanghuafeng
        4. HDFS-13836.004.patch
          6 kB
          yanghuafeng
        5. HDFS-13836.005.patch
          7 kB
          yanghuafeng

        Activity

          People

            hfyang20071 yanghuafeng
            hfyang20071 yanghuafeng
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: