Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A7CC7200B54 for ; Thu, 14 Jul 2016 05:27:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A65EC160A6A; Thu, 14 Jul 2016 03:27:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 03656160A6E for ; Thu, 14 Jul 2016 05:27:21 +0200 (CEST) Received: (qmail 32061 invoked by uid 500); 14 Jul 2016 03:27:21 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 32013 invoked by uid 99); 14 Jul 2016 03:27:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2016 03:27:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9576E2C02A5 for ; Thu, 14 Jul 2016 03:27:20 +0000 (UTC) Date: Thu, 14 Jul 2016 03:27:20 +0000 (UTC) From: "Hudson (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-10617) PendingReconstructionBlocks.size() should be synchronized MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 14 Jul 2016 03:27:22 -0000 [ https://issues.apache.org/jira/browse/HDFS-10617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15376257#comment-15376257 ] Hudson commented on HDFS-10617: ------------------------------- SUCCESS: Integrated in Hadoop-trunk-Commit #10095 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/10095/]) HDFS-10617. PendingReconstructionBlocks.size() should be synchronized. (kihwal: rev 2bbc3ea1b54c25c28eb04caa48dece5cfc19d613) * hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/PendingReconstructionBlocks.java > PendingReconstructionBlocks.size() should be synchronized > --------------------------------------------------------- > > Key: HDFS-10617 > URL: https://issues.apache.org/jira/browse/HDFS-10617 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 0.22.0 > Reporter: Eric Badger > Assignee: Eric Badger > Fix For: 2.9.0 > > Attachments: HDFS-10617.001.patch, HDFS-10617.002.patch, HDSF-10617-b2.001.patch > > > PendingReconstructionBlocks (PendingReplicationBlocks in branch-2 and below) is a HashMap, which is not a thread-safe data structure. Therefore, the size() function should be synchronized just like the rest of the member functions. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org