Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 067047517 for ; Wed, 20 Jul 2011 09:59:50 +0000 (UTC) Received: (qmail 37213 invoked by uid 500); 20 Jul 2011 09:59:49 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 36138 invoked by uid 500); 20 Jul 2011 09:59:29 -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 36073 invoked by uid 99); 20 Jul 2011 09:59:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2011 09:59:23 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2011 09:59:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7758449FBD for ; Wed, 20 Jul 2011 09:58:58 +0000 (UTC) Date: Wed, 20 Jul 2011 09:58:58 +0000 (UTC) From: "Denny Ye (JIRA)" To: hdfs-dev@hadoop.apache.org Message-ID: <1986488647.7265.1311155938485.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (HDFS-2176) Avoid ConcurrentModificationException when FSImage initialization 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 Avoid ConcurrentModificationException when FSImage initialization ----------------------------------------------------------------- Key: HDFS-2176 URL: https://issues.apache.org/jira/browse/HDFS-2176 Project: Hadoop HDFS Issue Type: Improvement Affects Versions: 0.21.0 Reporter: Denny Ye Priority: Minor Below code may cause ConcurrentModificationException when some of fsimage directory equals editlog directory : Method: FSImage.setStorageDirectories(Collection fsNameDirs, Collection fsEditsDirs) Code: for (URI dirName : fsNameDirs) { ... boolean isAlsoEdits = false; for (URI editsDirName : fsEditsDirs) { if (editsDirName.compareTo(dirName) == 0) { isAlsoEdits = true; fsEditsDirs.remove(editsDirName); break; } } } -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira