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

Merge Block.BLOCK_FILE_PREFIX and DataStorage.BLOCK_FILE_PREFIX into one constant

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha1
    • Fix Version/s: 2.7.0
    • Component/s: datanode
    • Labels:
    • Target Version/s:
    • Hadoop Flags:
      Reviewed
    • Release Note:
      Hide
      This merges Block.BLOCK_FILE_PREFIX and DataStorage.BLOCK_FILE_PREFIX into one constant. Hard-coded
      literals of "blk_" in various files are also updated to use the same constant.
      Show
      This merges Block.BLOCK_FILE_PREFIX and DataStorage.BLOCK_FILE_PREFIX into one constant. Hard-coded literals of "blk_" in various files are also updated to use the same constant.

      Description

      Two semantically identical constant Block.BLOCK_FILE_PREFIX and DataStorage.BLOCK_FILE_PREFIX should merged into one. Should be defined in Block, imo.
      Also use cases of "blok_", like in DirectoryScanner should be replaced by the this constant.

        Attachments

        1. HDFS-1522.002.patch
          10 kB
          Dongming Liang
        2. HDFS-1522.patch
          10 kB
          Dongming Liang

          Activity

            People

            • Assignee:
              d9liang Dongming Liang
              Reporter:
              shv Konstantin Shvachko
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: