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

Don't hold process wide lock connection_to_sessions_map_lock_ while cancelling query

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Impala 2.7.0
    • Fix Version/s: Impala 2.8.0
    • Component/s: Backend
    • Labels:
      None

      Description

      We hold the connection_to_sessions_map_lock_ while cancelling a query from the ConnectionEnd() path. This can cause slowdowns for client interaction with the daemon since this path currently takes a series of locks to do the cancel.

      We can do away with this by dropping the lock early before calling CloseSessionInternal().

        Activity

        Show
        henryr Henry Robinson added a comment - https://github.com/apache/incubator-impala/commit/4821ea6c468d3d4ae37d47b21aafaee553fb0549

          People

          • Assignee:
            sailesh Sailesh Mukil
            Reporter:
            sailesh Sailesh Mukil
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development