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

UnderReplicationBlocks should use generic types

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • None
    • None

    Description

      1. HADOOP-659 introduced new class UnderReplicationBlocks, and
      two new warnings about use of generic types
      TreeSet<Block>[] priorityQueues = new TreeSet[LEVEL];
      Iterator<Block>[] iterator = new Iterator[LEVEL];
      should resp. read
      TreeSet<Block>[] priorityQueues = new TreeSet<Block>[LEVEL];
      Iterator<Block>[] iterator = new Iterator<Block>[LEVEL];

      2. I'd rename class UnderReplicationBlocks to UnderReplicatedBlocks while it is still internal.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            shv Konstantin Shvachko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment