[ https://issues.apache.org/jira/browse/LENS-1345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15555555#comment-15555555 ]
Hadoop QA commented on LENS-1345: --------------------------------- Applied patch: [LENS-1345.05.patch|https://issues.apache.org/jira/secure/attachment/12832141/LENS-1345.05.patch] and ran command: mvn clean install -fae. Result: Failure. Build Job: https://builds.apache.org/job/PreCommit-Lens-Build/1014/ > 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, LENS-1345.04.patch, > LENS-1345.05.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)