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

BlockManager cross-rack replication checks only work for ScriptBasedMapping

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.0.1, 1.0.2, 2.0.0-alpha, 3.0.0-alpha1
    • None
    • None
    • None

    Description

      The BlockManager cross-rack replication checks only works if script files are used for replication, not if alternate plugins provide the topology information.

      This is because the BlockManager sets its rack checking flag if there is a filename key

      shouldCheckForEnoughRacks = conf.get(DFSConfigKeys.NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY) != null;
      

      yet this filename key is only used if the topology mapper defined by

      DFSConfigKeys.NET_TOPOLOGY_NODE_SWITCH_MAPPING_IMPL_KEY
      

      is an instance of ScriptBasedMapping

      If any other mapper is used, the system may be multi rack, but the Block Manager will not be aware of this fact unless the filename key is set to something non-null

      Attachments

        1. HDFS-2492.patch
          3 kB
          Steve Loughran
        2. HDFS-2492-blockmanager.patch
          3 kB
          Steve Loughran
        3. HDFS-2492-blockmanager.patch
          3 kB
          Steve Loughran
        4. HDFS-2492-blockmanager.patch
          3 kB
          Steve Loughran
        5. HDFS-2492-blockmanager.patch
          3 kB
          Steve Loughran
        6. HDFS-2492-blockmanager.patch
          3 kB
          Steve Loughran
        7. HDFS-2492-blockmanager.patch
          3 kB
          Steve Loughran

        Issue Links

          Activity

            People

              stevel@apache.org Steve Loughran
              stevel@apache.org Steve Loughran
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: