Huaisi Xu has posted comments on this change.

Change subject: IMPALA-3875: Set thrift socket timeout before any connection
......................................................................


Patch Set 1:

Without this patch, query stucks at
    Query Timeline: 4h38m
       - Start execution: 0.000ns (0.000ns)
       - Planning finished: 531.006ms (531.006ms)
       - Submit for admission: 532.006ms (1.000ms)
       - Completed admission: 532.006ms (0.000ns)
       - Ready to start 2 remote fragments: 533.006ms (1.000ms)
forever.


With this patch, ~10mins (not sure why so long, the setting was 5mins. I 
attached gdb in the process but that cannot explain all), the query gets 
timeout as expected: 

Query (id=184d56eb52842360:9a421d4cfd42a8ad):
  Summary:
    Session ID: 4b47a0b026ae93b7:f6e746e53e077382
    Session Type: BEESWAX
    Start Time: 2016-07-20 17:43:57.692337000
    End Time: 2016-07-20 17:57:31.502157000
    Query Type: DML
    Query State: EXCEPTION
    Query Status: ExecPlanRequest rpc 
query_id=184d56eb52842360:9a421d4cfd42a8ad 
instance_id=184d56eb52842360:9a421d4cfd42a8ae failed: RPC Error: SSL_write: 
Resource temporarily unavailable

another

Query (id=7440d134290099ca:822c792e4cc32599):
  Summary:
    Session ID: 4b47a0b026ae93b7:f6e746e53e077382
    Session Type: BEESWAX
    Start Time: 2016-07-20 17:29:08.503239000
    End Time: 2016-07-20 17:41:23.661792000
    Query Type: DML
    Query State: EXCEPTION
    Query Status: ExecPlanRequest rpc 
query_id=7440d134290099ca:822c792e4cc32599 
instance_id=7440d134290099ca:822c792e4cc3259a failed: RPC Error: SSL_write: 
Interrupted system call

There are more things need to be done in this patch... but I think we have to 
add timeout to all Thrift transport.

-- 
To view, visit http://gerrit.cloudera.org:8080/3707
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I8f928239006915171a527dfd3630ff072cb863b6
Gerrit-PatchSet: 1
Gerrit-Project: Impala
Gerrit-Branch: cdh5-trunk
Gerrit-Owner: Huaisi Xu <[email protected]>
Gerrit-Reviewer: Henry Robinson <[email protected]>
Gerrit-Reviewer: Huaisi Xu <[email protected]>
Gerrit-Reviewer: Juan Yu <[email protected]>
Gerrit-HasComments: No

Reply via email to