Return-Path: X-Original-To: apmail-pig-dev-archive@www.apache.org Delivered-To: apmail-pig-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 55844177F0 for ; Tue, 3 Mar 2015 01:19:05 +0000 (UTC) Received: (qmail 76103 invoked by uid 500); 3 Mar 2015 01:19:05 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 76043 invoked by uid 500); 3 Mar 2015 01:19:05 -0000 Mailing-List: contact dev-help@pig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pig.apache.org Delivered-To: mailing list dev@pig.apache.org Received: (qmail 76030 invoked by uid 500); 3 Mar 2015 01:19:04 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 76027 invoked by uid 99); 3 Mar 2015 01:19:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2015 01:19:04 +0000 Date: Tue, 3 Mar 2015 01:19:04 +0000 (UTC) From: "Chris Nauroth (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (PIG-4442) Eliminate redundant RPC call to get file information in HPath. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Chris Nauroth created PIG-4442: ---------------------------------- Summary: Eliminate redundant RPC call to get file information in HPath. Key: PIG-4442 URL: https://issues.apache.org/jira/browse/PIG-4442 Project: Pig Issue Type: Improvement Affects Versions: 0.13.0 Reporter: Chris Nauroth Assignee: Chris Nauroth Priority: Minor The {{HPath}} class makes 2 separate calls to {{FileSystem#getFileStatus}} to get the block size and replication. In the case of HDFS, this results in 2 separate but identical RPC transactions with the NameNode. The situation is the same for many other alternative {{FileSystem}} implementations too. We can get a minor latency improvement and lighten some RPC load on the remote services by using a single call and getting the block size and replication from the same response. -- This message was sent by Atlassian JIRA (v6.3.4#6332)