impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Armstrong (Code Review)" <ger...@cloudera.org>
Subject [Impala-ASF-CR] IMPALA-5113: fix dirty unpinned invariant
Date Fri, 24 Mar 2017 17:33:31 GMT
Tim Armstrong has uploaded a new change for review.

  http://gerrit.cloudera.org:8080/6469

Change subject: IMPALA-5113: fix dirty unpinned invariant
......................................................................

IMPALA-5113: fix dirty unpinned invariant

There were two bugs:
* The invariant was too strict and didn't take into account multiple
  pins of pages (which don't use buffers and therefore shouldn't count).
* The invariant wasn't enforced when reclaiming a clean page.

Testing:
Added a unit test that reproduces the issue and added stricter DCHECKs
to detect the issue in future.

Change-Id: I07e08acb6cf6839bfccbd09258c093b1c8252b25
---
M be/src/runtime/bufferpool/buffer-pool-internal.h
M be/src/runtime/bufferpool/buffer-pool-test.cc
M be/src/runtime/bufferpool/buffer-pool.cc
3 files changed, 72 insertions(+), 10 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/69/6469/1
-- 
To view, visit http://gerrit.cloudera.org:8080/6469
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I07e08acb6cf6839bfccbd09258c093b1c8252b25
Gerrit-PatchSet: 1
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Tim Armstrong <tarmstrong@cloudera.com>

Mime
View raw message