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-5558/IMPALA-5576: Reopen stale client connection
Date Sun, 25 Jun 2017 16:22:54 GMT
Dan Hecht has posted comments on this change.

Change subject: IMPALA-5558/IMPALA-5576: Reopen stale client connection

Patch Set 8:

File be/src/rpc/

PS8, Line 198: TTransportException::END_OF_FILE &&
             :              strstr(e.what(), "No more data to read.
how do we know that this means the connection was reset? is it because thrift would never
get into this state otherwise?
File be/src/runtime/

PS8, Line 350: dummy
explain why this can be ignored.

PS8, Line 362: connect_success
i don't understand that. connect_success can be true if the previous client_status was ok
yet the last rpc_status was not ok. why do we want to return true only in that case? 
why not just always return true? the return value is suppose to be if "cancellation was attempted",
and it's only used for a log message.
File be/src/runtime/coordinator-backend-state.h:

PS8, Line 138: message
ReportExecStatus RPC messages
to be more specific.
File be/src/runtime/

Line 225:   // Try to send the RPC 3 times before failing. Sleep for 100ms between retries.
it'd be good to explain that retry is always safe for this rpc because the coordinator handles
that explicitly.

PS8, Line 236: res.status
now that we try o get the connection inside the loop, this could be uninitialized, no? or
does it get initialized to ok in TReportExecStatusResult constructor?

Line 244:     Cancel();
this Cancel() still results in IMPALA-5576, no? I'm not saying we should do anything more,
though. at least we'll have tried a few times before this.

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I4d722c8ad3bf0e78e89887b6cb286c69ca61b8f5
Gerrit-PatchSet: 8
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Michael Ho <>
Gerrit-Reviewer: Dan Hecht <>
Gerrit-Reviewer: Juan Yu <>
Gerrit-Reviewer: Lars Volker <>
Gerrit-Reviewer: Matthew Jacobs <>
Gerrit-Reviewer: Michael Ho <>
Gerrit-Reviewer: Mostafa Mokhtar <>
Gerrit-Reviewer: Sailesh Mukil <>
Gerrit-HasComments: Yes

View raw message