impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Armstrong (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-5113: fix dirty unpinned invariant
Date Mon, 27 Mar 2017 18:59:38 GMT
Tim Armstrong has posted comments on this change.

Change subject: IMPALA-5113: fix dirty unpinned invariant

Patch Set 4:

File be/src/runtime/bufferpool/buffer-pool-internal.h:

PS4, Line 219: or
> ?

Line 222:   /// locks should be held by the caller.
> this should talk specifically about reservations.

PS4, Line 233: CleanPagesBeforeAllocationLocked
> the name seems a bit misleading since we have to use it in places other tha

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

PS4, Line 336: Only used for debugging.
> remove this now that the byte count is presumably used for non-debugging.
File be/src/runtime/bufferpool/

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.
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
To unsubscribe, visit

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

View raw message