From hdfs-issues-return-284361-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Fri Sep 20 16:46:05 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 9A835180608 for ; Fri, 20 Sep 2019 18:46:05 +0200 (CEST) Received: (qmail 34894 invoked by uid 500); 20 Sep 2019 16:46:03 -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 34774 invoked by uid 99); 20 Sep 2019 16:46:03 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Sep 2019 16:46:03 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 84311E31A6 for ; Fri, 20 Sep 2019 16:46:02 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 54629780857 for ; Fri, 20 Sep 2019 16:46:00 +0000 (UTC) Date: Fri, 20 Sep 2019 16:46:00 +0000 (UTC) From: "David Mollitor (Jira)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-14863) Remove Synchronization From BlockPlacementPolicyDefault MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-14863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David Mollitor updated HDFS-14863: ---------------------------------- Attachment: HDFS-14863.1.patch > Remove Synchronization From BlockPlacementPolicyDefault > ------------------------------------------------------- > > Key: HDFS-14863 > URL: https://issues.apache.org/jira/browse/HDFS-14863 > Project: Hadoop HDFS > Issue Type: Improvement > Components: block placement > Affects Versions: 3.2.0 > Reporter: David Mollitor > Assignee: David Mollitor > Priority: Major > Attachments: HDFS-14863.1.patch > > > https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockPlacementPolicyDefault.java#L1010 > The {{clusterMap}} has its own internal synchronization. Also, these are only read operations so any changes applied to the {{clusterMap}} from another thread will be applied since no other thread synchronizes on the {{clusterMap}} itself (that I could find). -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org