Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C89B3182AE for ; Thu, 11 Feb 2016 23:21:18 +0000 (UTC) Received: (qmail 17447 invoked by uid 500); 11 Feb 2016 23:21:18 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 17383 invoked by uid 500); 11 Feb 2016 23:21:18 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 17344 invoked by uid 99); 11 Feb 2016 23:21:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Feb 2016 23:21:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 3402D2C1F5D for ; Thu, 11 Feb 2016 23:21:18 +0000 (UTC) Date: Thu, 11 Feb 2016 23:21:18 +0000 (UTC) From: "Allen Wittenauer (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-7457) DatanodeID generates excessive garbage 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-7457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Allen Wittenauer updated HDFS-7457: ----------------------------------- Release Note: (was: Thanks for the reviews, gentlemen. I've committed this to trunk and branch-2. Thanks for identifying and working on the issue, Daryn.) > DatanodeID generates excessive garbage > -------------------------------------- > > Key: HDFS-7457 > URL: https://issues.apache.org/jira/browse/HDFS-7457 > Project: Hadoop HDFS > Issue Type: Bug > Components: namenode > Affects Versions: 2.0.0-alpha, 3.0.0 > Reporter: Daryn Sharp > Assignee: Daryn Sharp > Fix For: 2.7.0 > > Attachments: HDFS-7457.patch > > > {{DatanodeID#getXferAddr}} is a dynamically generated string. This string is repeatedly generated for the hash code, equality, comparisons, and stringification. Every DN->NN RPC method calls {{DatanodeManager#getDatanode}} to validate if the node is registered, which involves a call to {{getXferAddr}}. > The dynamic computation generates unnecessary trash that puts unnecessary pressure on the GC. -- This message was sent by Atlassian JIRA (v6.3.4#6332)