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

Store query context in thread-local variables and use in crash reports

    XMLWordPrintableJSON

Details

    Description

      If Impala crashes or hits some kind of unexpected error, it's useful to know what query the thread that crashed belonged to and be able to easily find the state of the query.

      We should store some state in thread-local variables and then make sure that it can be found in the event of a crash.

      We should:

      • Store a pointer to the RuntimeState object in a thread-local variable
      • Report basic info in the breakpad crash report and logs if there is a crash
        • Query ID
        • Fragment instance ID
        • Thread Name
        • ???
      • Document how to find the thread-local variables in coredumps

      Attachments

        Issue Links

          Activity

            People

              boroknagyz Zoltán Borók-Nagy
              tarmstrong Tim Armstrong
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: