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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha1
    • 2.7.0
    • datanode
    • Reviewed
    • 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.patch
          10 kB
          Dongming Liang
        2. HDFS-1522.002.patch
          10 kB
          Dongming Liang

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: