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

Inaccurate javadoc of BlockUCState#COMPLETE state

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The current javadoc says

       /**
         * States, which a block can go through while it is under construction.
         */
        static public enum BlockUCState {
          /**
           * Block construction completed.<br>
           * The block has at least one {@link ReplicaState#FINALIZED} replica,
           * and is not going to be modified.
           */
          COMPLETE,
      

      However, COMPLETE blocks mean those that have reached minimal replication "dfs.namenode.replication.min", which could be different than one.

      Creating this jira to fix the javadoc.

        Attachments

        1. HDFS-7403.001.patch
          1.0 kB
          Yongjun Zhang
        2. HDFS-7403.002.patch
          1 kB
          Yongjun Zhang
        3. HDFS-7403.003.patch
          1 kB
          Yongjun Zhang

          Activity

            People

            • Assignee:
              yzhangal Yongjun Zhang
              Reporter:
              yzhangal Yongjun Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: