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

dfsadmin -metasave throws NPE when under-replicated blocks are recently deleted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.0.0-alpha1
    • None
    • namenode
    • None

    Description

      We currently have the following race:

      • Block is underreplicated, hence it's present in neededReplications
      • User deletes the block - its BlockInfo.blockCollection is set to null
      • Admin runs metaSave before the replication monitor runs.

      This causes an NPE since block.getBlockCollection() for one of the neededReplication blocks has become null.

      Attachments

        Issue Links

          Activity

            People

              adi2 Andy Isaacson
              tlipcon Todd Lipcon
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: