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

Inaccurate javadoc of BlockUCState#COMPLETE state

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 2.7.0
    • namenode
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: