You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "Joe McDonnell (Code Review)" <ge...@cloudera.org> on 2023/06/16 23:25:59 UTC

[Impala-ASF-CR] IMPALA-12224: Improve error handling for shell interactive tests

Joe McDonnell has uploaded this change for review. ( http://gerrit.cloudera.org:8080/20087


Change subject: IMPALA-12224: Improve error handling for shell interactive tests
......................................................................

IMPALA-12224: Improve error handling for shell interactive tests

Interactive shell tests can hang waiting for input if the
shell process hits errors or exits. For example, the problems
in the sasl packag seen in IMPALA-12220 cause test_shell_interactive.py
to hang.

This improves the error detection/handling to avoid hangs for
most common shell errors. Specifically, it adds a check for
the impala-shell process exiting, and it adds a check for
a failure to connect to Impala. Both would previous result
in hangs.

Testing:
 - Verified test_shell_interactive.py doesn't hang with hand
   tests
   - Remove a vital import from impala-shell so it exits instantly
   - Simulate a connection problem by overwriting the port
     with a non-functional port
   - Test on Redhat 9 with the IMPALA-12220 issue

Change-Id: I7556fb687e06b41caa538d8c3231ec9f2ad98162
---
M shell/impala_shell.py
M tests/shell/util.py
2 files changed, 57 insertions(+), 9 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/87/20087/1
-- 
To view, visit http://gerrit.cloudera.org:8080/20087
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7556fb687e06b41caa538d8c3231ec9f2ad98162
Gerrit-Change-Number: 20087
Gerrit-PatchSet: 1
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>

[Impala-ASF-CR] IMPALA-12224: Improve error handling for shell interactive tests

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Joe McDonnell has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/20087 )

Change subject: IMPALA-12224: Improve error handling for shell interactive tests
......................................................................

IMPALA-12224: Improve error handling for shell interactive tests

Interactive shell tests can hang waiting for input if the
shell process hits errors or exits. For example, the problems
in the sasl package seen in IMPALA-12220 cause test_shell_interactive.py
to hang.

This improves the error detection/handling to avoid hangs for
most common shell errors. Specifically, it adds a check for
the impala-shell process exiting, and it adds a check for
a failure to connect to Impala. Both would previous result
in hangs.

Testing:
 - Verified test_shell_interactive.py doesn't hang with hand
   tests
 - Remove a vital import from impala-shell so it exits instantly
 - Simulate a connection problem by overwriting the port
   with a non-functional port
 - Test on Redhat 9 with the IMPALA-12220 issue

Change-Id: I7556fb687e06b41caa538d8c3231ec9f2ad98162
Reviewed-on: http://gerrit.cloudera.org:8080/20087
Reviewed-by: Michael Smith <mi...@cloudera.com>
Tested-by: Joe McDonnell <jo...@cloudera.com>
---
M shell/impala_shell.py
M tests/shell/util.py
2 files changed, 58 insertions(+), 9 deletions(-)

Approvals:
  Michael Smith: Looks good to me, approved
  Joe McDonnell: Verified

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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I7556fb687e06b41caa538d8c3231ec9f2ad98162
Gerrit-Change-Number: 20087
Gerrit-PatchSet: 5
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>

[Impala-ASF-CR] IMPALA-12224: Improve error handling for shell interactive tests

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Michael Smith has posted comments on this change. ( http://gerrit.cloudera.org:8080/20087 )

Change subject: IMPALA-12224: Improve error handling for shell interactive tests
......................................................................


Patch Set 3: Code-Review+2

(2 comments)

http://gerrit.cloudera.org:8080/#/c/20087/3//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/20087/3//COMMIT_MSG@11
PS3, Line 11: in the sasl packag seen in IMPALA-12220 cause test_shell_interactive.py
nit: packag -> package


http://gerrit.cloudera.org:8080/#/c/20087/3//COMMIT_MSG@23
PS3, Line 23:    - Remove a vital import from impala-shell so it exits instantly
nit: indentation



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I7556fb687e06b41caa538d8c3231ec9f2ad98162
Gerrit-Change-Number: 20087
Gerrit-PatchSet: 3
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Tue, 20 Jun 2023 17:42:46 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12224: Improve error handling for shell interactive tests

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/20087 )

Change subject: IMPALA-12224: Improve error handling for shell interactive tests
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/20087/1/shell/impala_shell.py
File shell/impala_shell.py:

http://gerrit.cloudera.org:8080/#/c/20087/1/shell/impala_shell.py@2283
PS1, Line 2283: s
flake8: F821 undefined name 'self'



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I7556fb687e06b41caa538d8c3231ec9f2ad98162
Gerrit-Change-Number: 20087
Gerrit-PatchSet: 1
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Fri, 16 Jun 2023 23:27:46 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12224: Improve error handling for shell interactive tests

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Hello Michael Smith, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/20087

to look at the new patch set (#4).

Change subject: IMPALA-12224: Improve error handling for shell interactive tests
......................................................................

IMPALA-12224: Improve error handling for shell interactive tests

Interactive shell tests can hang waiting for input if the
shell process hits errors or exits. For example, the problems
in the sasl package seen in IMPALA-12220 cause test_shell_interactive.py
to hang.

This improves the error detection/handling to avoid hangs for
most common shell errors. Specifically, it adds a check for
the impala-shell process exiting, and it adds a check for
a failure to connect to Impala. Both would previous result
in hangs.

Testing:
 - Verified test_shell_interactive.py doesn't hang with hand
   tests
 - Remove a vital import from impala-shell so it exits instantly
 - Simulate a connection problem by overwriting the port
   with a non-functional port
 - Test on Redhat 9 with the IMPALA-12220 issue

Change-Id: I7556fb687e06b41caa538d8c3231ec9f2ad98162
---
M shell/impala_shell.py
M tests/shell/util.py
2 files changed, 58 insertions(+), 9 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/87/20087/4
-- 
To view, visit http://gerrit.cloudera.org:8080/20087
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I7556fb687e06b41caa538d8c3231ec9f2ad98162
Gerrit-Change-Number: 20087
Gerrit-PatchSet: 4
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>

[Impala-ASF-CR] IMPALA-12224: Improve error handling for shell interactive tests

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Joe McDonnell has posted comments on this change. ( http://gerrit.cloudera.org:8080/20087 )

Change subject: IMPALA-12224: Improve error handling for shell interactive tests
......................................................................


Patch Set 3:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/20087/3//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/20087/3//COMMIT_MSG@11
PS3, Line 11: in the sasl packag seen in IMPALA-12220 cause test_shell_interactive.py
> nit: packag -> package
Done


http://gerrit.cloudera.org:8080/#/c/20087/3//COMMIT_MSG@23
PS3, Line 23:    - Remove a vital import from impala-shell so it exits instantly
> nit: indentation
Done



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I7556fb687e06b41caa538d8c3231ec9f2ad98162
Gerrit-Change-Number: 20087
Gerrit-PatchSet: 3
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Tue, 20 Jun 2023 18:15:50 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12224: Improve error handling for shell interactive tests

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Hello Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/20087

to look at the new patch set (#2).

Change subject: IMPALA-12224: Improve error handling for shell interactive tests
......................................................................

IMPALA-12224: Improve error handling for shell interactive tests

Interactive shell tests can hang waiting for input if the
shell process hits errors or exits. For example, the problems
in the sasl packag seen in IMPALA-12220 cause test_shell_interactive.py
to hang.

This improves the error detection/handling to avoid hangs for
most common shell errors. Specifically, it adds a check for
the impala-shell process exiting, and it adds a check for
a failure to connect to Impala. Both would previous result
in hangs.

Testing:
 - Verified test_shell_interactive.py doesn't hang with hand
   tests
   - Remove a vital import from impala-shell so it exits instantly
   - Simulate a connection problem by overwriting the port
     with a non-functional port
   - Test on Redhat 9 with the IMPALA-12220 issue

Change-Id: I7556fb687e06b41caa538d8c3231ec9f2ad98162
---
M shell/impala_shell.py
M tests/shell/util.py
2 files changed, 58 insertions(+), 9 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/87/20087/2
-- 
To view, visit http://gerrit.cloudera.org:8080/20087
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I7556fb687e06b41caa538d8c3231ec9f2ad98162
Gerrit-Change-Number: 20087
Gerrit-PatchSet: 2
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>

[Impala-ASF-CR] IMPALA-12224: Improve error handling for shell interactive tests

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/20087 )

Change subject: IMPALA-12224: Improve error handling for shell interactive tests
......................................................................


Patch Set 2:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/13324/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I7556fb687e06b41caa538d8c3231ec9f2ad98162
Gerrit-Change-Number: 20087
Gerrit-PatchSet: 2
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Sat, 17 Jun 2023 01:24:27 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12224: Improve error handling for shell interactive tests

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Michael Smith has posted comments on this change. ( http://gerrit.cloudera.org:8080/20087 )

Change subject: IMPALA-12224: Improve error handling for shell interactive tests
......................................................................


Patch Set 4: Code-Review+2


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I7556fb687e06b41caa538d8c3231ec9f2ad98162
Gerrit-Change-Number: 20087
Gerrit-PatchSet: 4
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Tue, 20 Jun 2023 20:07:29 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12224: Improve error handling for shell interactive tests

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Joe McDonnell has posted comments on this change. ( http://gerrit.cloudera.org:8080/20087 )

Change subject: IMPALA-12224: Improve error handling for shell interactive tests
......................................................................


Patch Set 4: Verified+1


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I7556fb687e06b41caa538d8c3231ec9f2ad98162
Gerrit-Change-Number: 20087
Gerrit-PatchSet: 4
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Wed, 21 Jun 2023 05:20:53 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12224: Improve error handling for shell interactive tests

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/20087 )

Change subject: IMPALA-12224: Improve error handling for shell interactive tests
......................................................................


Patch Set 1:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/13322/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I7556fb687e06b41caa538d8c3231ec9f2ad98162
Gerrit-Change-Number: 20087
Gerrit-PatchSet: 1
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Fri, 16 Jun 2023 23:50:04 +0000
Gerrit-HasComments: No