impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Hecht (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-4862: make resource profile consistent with backend behaviour
Date Wed, 05 Jul 2017 18:51:43 GMT
Dan Hecht has posted comments on this change.

Change subject: IMPALA-4862: make resource profile consistent with backend behaviour

Patch Set 10:


I need to read through the frontend code again before commenting on that, but here's some
comments on the backend part.
File be/src/exec/

Line 150:   DCHECK(status != nullptr);

Line 198:       RETURN_IF_ERROR(AcquireResourcesForBuild(state));
why do we do the build Open() here, rather than keep it in ProcessBuildInputAndOpenProbe()
like the other cases? between async/sync and sink/no-sink and subplan/no-subplan, there are
a lot of cases to understand.
File be/src/exec/blocking-join-node.h:

PS10, Line 69: it
nit: period

PS10, Line 70: it it is started,

PS10, Line 109: can be safely closed early
additionally, aren't we now requiring that it be closed early (i.e. the frontend assumes this)?
hmm, or is this just an optimization in the async case?

Line 121:   /// Processes the build-side input.
let's also say that the build side should already have been opened (though this code is going
away soon).

Line 141:   Status SendBuildInputToSink(RuntimeState* state, DataSink* build_sink);
shouldn't this be private? i.e. we don't expect a derived class to call it directly, right?

Line 222:   /// is used for the build. Otherwise, ProcessBuildInput() is called on the subclass.
explain that this opens the build
File be/src/exec/exec-node.h:

PS10, Line 87: in general
why? are there cases this isn't true?
File be/src/exec/

PS10, Line 181:  right away
what do we mean by "right away". It seemed like we were acquiring them right away before (but
too soon), no?

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I492cf5052bb27e4e335395e2a8f8a3b07248ec9d
Gerrit-PatchSet: 10
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Tim Armstrong <>
Gerrit-Reviewer: Alex Behm <>
Gerrit-Reviewer: Dan Hecht <>
Gerrit-Reviewer: Tim Armstrong <>
Gerrit-HasComments: Yes

View raw message