Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 4.5.0
-
None
-
ghx-label-7
Description
The gdb helpers in lib/python/impala_py_lib/gdb/impala-gdb.py provide information about the queries / fragments running in a core file. However, the query/fragment ids that it returns have issues with the signedness of the integers:
(gdb) find-fragment-instances Fragment Instance Id Thread IDs -23b76c1699a831a1:2793586800000036 [117120] -23b76c1699a831a1:2793586800000037 [117121] -23b76c1699a831a1:2793586800000038 [117122] .. (gdb) find-query-ids -3cbda1606b3ade7c:f170c4bd00000000 -23b76c1699a831a1:2793586800000000 68435df1364aa90f:1752944f00000000 3442ed6354c7355d:78c83d2000000000
The low values for find-query-ids don't have this problem, because it is ANDed with 0xFFFFFFFFFFFF0000:
qid_low = format(int(qid_low, 16) & 0xFFFFFFFFFFFF0000, 'x')
We can fix the other locations by ANDing with 0xFFFFFFFFFFFFFFFF.