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/12/15 05:34:22 UTC

[Impala-ASF-CR] IMPALA-11909: Use absolute path when calling resolve minidumps.py

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


Change subject: IMPALA-11909: Use absolute path when calling resolve_minidumps.py
......................................................................

IMPALA-11909: Use absolute path when calling resolve_minidumps.py

If the bin/jenkins/finalize.sh script is called from a directory
other than $IMPALA_HOME, it's call to resolve_minidumps.py will
fail due to the relative path. This changes the call to use
the absolute path so that finalize.sh works in this case.

On some platforms (Centos 7), resolve_minidump.py's call to
minidump_stackwalk goes haywire and uses all the system memory
until it gets OOM killed. Some library must have corrupt
symbols, etc. As a workaround, this detects whether the
prlimit utility is present and uses this to run minidump_stackwalk
with a 4GB limit on virtual memory. This kills the process
earlier and avoids using all system memory.

Testing:
 - Verified that bin/jenkins/finalize.sh uses resolve_minidumps.py
   on a Redhat 8 Jenkins job (and it works)
 - Verified that bin/jenkins/finalize.sh works properly on
   my Ubuntu 20 box
 - Ran a Jenkins job on Centos 7 and verified that the prlimit
   code kills minidump_stackwalk when it uses 4GB of memory.

Change-Id: I063843554b52d3e8ed79ee32d9fd4c90d059c482
---
M bin/jenkins/finalize.sh
M bin/resolve_minidumps.py
2 files changed, 15 insertions(+), 2 deletions(-)



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

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

[Impala-ASF-CR] IMPALA-11909: Use absolute path when calling resolve minidumps.py

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

Change subject: IMPALA-11909: Use absolute path when calling resolve_minidumps.py
......................................................................


Patch Set 1:

Build Successful 

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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I063843554b52d3e8ed79ee32d9fd4c90d059c482
Gerrit-Change-Number: 20801
Gerrit-PatchSet: 1
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Fri, 15 Dec 2023 06:02:07 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11909: Use absolute path when calling resolve minidumps.py

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

Change subject: IMPALA-11909: Use absolute path when calling resolve_minidumps.py
......................................................................


Patch Set 4: Verified+1


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I063843554b52d3e8ed79ee32d9fd4c90d059c482
Gerrit-Change-Number: 20801
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: Mon, 08 Jan 2024 18:51:44 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11909: Use absolute path when calling resolve minidumps.py

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

Change subject: IMPALA-11909: Use absolute path when calling resolve_minidumps.py
......................................................................


Patch Set 1:

(1 comment)

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

http://gerrit.cloudera.org:8080/#/c/20801/1//COMMIT_MSG@14
PS1, Line 14: On some platforms (Centos 7), resolve_minidump.py's call to
> Basically, I had merged something to use resolve_minidumps.py in finalize.s
Ack



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I063843554b52d3e8ed79ee32d9fd4c90d059c482
Gerrit-Change-Number: 20801
Gerrit-PatchSet: 1
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: Fri, 15 Dec 2023 23:08:12 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-11909: Use absolute path when calling resolve minidumps.py

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/20801

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

Change subject: IMPALA-11909: Use absolute path when calling resolve_minidumps.py
......................................................................

IMPALA-11909: Use absolute path when calling resolve_minidumps.py

If the bin/jenkins/finalize.sh script is called from a directory
other than $IMPALA_HOME, it's call to resolve_minidumps.py will
fail due to the relative path. This changes the call to use
the absolute path so that finalize.sh works in this case.

Testing:
 - Ran bin/jenkins/finalize.sh from a directory other than
   $IMPALA_HOME

Change-Id: I063843554b52d3e8ed79ee32d9fd4c90d059c482
---
M bin/jenkins/finalize.sh
1 file changed, 1 insertion(+), 1 deletion(-)


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I063843554b52d3e8ed79ee32d9fd4c90d059c482
Gerrit-Change-Number: 20801
Gerrit-PatchSet: 2
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-11909: Use absolute path when calling resolve minidumps.py

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

Change subject: IMPALA-11909: Use absolute path when calling resolve_minidumps.py
......................................................................

IMPALA-11909: Use absolute path when calling resolve_minidumps.py

If the bin/jenkins/finalize.sh script is called from a directory
other than $IMPALA_HOME, it's call to resolve_minidumps.py will
fail due to the relative path. This changes the call to use
the absolute path so that finalize.sh works in this case.

Testing:
 - Ran bin/jenkins/finalize.sh from a directory other than
   $IMPALA_HOME

Change-Id: I063843554b52d3e8ed79ee32d9fd4c90d059c482
Reviewed-on: http://gerrit.cloudera.org:8080/20801
Reviewed-by: Michael Smith <mi...@cloudera.com>
Tested-by: Joe McDonnell <jo...@cloudera.com>
---
M bin/jenkins/finalize.sh
1 file changed, 1 insertion(+), 1 deletion(-)

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

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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I063843554b52d3e8ed79ee32d9fd4c90d059c482
Gerrit-Change-Number: 20801
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-11909: Use absolute path when calling resolve minidumps.py

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

Change subject: IMPALA-11909: Use absolute path when calling resolve_minidumps.py
......................................................................


Patch Set 2:

Build Successful 

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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I063843554b52d3e8ed79ee32d9fd4c90d059c482
Gerrit-Change-Number: 20801
Gerrit-PatchSet: 2
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: Fri, 05 Jan 2024 07:55:08 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11909: Use absolute path when calling resolve minidumps.py

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

Change subject: IMPALA-11909: Use absolute path when calling resolve_minidumps.py
......................................................................


Patch Set 1:

(1 comment)

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

http://gerrit.cloudera.org:8080/#/c/20801/1//COMMIT_MSG@14
PS1, Line 14: On some platforms (Centos 7), resolve_minidump.py's call to
> I'll file a different JIRA and split it off. It is a prerequisite, but it b
Is it a prerequisite for the parallel run? I'm not clear what about these changes would trigger it.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I063843554b52d3e8ed79ee32d9fd4c90d059c482
Gerrit-Change-Number: 20801
Gerrit-PatchSet: 1
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: Fri, 15 Dec 2023 22:29:43 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-11909: Use absolute path when calling resolve minidumps.py

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

Change subject: IMPALA-11909: Use absolute path when calling resolve_minidumps.py
......................................................................


Patch Set 2: Code-Review+2


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I063843554b52d3e8ed79ee32d9fd4c90d059c482
Gerrit-Change-Number: 20801
Gerrit-PatchSet: 2
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: Fri, 05 Jan 2024 23:00:55 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11909: Use absolute path when calling resolve minidumps.py

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

Change subject: IMPALA-11909: Use absolute path when calling resolve_minidumps.py
......................................................................


Patch Set 4: Code-Review+2


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I063843554b52d3e8ed79ee32d9fd4c90d059c482
Gerrit-Change-Number: 20801
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: Mon, 08 Jan 2024 18:42:25 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11909: Use absolute path when calling resolve minidumps.py

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

Change subject: IMPALA-11909: Use absolute path when calling resolve_minidumps.py
......................................................................


Patch Set 1:

(1 comment)

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

http://gerrit.cloudera.org:8080/#/c/20801/1//COMMIT_MSG@14
PS1, Line 14: On some platforms (Centos 7), resolve_minidump.py's call to
> Is it a prerequisite for the parallel run? I'm not clear what about these c
Basically, I had merged something to use resolve_minidumps.py in finalize.sh, but the absolute path issue prevents it from actually running. When testing the fix for the absolute path issue, I found out that resolve_minidumps.py goes crazy with high memory usage on Centos 7. I didn't want to fix the absolute path issue without having a workaround for the memory issue. That's what I mean by fixing the memory issue being a prerequisite.

Basically, resolve_minidumps.py is dumping symbols from all the system libraries, which is something we don't do for other minidump resolution methods. One of those libraries has corrupt symbol information (or something like that) and when those symbols are present they cause the stackwalker to go haywire. Maybe it is an infinite loop.

It is not a prerequisite for the parallel symbol dumping, and I could split that out.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I063843554b52d3e8ed79ee32d9fd4c90d059c482
Gerrit-Change-Number: 20801
Gerrit-PatchSet: 1
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: Fri, 15 Dec 2023 22:44:56 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-11909: Use absolute path when calling resolve minidumps.py

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

Change subject: IMPALA-11909: Use absolute path when calling resolve_minidumps.py
......................................................................


Patch Set 1:

(1 comment)

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

http://gerrit.cloudera.org:8080/#/c/20801/1//COMMIT_MSG@14
PS1, Line 14: On some platforms (Centos 7), resolve_minidump.py's call to
> This seems like a separate issue.
I'll file a different JIRA and split it off. It is a prerequisite, but it belongs in its own issue.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I063843554b52d3e8ed79ee32d9fd4c90d059c482
Gerrit-Change-Number: 20801
Gerrit-PatchSet: 1
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: Fri, 15 Dec 2023 22:28:50 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-11909: Use absolute path when calling resolve minidumps.py

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

Change subject: IMPALA-11909: Use absolute path when calling resolve_minidumps.py
......................................................................


Patch Set 1:

(1 comment)

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

http://gerrit.cloudera.org:8080/#/c/20801/1//COMMIT_MSG@14
PS1, Line 14: On some platforms (Centos 7), resolve_minidump.py's call to
This seems like a separate issue.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I063843554b52d3e8ed79ee32d9fd4c90d059c482
Gerrit-Change-Number: 20801
Gerrit-PatchSet: 1
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: Fri, 15 Dec 2023 22:21:25 +0000
Gerrit-HasComments: Yes