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

Race Between update pipeline and DN Re-Registration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 2.9.0, 3.0.0-beta1, 2.8.2, 2.7.6
    • None
    • None
    • 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.patch
          4 kB
          Brahma Reddy Battula
        2. HDFS-12299-branch-2.patch
          5 kB
          Brahma Reddy Battula
        3. HDFS-12299-branch-2-002.patch
          5 kB
          Brahma Reddy Battula
        4. HDFS-12299.001.branch-2.7.patch
          6 kB
          Wei-Chiu Chuang
        5. HDFS-12299.002.branch-2.7.patch
          7 kB
          Konstantin Shvachko

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: