You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "Csaba Ringhofer (Code Review)" <ge...@cloudera.org> on 2024/11/13 15:00:04 UTC

[Impala-ASF-CR] Improve error message in EE tests after crash

Csaba Ringhofer has uploaded this change for review. ( http://gerrit.cloudera.org:8080/22065


Change subject: Improve error message in EE tests after crash
......................................................................

Improve error message in EE tests after crash

Before this patch the error message contained a few levels of
callstack and complained about Beeswax service:
E   ImpalaBeeswaxException: Could not connect to any of [('::1', 21000, 0, 0), ('127.0.0.1', 21000)

In case not all 3 impalad processes are running return a clearer
error with a single level callstack:
E   Exception: 1 of 3 impalad running. This can indicate a crash in a previous test.

It would be also nice to pass the tests in this case (instead
of failing it) but this may lead to all green test runs in the
rare case when Impala crashes between tests.

Change-Id: I17cce8ccda85c9f5e4b1288e1708c8b84ea724f1
---
M tests/common/impala_test_suite.py
1 file changed, 13 insertions(+), 1 deletion(-)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I17cce8ccda85c9f5e4b1288e1708c8b84ea724f1
Gerrit-Change-Number: 22065
Gerrit-PatchSet: 1
Gerrit-Owner: Csaba Ringhofer <cs...@cloudera.com>

[Impala-ASF-CR] Improve error message in EE tests after crash

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

Change subject: Improve error message in EE tests after crash
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/22065/1/tests/common/impala_test_suite.py
File tests/common/impala_test_suite.py:

http://gerrit.cloudera.org:8080/#/c/22065/1/tests/common/impala_test_suite.py@252
PS1, Line 252: expected_impalads = 3
> CustomClusterTestSuite overrides setup_class, so this change will have no e
There is a call to super().setup_class() at
https://gerrit.cloudera.org/c/22006/9/tests/common/custom_cluster_test_suite.py#322

Also, in case of EE test, 3 can be derived from len(IMPALAD_HOST_PORT_LIST)?



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I17cce8ccda85c9f5e4b1288e1708c8b84ea724f1
Gerrit-Change-Number: 22065
Gerrit-PatchSet: 1
Gerrit-Owner: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Wed, 13 Nov 2024 16:12:27 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] Improve error message in EE tests after crash

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

Change subject: Improve error message in EE tests after crash
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/22065/1/tests/common/impala_test_suite.py
File tests/common/impala_test_suite.py:

http://gerrit.cloudera.org:8080/#/c/22065/1/tests/common/impala_test_suite.py@252
PS1, Line 252: expected_impalads = 3
> There is a call to super().setup_class() at
The CustomClusterTestSuite annotation has a property named `cluster_size` that determines how many instance are spun up.  The workload management tests use this parameter quite a bit to stand up a clusters with sizes other than 3.

Can this code call `cls.get_impalad_cluster_size()` to get the expected number of Impalads?



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I17cce8ccda85c9f5e4b1288e1708c8b84ea724f1
Gerrit-Change-Number: 22065
Gerrit-PatchSet: 1
Gerrit-Owner: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Jason Fehr <jf...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Wed, 13 Nov 2024 16:23:08 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] Improve error message in EE tests after crash

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

Change subject: Improve error message in EE tests after crash
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/22065/2//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/22065/2//COMMIT_MSG@7
PS2, Line 7: Improve error message in EE tests after crash
> Is there a Jira for this patch?
Not (yet), I thought that it is not necessary for a small change that only affects test output. I can create one if needed.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I17cce8ccda85c9f5e4b1288e1708c8b84ea724f1
Gerrit-Change-Number: 22065
Gerrit-PatchSet: 2
Gerrit-Owner: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Jason Fehr <jf...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Wed, 13 Nov 2024 20:54:01 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] Improve error message in EE tests after crash

Posted by "Zoltan Borok-Nagy (Code Review)" <ge...@cloudera.org>.
Zoltan Borok-Nagy has posted comments on this change. ( http://gerrit.cloudera.org:8080/22065 )

Change subject: Improve error message in EE tests after crash
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/22065/2//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/22065/2//COMMIT_MSG@17
PS2, Line 17: It would be also nice to pass the tests in this case (instead
            : of failing it) but this may lead to all green test runs in the
            : rare case when Impala crashes between tests.
Can we skip the tests instead? It would be better because it would make it very easy to find the test that actually crashed Impala.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I17cce8ccda85c9f5e4b1288e1708c8b84ea724f1
Gerrit-Change-Number: 22065
Gerrit-PatchSet: 1
Gerrit-Owner: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Jason Fehr <jf...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Comment-Date: Thu, 14 Nov 2024 14:28:56 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] Improve error message in EE tests after crash

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

Change subject: Improve error message in EE tests after crash
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/22065/2//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/22065/2//COMMIT_MSG@7
PS2, Line 7: Improve error message in EE tests after crash
Is there a Jira for this patch?



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I17cce8ccda85c9f5e4b1288e1708c8b84ea724f1
Gerrit-Change-Number: 22065
Gerrit-PatchSet: 2
Gerrit-Owner: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Jason Fehr <jf...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Wed, 13 Nov 2024 19:09:00 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] Improve error message in EE tests after crash

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

Change subject: Improve error message in EE tests after crash
......................................................................


Patch Set 2:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/17457/ : 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/22065
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I17cce8ccda85c9f5e4b1288e1708c8b84ea724f1
Gerrit-Change-Number: 22065
Gerrit-PatchSet: 2
Gerrit-Owner: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Jason Fehr <jf...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Wed, 13 Nov 2024 18:59:19 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] Improve error message in EE tests after crash

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

Change subject: Improve error message in EE tests after crash
......................................................................


Patch Set 1:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/17454/ : 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/22065
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I17cce8ccda85c9f5e4b1288e1708c8b84ea724f1
Gerrit-Change-Number: 22065
Gerrit-PatchSet: 1
Gerrit-Owner: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Wed, 13 Nov 2024 15:29:13 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] Improve error message in EE tests after crash

Posted by "Zoltan Borok-Nagy (Code Review)" <ge...@cloudera.org>.
Zoltan Borok-Nagy has posted comments on this change. ( http://gerrit.cloudera.org:8080/22065 )

Change subject: Improve error message in EE tests after crash
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/22065/2//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/22065/2//COMMIT_MSG@17
PS2, Line 17: An alternative would be to pass the tests in this case (instead
            : of failing it) but this may lead to all green test runs in the
            : rare case when Impala crashes between tests.
> What I tried to express in this paragraph is exactly why I didn't want to d
I might be wrong but I thought we fail the build if minidumps are detected: https://github.com/apache/impala/blob/master/bin/jenkins/finalize.sh#L68-L81
And I meant skipping the test via pytest.skip(), not passing it.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I17cce8ccda85c9f5e4b1288e1708c8b84ea724f1
Gerrit-Change-Number: 22065
Gerrit-PatchSet: 2
Gerrit-Owner: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Jason Fehr <jf...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Comment-Date: Thu, 14 Nov 2024 15:45:28 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] Improve error message in EE tests after crash

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

Change subject: Improve error message in EE tests after crash
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/22065/1/tests/common/impala_test_suite.py
File tests/common/impala_test_suite.py:

http://gerrit.cloudera.org:8080/#/c/22065/1/tests/common/impala_test_suite.py@252
PS1, Line 252: expected_impalads = 3
> CustomClusterTestSuite extend ImpalaTestSuite, and may start test cluster w
CustomClusterTestSuite overrides setup_class, so this change will have no effect on it (even with https://gerrit.cloudera.org/c/22006/)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I17cce8ccda85c9f5e4b1288e1708c8b84ea724f1
Gerrit-Change-Number: 22065
Gerrit-PatchSet: 1
Gerrit-Owner: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Wed, 13 Nov 2024 16:02:55 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] Improve error message in EE tests after crash

Posted by "Csaba Ringhofer (Code Review)" <ge...@cloudera.org>.
Hello Daniel Becker, Riza Suminto, Jason Fehr, Impala Public Jenkins, 

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

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

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

Change subject: Improve error message in EE tests after crash
......................................................................

Improve error message in EE tests after crash

Before this patch the error message contained a few levels of
callstack and complained about Beeswax service:
E   ImpalaBeeswaxException: Could not connect to any of [('::1', 21000, 0, 0), ('127.0.0.1', 21000)

In case not all 3 impalad processes are running return a clearer
error with a single level callstack:
E   Exception: 1 of 3 impalad(s) running. This can indicate a crash in a previous test.

An alternative would be to pass the tests in this case (instead
of failing it) but this may lead to all green test runs in the
rare case when Impala crashes between tests.

Change-Id: I17cce8ccda85c9f5e4b1288e1708c8b84ea724f1
---
M tests/common/impala_test_suite.py
1 file changed, 13 insertions(+), 1 deletion(-)


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I17cce8ccda85c9f5e4b1288e1708c8b84ea724f1
Gerrit-Change-Number: 22065
Gerrit-PatchSet: 2
Gerrit-Owner: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Jason Fehr <jf...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>

[Impala-ASF-CR] Improve error message in EE tests after crash

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

Change subject: Improve error message in EE tests after crash
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/22065/2//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/22065/2//COMMIT_MSG@17
PS2, Line 17: An alternative would be to pass the tests in this case (instead
            : of failing it) but this may lead to all green test runs in the
            : rare case when Impala crashes between tests.
> I might be wrong but I thought we fail the build if minidumps are detected:
Yes, during jenkins runs the crash would be detected, but not when one locally runs some test suite. It would be nice to add some crash detection in that case too.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I17cce8ccda85c9f5e4b1288e1708c8b84ea724f1
Gerrit-Change-Number: 22065
Gerrit-PatchSet: 2
Gerrit-Owner: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Jason Fehr <jf...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Comment-Date: Thu, 14 Nov 2024 16:24:39 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] Improve error message in EE tests after crash

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

Change subject: Improve error message in EE tests after crash
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/22065/1/tests/common/impala_test_suite.py
File tests/common/impala_test_suite.py:

http://gerrit.cloudera.org:8080/#/c/22065/1/tests/common/impala_test_suite.py@252
PS1, Line 252: expected_impalads = 3
CustomClusterTestSuite extend ImpalaTestSuite, and may start test cluster with more than 3 impalads, right?
It may also restart cluster with different num backend in setup_method().

Please cross check against this patch too: https://gerrit.cloudera.org/c/22006/



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I17cce8ccda85c9f5e4b1288e1708c8b84ea724f1
Gerrit-Change-Number: 22065
Gerrit-PatchSet: 1
Gerrit-Owner: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Wed, 13 Nov 2024 15:50:20 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] Improve error message in EE tests after crash

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

Change subject: Improve error message in EE tests after crash
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/22065/2//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/22065/2//COMMIT_MSG@17
PS2, Line 17: An alternative would be to pass the tests in this case (instead
            : of failing it) but this may lead to all green test runs in the
            : rare case when Impala crashes between tests.
> Can we skip the tests instead? It would be better because it would make it 
What I tried to express in this paragraph is exactly why I didn't want to do this: passing the test would mean that if the original test didn't fail because of the crash, then no test may report error (currently this is possible only if the crash is during the last tests(s)). It would be possible to avoid this by always checking if impalads are alive at the end of every test run, but that seems a bit more complex change.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I17cce8ccda85c9f5e4b1288e1708c8b84ea724f1
Gerrit-Change-Number: 22065
Gerrit-PatchSet: 2
Gerrit-Owner: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Jason Fehr <jf...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Comment-Date: Thu, 14 Nov 2024 14:38:21 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] Improve error message in EE tests after crash

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

Change subject: Improve error message in EE tests after crash
......................................................................


Patch Set 2:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/22065/2//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/22065/2//COMMIT_MSG@17
PS2, Line 17: An alternative would be to pass the tests in this case (instead
            : of failing it) but this may lead to all green test runs in the
            : rare case when Impala crashes between tests.
> Yes, during jenkins runs the crash would be detected, but not when one loca
There are a few tests that expect a crash and a minidump to be generated.  For example: https://github.com/apache/impala/blob/1f35747ea3677bd004f8ed7b1cc94d6ef2f70c8e/tests/custom_cluster/test_workload_mgmt_init.py#L577-L593

I don't see where this code will handle those situations.


http://gerrit.cloudera.org:8080/#/c/22065/2//COMMIT_MSG@17
PS2, Line 17: An alternative would be to pass the tests in this case (instead
            : of failing it) but this may lead to all green test runs in the
            : rare case when Impala crashes between tests.
> What I tried to express in this paragraph is exactly why I didn't want to d
I had the same thought that the check should happen at the end of the test, that way the test that failed would be the test where the Impalad crashed instead of the next test that ran after the crash.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I17cce8ccda85c9f5e4b1288e1708c8b84ea724f1
Gerrit-Change-Number: 22065
Gerrit-PatchSet: 2
Gerrit-Owner: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Jason Fehr <jf...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Comment-Date: Thu, 14 Nov 2024 18:26:17 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] Improve error message in EE tests after crash

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

Change subject: Improve error message in EE tests after crash
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/22065/2//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/22065/2//COMMIT_MSG@17
PS2, Line 17: An alternative would be to pass the tests in this case (instead
            : of failing it) but this may lead to all green test runs in the
            : rare case when Impala crashes between tests.
> I had the same thought that the check should happen at the end of the test,
>I don't see where this code will handle those situations.
You mean this for the current patch, or the case when cluster health would be checked at the end of the test?

The linked test sets expect_startup_fail=True, so setup_class() won't be called.

The current patch only changes the exception where the original code would also throw an exception.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I17cce8ccda85c9f5e4b1288e1708c8b84ea724f1
Gerrit-Change-Number: 22065
Gerrit-PatchSet: 2
Gerrit-Owner: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Jason Fehr <jf...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Comment-Date: Tue, 19 Nov 2024 14:14:44 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] Improve error message in EE tests after crash

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

Change subject: Improve error message in EE tests after crash
......................................................................


Patch Set 2: Code-Review+1

(1 comment)

http://gerrit.cloudera.org:8080/#/c/22065/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/22065/1//COMMIT_MSG@18
PS1, Line 18: of failing it) but this may lead to all green test runs in the
> Is the concern here that we are going to get more test failures by raising 
I meant it for the alternative. Some tests rely on running on 3 impalads. I can't remember which but I've seen failures when running only 1 impalad when with running 3 the test passed. I think it may be when asserting on memory consumption etc. in profiles.

Can't we somehow stop the test runs altogether in this case? This would avoid many falsely failing tests but still indicate the run was not successful.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I17cce8ccda85c9f5e4b1288e1708c8b84ea724f1
Gerrit-Change-Number: 22065
Gerrit-PatchSet: 2
Gerrit-Owner: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Jason Fehr <jf...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Thu, 14 Nov 2024 10:58:43 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] Improve error message in EE tests after crash

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

Change subject: Improve error message in EE tests after crash
......................................................................


Patch Set 1:

(4 comments)

http://gerrit.cloudera.org:8080/#/c/22065/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/22065/1//COMMIT_MSG@15
PS1, Line 15: impalad
Nit: "impalads" (plural).


http://gerrit.cloudera.org:8080/#/c/22065/1//COMMIT_MSG@17
PS1, Line 17: It would be also nice to pass the tests in this case (instead
Is it going to be included in this patch? If not, I'm not sure it's good to place it in this commit message.


http://gerrit.cloudera.org:8080/#/c/22065/1//COMMIT_MSG@18
PS1, Line 18: of failing it) but this may lead to all green test runs in the
Some tests rely on having 3 impalads and fail with fewer. If tests don't fail because of the crash, this could produce cases where we think there's a failing test when it would have passed with 3 impalads.


http://gerrit.cloudera.org:8080/#/c/22065/1/tests/common/impala_test_suite.py
File tests/common/impala_test_suite.py:

http://gerrit.cloudera.org:8080/#/c/22065/1/tests/common/impala_test_suite.py@254
PS1, Line 254: impalad
Nit: "impalads" (plural).



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I17cce8ccda85c9f5e4b1288e1708c8b84ea724f1
Gerrit-Change-Number: 22065
Gerrit-PatchSet: 1
Gerrit-Owner: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Jason Fehr <jf...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Wed, 13 Nov 2024 16:50:12 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] Improve error message in EE tests after crash

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

Change subject: Improve error message in EE tests after crash
......................................................................


Patch Set 2:

(5 comments)

http://gerrit.cloudera.org:8080/#/c/22065/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/22065/1//COMMIT_MSG@15
PS1, Line 15: impalad
> Nit: "impalads" (plural).
Rewrote as impalad(s), as 1 expected impalad may be also possible


http://gerrit.cloudera.org:8080/#/c/22065/1//COMMIT_MSG@17
PS1, Line 17: An alternative would be to pass the tests in this case (instead
> Is it going to be included in this patch? If not, I'm not sure it's good to
Rewrote the text to be more clear about not including this. I thought that it is useful to mention this to explain why it was implemented the current way. Passing would be very nice in many cases, as there would be probably only a few failed tests so it would be easier to find the problematic one - but in unlucky cases it could hide some errors.


http://gerrit.cloudera.org:8080/#/c/22065/1//COMMIT_MSG@18
PS1, Line 18: of failing it) but this may lead to all green test runs in the
> Some tests rely on having 3 impalads and fail with fewer. If tests don't fa
I don't understand this completely - do you mean this for the alternative passing solution, or the one implemented in the patch?


http://gerrit.cloudera.org:8080/#/c/22065/1/tests/common/impala_test_suite.py
File tests/common/impala_test_suite.py:

http://gerrit.cloudera.org:8080/#/c/22065/1/tests/common/impala_test_suite.py@252
PS1, Line 252: expected_impalads = c
> The CustomClusterTestSuite annotation has a property named `cluster_size` t
Thanks for the hint!, I looked for a function like this, but didn't find it. Also thanks for the pointer to the code in Michael's review that calls super().


http://gerrit.cloudera.org:8080/#/c/22065/1/tests/common/impala_test_suite.py@254
PS1, Line 254: impalad
> Nit: "impalads" (plural).
Done



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I17cce8ccda85c9f5e4b1288e1708c8b84ea724f1
Gerrit-Change-Number: 22065
Gerrit-PatchSet: 2
Gerrit-Owner: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Jason Fehr <jf...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Wed, 13 Nov 2024 18:39:31 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] Improve error message in EE tests after crash

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

Change subject: Improve error message in EE tests after crash
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/22065/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/22065/1//COMMIT_MSG@18
PS1, Line 18: of failing it) but this may lead to all green test runs in the
> I don't understand this completely - do you mean this for the alternative p
Is the concern here that we are going to get more test failures by raising this error?  If only 1 impalad fails to start, tests can still pass.  If so, what if this code attempts to restart the cluster before throwing an exception?



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I17cce8ccda85c9f5e4b1288e1708c8b84ea724f1
Gerrit-Change-Number: 22065
Gerrit-PatchSet: 1
Gerrit-Owner: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Jason Fehr <jf...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Wed, 13 Nov 2024 19:02:06 +0000
Gerrit-HasComments: Yes