impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tianyi Wang (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-4835: Part 1: simplify I/O mgr mem mgmt and cancellation
Date Thu, 16 Nov 2017 22:45:52 GMT
Tianyi Wang has posted comments on this change. ( )

Change subject: IMPALA-4835: Part 1: simplify I/O mgr mem mgmt and cancellation

Patch Set 9:

File be/src/runtime/io/request-context.h:
PS8, Line 171:     // boost doesn't let us dcheck that the reader lock is taken
Outdated comment
PS8, Line 294:   InternalQueue<ScanRange> cached_ranges_;
It seems these queues don't need the spinlocks in them. But we don't need to change them in
this patch.
PS8, Line 366:     void DecrementRequestThread(const boost::unique_lock<boost::mutex>&
How about DecrementDiskThread? I don't see the term "request thread" elsewhere.
PS8, Line 378:       if (is_on_queue_.Load() == 0 && num_threads_in_op_.Load() ==
0 && !done_) {
I see the correctness here. It's pretty subtle.
PS8, Line 386:     /// If done is true, it means that this request must not be on this disk's
Is this statement true? I think RequestContext::Cancel() can enqueue the context after it's
set to done.

To view, visit
To unsubscribe, visit

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If5cb42437d11c13bc4a55c3ab426b66777332bd1
Gerrit-Change-Number: 8414
Gerrit-PatchSet: 9
Gerrit-Owner: Tim Armstrong <>
Gerrit-Reviewer: Dan Hecht <>
Gerrit-Reviewer: Tianyi Wang <>
Gerrit-Reviewer: Tim Armstrong <>
Gerrit-Comment-Date: Thu, 16 Nov 2017 22:45:52 +0000
Gerrit-HasComments: Yes

  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message