Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7240 Scaling HDFS
  3. HDFS-12016

Ozone: SCM: Container metadata are not loaded properly after datanode restart

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • HDFS-7240
    • HDFS-7240
    • ozone, scm
    • None
    • Reviewed

    Description

      Repro steps (Credit to nandakumar131)
      1. create volume/bucket/key
      2. putkey
      3. restart DN
      4. getkey will hit error on container not found like below.

      2017-06-22 15:28:29,950 [Thread-48] INFO  (OzoneExceptionMapper.java:39)  vol-2/bucket-1/key-1 xyao 8727acc4-c1e9-4ba3-a819-4c0e16957079 - Returning exception. ex: {"httpCode":500,"shortMessage":"internalServerError","resource":"xyao","message":"org.apache.hadoop.scm.container.common.helpers.StorageContainerException: Unable to find the container. Name: 48cb0c3d-0537-4cff-b716-a7f69ebf50bc","requestID":"8 
      

      The root cause is OzoneContainer#OzoneContainer does not load containers from repository properly when ozone.container.metadata.dirs are specified.

      The fix is to append the CONTAINER_ROOT_PREFIX when looking for containers on the datanode.

      Attachments

        1. HDFS-12016-HDFS-7240.001.patch
          4 kB
          Xiaoyu Yao
        2. HDFS-12016-HDFS-7240.002.patch
          5 kB
          Xiaoyu Yao
        3. HDFS-12016-HDFS-7240.003.patch
          8 kB
          Xiaoyu Yao
        4. HDFS-12016-HDFS-7240.004.patch
          10 kB
          Xiaoyu Yao
        5. HDFS-12016-HDFS-7240.005.patch
          9 kB
          Xiaoyu Yao

        Issue Links

          Activity

            People

              xyao Xiaoyu Yao
              nanda Nandakumar
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: