Return-Path: Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: (qmail 62244 invoked from network); 8 Jul 2010 10:51:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Jul 2010 10:51:23 -0000 Received: (qmail 35684 invoked by uid 500); 8 Jul 2010 10:51:23 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 33403 invoked by uid 500); 8 Jul 2010 10:51:19 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 33023 invoked by uid 99); 8 Jul 2010 10:51:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jul 2010 10:51:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jul 2010 10:51:13 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o68AopGo017573 for ; Thu, 8 Jul 2010 10:50:51 GMT Message-ID: <14881061.258251278586251156.JavaMail.jira@thor> Date: Thu, 8 Jul 2010 06:50:51 -0400 (EDT) From: "NarayanaSwamy (JIRA)" To: hdfs-dev@hadoop.apache.org Subject: [jira] Created: (HDFS-1287) Why TreeSet is used when collecting block information FSDataSet::getBlockReport MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Why TreeSet is used when collecting block information FSDataSet::getBlockReport ------------------------------------------------------------------------------- Key: HDFS-1287 URL: https://issues.apache.org/jira/browse/HDFS-1287 Project: Hadoop HDFS Issue Type: Improvement Reporter: NarayanaSwamy As a return value we are converting this to array and returning and in name node also we are iterating ... so can we use list onstead of set. (As the block ids are unique, there may not be duplicates) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.