[ https://issues.apache.org/jira/browse/LENS-1345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rajat Khandelwal updated LENS-1345: ----------------------------------- Attachment: LENS-1345.02.patch > Deadlock in jdbc query status update > ------------------------------------ > > Key: LENS-1345 > URL: https://issues.apache.org/jira/browse/LENS-1345 > Project: Apache Lens > Issue Type: Bug > Reporter: Rajat Khandelwal > Assignee: Rajat Khandelwal > Attachments: LENS-1345.02.patch > > > 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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)