Uploaded image for project: 'Apache Lens (Retired)'
  1. Apache Lens (Retired)
  2. LENS-1345

Deadlock in jdbc query status update

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.7
    • None
    • None

    Description

      JDBC query is launched in a thread. On query finish, the thread calls back the query service to update status, which creates a FinishedQuery instance. In the constructor, FinishedQuery is fetching result from the jdbc driver, which waits on the original thread to complete. Basically the thread is waiting for itself.

      In the callback, query context is acquired by the thread, and can't be acquired again. Which means that get calls for this query won't return and will stay blocked. This can end up blocking all the grizzly threads.

      Attachments

        1. LENS-1345.02.patch
          13 kB
          Rajat Khandelwal
        2. LENS-1345.04.patch
          13 kB
          Rajat Khandelwal
        3. LENS-1345.05.patch
          16 kB
          Rajat Khandelwal
        4. LENS-1345.06.patch
          16 kB
          Rajat Khandelwal
        5. LENS-1345.07.patch
          17 kB
          Rajat Khandelwal

        Issue Links

          Activity

            People

              prongs Rajat Khandelwal
              prongs Rajat Khandelwal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: