[ 
https://issues.apache.org/jira/browse/LENS-1456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16123151#comment-16123151
 ] 

Hudson commented on LENS-1456:
------------------------------

FAILURE: Integrated in Jenkins build Lens-Commit #1432 (See 
[https://builds.apache.org/job/Lens-Commit/1432/])
LENS-1456: Fix Deadlock in jdbcdriver (rajatgupta59: rev 
66ff2fd50140091083841558ed05db10b5565d7b)
* (edit) 
lens-server-api/src/main/java/org/apache/lens/server/api/query/QueryContext.java


> Deadlock in jdbcdriver
> ----------------------
>
>                 Key: LENS-1456
>                 URL: https://issues.apache.org/jira/browse/LENS-1456
>             Project: Apache Lens
>          Issue Type: Bug
>          Components: driver-jdbc
>            Reporter: Amareshwari Sriramadasu
>            Assignee: Rajat Khandelwal
>         Attachments: LENS-1456.2017-07-31_18:19:00.patch
>
>
> Here are the details :
> {noformat}
> Found one Java-level deadlock:
> =============================
> "lens-driver-jdbc-795":
>   waiting to lock monitor 0x00007f98200140a8 (object 0x0000000319a3dc88, a 
> org.apache.lens.server.api.query.QueryContext),
>   which is held by "query-cancellation-pool-Thread-3"
> "query-cancellation-pool-Thread-3":
>   waiting to lock monitor 0x00007f97ec002d08 (object 0x0000000319a8c6e0, a 
> java.util.ArrayList),
>   which is held by "lens-driver-jdbc-795"
> Java stack information for the threads listed above:
> ===================================================
> "lens-driver-jdbc-795":
>         at 
> org.apache.lens.server.query.QueryExecutionServiceImpl.updateStatus(QueryExecutionServiceImpl.java:1049)
>         - waiting to lock <0x0000000319a3dc88> (a 
> org.apache.lens.server.api.query.QueryContext)
>         at 
> org.apache.lens.server.query.QueryExecutionServiceImpl.access$1900(QueryExecutionServiceImpl.java:110)
>         at 
> org.apache.lens.server.query.QueryExecutionServiceImpl$AsyncStatusUpdater.onDriverStatusUpdated(QueryExecutionServiceImpl.java:853)
>         at 
> org.apache.lens.server.api.query.QueryContext.setDriverStatus(QueryContext.java:577)
>         - locked <0x0000000319a8c6e0> (a java.util.ArrayList)
>         at 
> org.apache.lens.driver.jdbc.JDBCDriver$QueryCallable.call(JDBCDriver.java:299)
>         at 
> org.apache.lens.driver.jdbc.JDBCDriver$QueryCallable.call(JDBCDriver.java:237)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:748)
> "query-cancellation-pool-Thread-3":
>         at 
> org.apache.lens.server.api.query.QueryContext.setDriverStatus(QueryContext.java:575)
>         - waiting to lock <0x0000000319a8c6e0> (a java.util.ArrayList)
>         at 
> org.apache.lens.server.api.query.QueryContext.setDriverStatus(QueryContext.java:587)
>         at 
> org.apache.lens.driver.jdbc.JDBCDriver.cancelQuery(JDBCDriver.java:962)
>         at 
> org.apache.lens.server.query.QueryExecutionServiceImpl.cancelQuery(QueryExecutionServiceImpl.java:2720)
>         - locked <0x0000000319a3dc88> (a 
> org.apache.lens.server.api.query.QueryContext)
>         at 
> org.apache.lens.server.query.QueryExecutionServiceImpl.access$3500(QueryExecutionServiceImpl.java:110)
>         at 
> org.apache.lens.server.query.QueryExecutionServiceImpl$CancelQueryTask.run(QueryExecutionServiceImpl.java:1667)
>         at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:748)
> Found 1 deadlock.
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to