Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C7D9CA39 for ; Wed, 3 Jul 2013 05:16:24 +0000 (UTC) Received: (qmail 74325 invoked by uid 500); 3 Jul 2013 05:16:21 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 73834 invoked by uid 500); 3 Jul 2013 05:16:21 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 73684 invoked by uid 99); 3 Jul 2013 05:16:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jul 2013 05:16:20 +0000 Date: Wed, 3 Jul 2013 05:16:20 +0000 (UTC) From: "Chris Nauroth (JIRA)" To: common-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HADOOP-9691) RPC clients can generate call ID using AtomicInteger instead of synchronizing on the Client instance. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Chris Nauroth created HADOOP-9691: ------------------------------------- Summary: RPC clients can generate call ID using AtomicInteger instead of synchronizing on the Client instance. Key: HADOOP-9691 URL: https://issues.apache.org/jira/browse/HADOOP-9691 Project: Hadoop Common Issue Type: Improvement Components: ipc Affects Versions: 3.0.0, 2.1.0-beta Reporter: Chris Nauroth Assignee: Chris Nauroth Priority: Minor As noted in discussion on HADOOP-9688, we can optimize generation of call ID in the RPC client code. Currently, it synchronizes on the {{Client}} instance to coordinate access to a shared {{int}}. We can switch this to {{AtomicInteger}} to avoid lock contention. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira