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 A8B25200C44 for ; Mon, 27 Mar 2017 20:59:42 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A5BF8160B85; Mon, 27 Mar 2017 18:59:42 +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 EDD7A160B7B for ; Mon, 27 Mar 2017 20:59:41 +0200 (CEST) Received: (qmail 46343 invoked by uid 500); 27 Mar 2017 18:59:41 -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 46327 invoked by uid 99); 27 Mar 2017 18:59:40 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Mar 2017 18:59:40 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 6728F1809FD for ; Mon, 27 Mar 2017 18:59:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-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-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ThW4Cl_9jgb4 for ; Mon, 27 Mar 2017 18:59:39 +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 6C6175FB30 for ; Mon, 27 Mar 2017 18:59:39 +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 v2RIxddE024389; Mon, 27 Mar 2017 18:59:39 GMT Message-Id: <201703271859.v2RIxddE024389@ip-10-146-233-104.ec2.internal> Date: Mon, 27 Mar 2017 18:59:38 +0000 From: "Tim Armstrong (Code Review)" To: impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Dan Hecht Reply-To: tarmstrong@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-5113=3A_fix_dirty_unpinned_invariant=0A?= X-Gerrit-Change-Id: I07e08acb6cf6839bfccbd09258c093b1c8252b25 X-Gerrit-ChangeURL: X-Gerrit-Commit: f6b2cab5e1d27ca0171c71ab2f67d7616ba072d6 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.7 archived-at: Mon, 27 Mar 2017 18:59:42 -0000 Tim Armstrong has posted comments on this change. Change subject: IMPALA-5113: fix dirty unpinned invariant ...................................................................... Patch Set 4: (8 comments) http://gerrit.cloudera.org:8080/#/c/6469/4/be/src/runtime/bufferpool/buffer-pool-internal.h File be/src/runtime/bufferpool/buffer-pool-internal.h: PS4, Line 219: or > ? Done Line 222: /// locks should be held by the caller. > this should talk specifically about reservations. Done PS4, Line 233: CleanPagesBeforeAllocationLocked > the name seems a bit misleading since we have to use it in places other tha Done Line 237: /// accounting. No page or client locks should be held by the caller. > let's mention specifically that it releases the buffer to the client's rese Done PS4, Line 336: Only used for debugging. > remove this now that the byte count is presumably used for non-debugging. Done http://gerrit.cloudera.org:8080/#/c/6469/4/be/src/runtime/bufferpool/buffer-pool.cc File be/src/runtime/bufferpool/buffer-pool.cc: Line 131: client->impl_->reservation()->AllocateFrom(len); > why does this happen after AllocateBufferInternal()? In the case of Allocat Changed so that new pages are constructed by calling AllocateBuffer() to allocate a buffer, then passing that into a different function that creates the page. Line 505: // Clean pages before updating the accounting. > that's obvious from the code. explain the "why" instead. Done http://gerrit.cloudera.org:8080/#/c/6469/4/be/src/runtime/bufferpool/buffer-pool.h File be/src/runtime/bufferpool/buffer-pool.h: Line 251: class PageList; > is this only for tests? if so, let's comment that. It needs to be a type in the BufferPool namespace because it accesses Page, which is private to that namespace. -- To view, visit http://gerrit.cloudera.org:8080/6469 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I07e08acb6cf6839bfccbd09258c093b1c8252b25 Gerrit-PatchSet: 4 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Tim Armstrong Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: Tim Armstrong Gerrit-HasComments: Yes