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 40226200BF5 for ; Sat, 7 Jan 2017 08:27:27 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 38A06160B3C; Sat, 7 Jan 2017 07:27:27 +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 7F34C160B2F for ; Sat, 7 Jan 2017 08:27:26 +0100 (CET) Received: (qmail 30912 invoked by uid 500); 7 Jan 2017 07:27:25 -0000 Mailing-List: contact reviews-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@impala.incubator.apache.org Received: (qmail 30900 invoked by uid 99); 7 Jan 2017 07:27:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Jan 2017 07:27:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 9DE36C03A0 for ; Sat, 7 Jan 2017 07:27:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.363 X-Spam-Level: X-Spam-Status: No, score=0.363 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id wgvF6WgnEyuV for ; Sat, 7 Jan 2017 07:27:23 +0000 (UTC) Received: from ip-10-146-233-104.ec2.internal (ec2-75-101-130-251.compute-1.amazonaws.com [75.101.130.251]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 9DAF95F477 for ; Sat, 7 Jan 2017 07:27:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-10-146-233-104.ec2.internal (8.14.4/8.14.4) with ESMTP id v077RDbX017911; Sat, 7 Jan 2017 07:27:13 GMT Message-Id: <201701070727.v077RDbX017911@ip-10-146-233-104.ec2.internal> Date: Sat, 7 Jan 2017 07:27:13 +0000 From: "Huaisi Xu (Code Review)" To: Matthew Jacobs , impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Dan Hecht , Tim Armstrong Reply-To: hxu@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-4740=3A_Add_option_to_use_hdfsPread=28=29_for_HDFS_hedged_reads=0A?= X-Gerrit-Change-Id: Iecc8b12aa20cbfe08f4ef6a08a191e49709d9525 X-Gerrit-ChangeURL: X-Gerrit-Commit: 6234535d4f943ec2ff761a3505a390f20f97078c In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.12.2 archived-at: Sat, 07 Jan 2017 07:27:27 -0000 Huaisi Xu has posted comments on this change. Change subject: IMPALA-4740: Add option to use hdfsPread() for HDFS hedged reads ...................................................................... Patch Set 2: > > The HDFS-5776 JIRA mentions that it's implemented for the pread() > > code path, but it's not that clear. If you look at the code it's > > very clear that it only kicks in on the pread() code path: > > > > https://github.com/apache/hadoop/search?utf8=%E2%9C%93&q=isHedgedReadsEnabled > > I may be wrong again (as always), hdfspread is not pread. from > https://github.com/apache/hadoop/blob/f67237cbe7bc48a1b9088e990800b37529f1db2a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/hdfs.c#L1426, > you can see hdfspread() invokes read(), and hdfsread() calls read() > as well, and in turn read() calls pread() as you can see in the > link you just quoted. So this new gflag is essentially ignored? > What did I miss here? I missed. it calls a different signature. hdfspread calls read(long position, byte[] buffer, int offset, int length). thanks for pointing it out.. -- To view, visit http://gerrit.cloudera.org:8080/5635 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: Iecc8b12aa20cbfe08f4ef6a08a191e49709d9525 Gerrit-PatchSet: 2 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Matthew Jacobs Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: Huaisi Xu Gerrit-Reviewer: Internal Jenkins Gerrit-Reviewer: Matthew Jacobs Gerrit-Reviewer: Tim Armstrong Gerrit-HasComments: No