You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "Quanlong Huang (Code Review)" <ge...@cloudera.org> on 2022/05/16 03:49:27 UTC
[Impala-ASF-CR] IMPALA-11291: deflake minidump-test by not starting JVM
Quanlong Huang has uploaded this change for review. ( http://gerrit.cloudera.org:8080/18529
Change subject: IMPALA-11291: deflake minidump-test by not starting JVM
......................................................................
IMPALA-11291: deflake minidump-test by not starting JVM
minidump-test is unified into unified-be-test which will always init the
JVM and start the JVM pause monitor. It will print the following log to
stdout:
22/05/16 11:35:46 INFO util.JvmPauseMonitor: Starting JVM pause monitor
It's printed concurrently with the minidump output, which makes the test
flaky since it's verifying the output lines.
This patch moves minidump-test out of unified-be-test and explicitly
invokes InitCommonRuntime with init_jvm=false. So it won't be disrupted
by the above log.
Tests
- The issue occurs when I run minidump-test several times repeatedly.
After the fix, I can run minidump-test more than 2000 times without
errors.
Change-Id: I89f81d408a2e905d5dfdd7f87177ebe2079d4d27
---
M be/src/util/CMakeLists.txt
M be/src/util/minidump-test.cc
2 files changed, 22 insertions(+), 10 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/29/18529/1
--
To view, visit http://gerrit.cloudera.org:8080/18529
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I89f81d408a2e905d5dfdd7f87177ebe2079d4d27
Gerrit-Change-Number: 18529
Gerrit-PatchSet: 1
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
[Impala-ASF-CR] IMPALA-11291: deflake minidump-test by not starting JVM
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/18529 )
Change subject: IMPALA-11291: deflake minidump-test by not starting JVM
......................................................................
Patch Set 2: Code-Review+2
--
To view, visit http://gerrit.cloudera.org:8080/18529
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I89f81d408a2e905d5dfdd7f87177ebe2079d4d27
Gerrit-Change-Number: 18529
Gerrit-PatchSet: 2
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Comment-Date: Mon, 16 May 2022 20:21:56 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-11291: deflake minidump-test by not starting JVM
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/18529 )
Change subject: IMPALA-11291: deflake minidump-test by not starting JVM
......................................................................
IMPALA-11291: deflake minidump-test by not starting JVM
minidump-test is unified into unified-be-test which will always init the
JVM and start the JVM pause monitor. It will print the following log to
stdout:
22/05/16 11:35:46 INFO util.JvmPauseMonitor: Starting JVM pause monitor
It's printed concurrently with the minidump output, which makes the test
flaky since it's verifying the output lines.
This patch moves minidump-test out of unified-be-test and explicitly
invokes InitCommonRuntime with init_jvm=false. So it won't be disrupted
by the above log.
Tests
- The issue occurs when I run minidump-test several times repeatedly.
After the fix, I can run minidump-test more than 2000 times without
errors.
Change-Id: I89f81d408a2e905d5dfdd7f87177ebe2079d4d27
Reviewed-on: http://gerrit.cloudera.org:8080/18529
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
M be/src/util/CMakeLists.txt
M be/src/util/minidump-test.cc
2 files changed, 22 insertions(+), 10 deletions(-)
Approvals:
Impala Public Jenkins: Looks good to me, approved; Verified
--
To view, visit http://gerrit.cloudera.org:8080/18529
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I89f81d408a2e905d5dfdd7f87177ebe2079d4d27
Gerrit-Change-Number: 18529
Gerrit-PatchSet: 4
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
[Impala-ASF-CR] IMPALA-11291: deflake minidump-test by not starting JVM
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/18529 )
Change subject: IMPALA-11291: deflake minidump-test by not starting JVM
......................................................................
Patch Set 3:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/8113/ DRY_RUN=false
--
To view, visit http://gerrit.cloudera.org:8080/18529
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I89f81d408a2e905d5dfdd7f87177ebe2079d4d27
Gerrit-Change-Number: 18529
Gerrit-PatchSet: 3
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Comment-Date: Tue, 17 May 2022 02:13:25 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-11291: deflake minidump-test by not starting JVM
Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Michael Smith has posted comments on this change. ( http://gerrit.cloudera.org:8080/18529 )
Change subject: IMPALA-11291: deflake minidump-test by not starting JVM
......................................................................
Patch Set 1: Code-Review+1
(1 comment)
Thanks for fixing it! I wasn't sure what you'd prefer for flaky tests, quick fix or revert.
I could make this more resilient by filtering for just the relevant messages, should I follow up with another patch to do that so we can still batch them?
http://gerrit.cloudera.org:8080/#/c/18529/1/be/src/util/minidump-test.cc
File be/src/util/minidump-test.cc:
http://gerrit.cloudera.org:8080/#/c/18529/1/be/src/util/minidump-test.cc@49
PS1, Line 49: EXPECT_EQ(3, lines.size()) << output;
Oh, totally missed this nuance for providing a custom error message!
--
To view, visit http://gerrit.cloudera.org:8080/18529
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I89f81d408a2e905d5dfdd7f87177ebe2079d4d27
Gerrit-Change-Number: 18529
Gerrit-PatchSet: 1
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Comment-Date: Mon, 16 May 2022 16:52:55 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-11291: deflake minidump-test by not starting JVM
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/18529 )
Change subject: IMPALA-11291: deflake minidump-test by not starting JVM
......................................................................
Patch Set 3: Verified+1
--
To view, visit http://gerrit.cloudera.org:8080/18529
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I89f81d408a2e905d5dfdd7f87177ebe2079d4d27
Gerrit-Change-Number: 18529
Gerrit-PatchSet: 3
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Comment-Date: Tue, 17 May 2022 06:38:49 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-11291: deflake minidump-test by not starting JVM
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/18529 )
Change subject: IMPALA-11291: deflake minidump-test by not starting JVM
......................................................................
Patch Set 1:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/10577/ : 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/18529
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I89f81d408a2e905d5dfdd7f87177ebe2079d4d27
Gerrit-Change-Number: 18529
Gerrit-PatchSet: 1
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Comment-Date: Mon, 16 May 2022 04:09:43 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-11291: deflake minidump-test by not starting JVM
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/18529 )
Change subject: IMPALA-11291: deflake minidump-test by not starting JVM
......................................................................
Patch Set 2: Verified-1
Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/8111/
--
To view, visit http://gerrit.cloudera.org:8080/18529
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I89f81d408a2e905d5dfdd7f87177ebe2079d4d27
Gerrit-Change-Number: 18529
Gerrit-PatchSet: 2
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Comment-Date: Tue, 17 May 2022 00:56:25 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-11291: deflake minidump-test by not starting JVM
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/18529 )
Change subject: IMPALA-11291: deflake minidump-test by not starting JVM
......................................................................
Patch Set 3: Code-Review+2
--
To view, visit http://gerrit.cloudera.org:8080/18529
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I89f81d408a2e905d5dfdd7f87177ebe2079d4d27
Gerrit-Change-Number: 18529
Gerrit-PatchSet: 3
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Comment-Date: Tue, 17 May 2022 02:13:24 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-11291: deflake minidump-test by not starting JVM
Posted by "Quanlong Huang (Code Review)" <ge...@cloudera.org>.
Quanlong Huang has posted comments on this change. ( http://gerrit.cloudera.org:8080/18529 )
Change subject: IMPALA-11291: deflake minidump-test by not starting JVM
......................................................................
Patch Set 2:
> Patch Set 1: Code-Review+1
>
> (1 comment)
>
> Thanks for fixing it! I wasn't sure what you'd prefer for flaky tests, quick fix or revert.
>
> I could make this more resilient by filtering for just the relevant messages, should I follow up with another patch to do that so we can still batch them?
Thanks! I think it's ok to leave this patch as-is. The log of the JVM pause monitor can interleave in the middle of the minidump output, so it might not be easy to add robust filters.
> Patch Set 2: Verified-1
>
> Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/8111/
The GVO failure is unrelated to this patch. I just submitted a re-run.
--
To view, visit http://gerrit.cloudera.org:8080/18529
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I89f81d408a2e905d5dfdd7f87177ebe2079d4d27
Gerrit-Change-Number: 18529
Gerrit-PatchSet: 2
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Comment-Date: Tue, 17 May 2022 02:21:39 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-11291: deflake minidump-test by not starting JVM
Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Joe McDonnell has posted comments on this change. ( http://gerrit.cloudera.org:8080/18529 )
Change subject: IMPALA-11291: deflake minidump-test by not starting JVM
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit http://gerrit.cloudera.org:8080/18529
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I89f81d408a2e905d5dfdd7f87177ebe2079d4d27
Gerrit-Change-Number: 18529
Gerrit-PatchSet: 1
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Comment-Date: Mon, 16 May 2022 20:21:23 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-11291: deflake minidump-test by not starting JVM
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/18529 )
Change subject: IMPALA-11291: deflake minidump-test by not starting JVM
......................................................................
Patch Set 2:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/8111/ DRY_RUN=false
--
To view, visit http://gerrit.cloudera.org:8080/18529
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I89f81d408a2e905d5dfdd7f87177ebe2079d4d27
Gerrit-Change-Number: 18529
Gerrit-PatchSet: 2
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Comment-Date: Mon, 16 May 2022 20:21:57 +0000
Gerrit-HasComments: No