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 "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/09/05 20:13:00 UTC

[jira] [Commented] (IMPALA-7508) Add Impala GDB commands to find fragment instances and queries in a core file

    [ https://issues.apache.org/jira/browse/IMPALA-7508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16604880#comment-16604880 ] 

ASF subversion and git services commented on IMPALA-7508:
---------------------------------------------------------

Commit fe613e3247c43bf507b30fd279b73768e36ff5b5 in impala's branch refs/heads/master from [~zoram]
[ https://git-wip-us.apache.org/repos/asf?p=impala.git;h=fe613e3 ]

IMPALA-7508: Add Impala Python GDB module

This patch adds a new Impala Python GDB module, and implements
a couple of covenience commands to make core dump analysis
easier.

The initial commands let us find queries and fragment instances
currently executing in an impalad at the time the daemon crashed:

(gdb) source impala-gdb.py
(gdb) find-query-ids
f74c863dff66a34d:1d983cc300000000
364525e12495932b:73f5dd0200000000
bc4a3eec25481981:edda04b800000000

(gdb) find-fragment-instances
Fragment Instance Id    Thread IDs

364525e12495932b:73f5dd02000000a2       [69]
364525e12495932b:73f5dd0200000171       [196, 136]
bc4a3eec25481981:edda04b8000001a8       [252, 237, 206]
f74c863dff66a34d:1d983cc30000009b       [200, 14, 13, 12, 6, 5, 3, 2]
f74c863dff66a34d:1d983cc30000013a       [4]

The commands have only been tested with Impala 2.12, and are not
expected to work with older versions since it uses ThreadDebugInfo
stuff from IMPALA-6416.

It is hoped that people contribute more commands to the module.

Change-Id: I24e7026f2265954ed592d6f62110cf8cb2c2202a
Reviewed-on: http://gerrit.cloudera.org:8080/11352
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>


> Add Impala GDB commands to find fragment instances and queries in a core file
> -----------------------------------------------------------------------------
>
>                 Key: IMPALA-7508
>                 URL: https://issues.apache.org/jira/browse/IMPALA-7508
>             Project: IMPALA
>          Issue Type: Improvement
>          Components: Infrastructure
>    Affects Versions: Impala 2.12.0, Impala 3.1.0
>            Reporter: Zoram Thanga
>            Assignee: Zoram Thanga
>            Priority: Minor
>              Labels: debugging, supportability
>
> Introduce a Python GDB module, and a couple of commands that helps to find queries and fragment instances that are executing in an impalad at the time the daemon crashes.
> One hopes that folks will keep enhancing the module by adding new and useful GDB commands to aid debugging impalad core dumps.
> The initial patch has these:
> {noformat}
> (gdb) source impala-gdb.py
> (gdb) find-query-ids 
> f74c863dff66a34d:1d983cc300000000
> 364525e12495932b:73f5dd0200000000
> bc4a3eec25481981:edda04b800000000
> (gdb) find-fragment-instances
> Fragment Instance Id    Thread IDs
> 364525e12495932b:73f5dd02000000a2       [69]
> 364525e12495932b:73f5dd0200000171       [196, 136]
> bc4a3eec25481981:edda04b8000001a8       [252, 237, 206]
> f74c863dff66a34d:1d983cc30000009b       [200, 14, 13, 12, 6, 5, 3, 2]
> f74c863dff66a34d:1d983cc30000013a       [4]
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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