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

ShellCommandFencer should expose info about source

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.2, 2.10.1, 3.3.1, 3.4.0
    • 3.2.2, 2.10.1, 3.3.1, 3.4.0
    • ha, tools
    • None

    Description

      Currently the HA fencing logic in ShellCommandFencer exposes environment variable about only the fencing target. i.e. the $target_* variables as mentioned in this document page).

      But here only the fencing target variables are getting exposed. Sometimes it is useful to expose info about the fencing source node. One use case is would allow source and target node to identify themselves separately and run different commands/scripts.

      Attachments

        1. HDFS-15404.001.patch
          10 kB
          Chen Liang
        2. HDFS-15404.002.patch
          10 kB
          Chen Liang
        3. HDFS-15404.003.patch
          14 kB
          Chen Liang
        4. HDFS-15404.004.patch
          15 kB
          Chen Liang
        5. HDFS-15404.005.patch
          14 kB
          Chen Liang
        6. HDFS-15404.006.patch
          14 kB
          Chen Liang

        Activity

          People

            vagarychen Chen Liang
            vagarychen Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: