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

Race Between update pipeline and DN Re-Registration

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0, 3.0.0-beta1, 2.8.2, 2.7.6
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      Scenario

      • Started pipeline with DN1->DN2->DN3
      • DN1 is re-reg and update pipeline is called
      • Update pipeline will success with DN1->DN3->DN4
      • Again update pipeline is called,which will fail with NPE.

      In step3 updatepipeline will set the storages as null since DN1 re-reg(which will remove and add the storages)
      FSNamesystem#updatePipelineInternal

         lastBlock.getUnderConstructionFeature().setExpectedLocations(lastBlock,
              storages, lastBlock.getBlockType())
      

        Attachments

        1. HDFS-12299.001.branch-2.7.patch
          6 kB
          Wei-Chiu Chuang
        2. HDFS-12299.002.branch-2.7.patch
          7 kB
          Konstantin Shvachko
        3. HDFS-12299.patch
          4 kB
          Brahma Reddy Battula
        4. HDFS-12299-branch-2.patch
          5 kB
          Brahma Reddy Battula
        5. HDFS-12299-branch-2-002.patch
          5 kB
          Brahma Reddy Battula

          Issue Links

            Activity

              People

              • Assignee:
                brahmareddy Brahma Reddy Battula
                Reporter:
                brahmareddy Brahma Reddy Battula
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: