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

UnderReplicationBlocks should use generic types

    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

          People

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

            Dates

              Created:
              Updated:
              Resolved: