You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Tim Armstrong (Jira)" <ji...@apache.org> on 2020/07/14 17:17:00 UTC

[jira] [Created] (IMPALA-9953) Shell does not return all rows if a fetch times out

Tim Armstrong created IMPALA-9953:
-------------------------------------

             Summary: Shell does not return all rows if a fetch times out
                 Key: IMPALA-9953
                 URL: https://issues.apache.org/jira/browse/IMPALA-9953
             Project: IMPALA
          Issue Type: Bug
          Components: Clients
            Reporter: Tim Armstrong
            Assignee: Sahil Takiar


I noticed that if a fetch times out, impala-shell will stop returning rows and close the query. It looks like this happens if the query transitions to FINISHED state, then the fetch times out

I ran into this on an experimental branch where a sort deadlocked. I haven't been able to repro on master yet but I thought I should report it.

The bug is here:
{noformat}
diff --git a/shell/impala_shell.py b/shell/impala_shell.py
index e0d802626..323aee6c9 100755
--- a/shell/impala_shell.py
+++ b/shell/impala_shell.py
@@ -1182,8 +1182,7 @@ class ImpalaShell(cmd.Cmd, object):
 
         for rows in rows_fetched:
           # IMPALA-4418: Break out of the loop to prevent printing an unnecessary empty line.
-          if len(rows) == 0:
-            break
+          if len(rows) == 0: continue
           self.output_stream.write(rows)
           num_rows += len(rows)
{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org