Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-13111

impala-gdb.py's find-query-ids/find-fragment-instances return unusable query ids

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 4.5.0
    • Impala 4.5.0
    • Infrastructure
    • 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.

      Attachments

        Activity

          People

            joemcdonnell Joe McDonnell
            joemcdonnell Joe McDonnell
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: