impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe McDonnell (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-5750: Catch exceptions from boost thread creation
Date Tue, 05 Sep 2017 22:20:57 GMT
Joe McDonnell has posted comments on this change.

Change subject: IMPALA-5750: Catch exceptions from boost thread creation

Patch Set 8:

File be/src/runtime/

Line 226:     if (fis->IsPrepared()) {
> should this check that the prepare status is ok? if Prepare() failed, then 
The first thing that Prepare() does is allocate the RuntimeState. It has a comment saying
not to return before that. See
We also check whether fis->profile() is null. So, I think this should be safe.

When IMPALA-5892 goes in, I will just use fis==nullptr. That will make this part of the change
unnecessary, as nothing needs to send status for an unprepared fragment instance.

Line 328:       ExecEnv::GetInstance()->query_exec_mgr()->ReleaseQueryState(this);
> this is a little weird since ReleaseQueryState() can delete this. Except it
Added a comment.

PS8, Line 332: true
> passing instances_started=true can lead to a deadlock if the RPC send fails
Good point, changed this to instances_started=false. If the RPC to the coordinator fails,
I think there are other ways to hang, but this is clearly wrong. I'll think about whether
there is a better way to handle this case.

PS8, Line 336: update fis_map_
> nit: seems excessive
File be/src/runtime/thread-resource-mgr.h:

Line 288:   if (!in_callback) InvokeCallbacks();
> As we discussed in person, I don't think it's safe even in that case genera
I went with option #1. I added a comment with a warning to thread-resource-mgr.h and noted
why we were using skip_callbacks in and

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I15a2f278dc71892b7fec09593f81b1a57ab725c0
Gerrit-PatchSet: 8
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Joe McDonnell <>
Gerrit-Reviewer: Dan Hecht <>
Gerrit-Reviewer: Joe McDonnell <>
Gerrit-Reviewer: Sailesh Mukil <>
Gerrit-Reviewer: Tim Armstrong <>
Gerrit-HasComments: Yes

View raw message