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 0A884200BC4 for ; Sat, 5 Nov 2016 00:28:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 09364160AFE; Fri, 4 Nov 2016 23:28:05 +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 51CD4160B04 for ; Sat, 5 Nov 2016 00:28:04 +0100 (CET) Received: (qmail 27468 invoked by uid 500); 4 Nov 2016 23:28:03 -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 27440 invoked by uid 99); 4 Nov 2016 23:28:03 -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; Fri, 04 Nov 2016 23:28:03 +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 CFFB7C0C96 for ; Fri, 4 Nov 2016 23:28:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.362 X-Spam-Level: X-Spam-Status: No, score=0.362 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id j90oCVW2o2iS for ; Fri, 4 Nov 2016 23:28:00 +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-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id D2F895FAEA for ; Fri, 4 Nov 2016 23:27:59 +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 uA4NRu9E014980; Fri, 4 Nov 2016 23:27:56 GMT Message-Id: <201611042327.uA4NRu9E014980@ip-10-146-233-104.ec2.internal> Date: Fri, 4 Nov 2016 23:27:56 +0000 From: "Marcel Kornacker (Code Review)" To: Laszlo Gaal , impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Alex Behm , Tim Armstrong Reply-To: marcel@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-4172=3A_Switch_to_BlockLocation_methods_for_disk_IDs=0A?= X-Gerrit-Change-Id: Ibbff94cef9a9db7b3945f8e7b0286866d2cc3b61 X-Gerrit-ChangeURL: X-Gerrit-Commit: 045244bef8959239d359b4e6e90a9219a45489ad 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: Fri, 04 Nov 2016 23:28:05 -0000 Marcel Kornacker has posted comments on this change. Change subject: IMPALA-4172: Switch to BlockLocation methods for disk IDs ...................................................................... Patch Set 1: (1 comment) http://gerrit.cloudera.org:8080/#/c/4914/1/fe/src/main/java/org/apache/impala/catalog/HdfsTable.java File fe/src/main/java/org/apache/impala/catalog/HdfsTable.java: Line 379: private static int getDiskId(String storageId) { > In the BE we mod the disk id to determine which disk queue to put reads on, it's very unusual for a server to have more than 128 disks (i don't think we've ever seen one), so from that perspective i'm not worried about using fewer bits to represent the disk "ordinal". keep in mind that we really don't care about distinguishing disks globally. using a designated "out of range" value (such as 127) if a node should really exceed 127 disks, and then placing scan ranges with that value on random disk queues should degrade performance gracefully in cases where the number of disks is just a bit above that threshold. -- To view, visit http://gerrit.cloudera.org:8080/4914 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ibbff94cef9a9db7b3945f8e7b0286866d2cc3b61 Gerrit-PatchSet: 1 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Laszlo Gaal Gerrit-Reviewer: Alex Behm Gerrit-Reviewer: Laszlo Gaal Gerrit-Reviewer: Marcel Kornacker Gerrit-Reviewer: Tim Armstrong Gerrit-HasComments: Yes