We've been hunting down an issue with our 1.7.06 version of I2b2 running against Oracle seeming to take forever for queries to complete when I ran across this in the server.log
10:11:10,688 ERROR [edu.harvard.i2b2.crc.ejb.ExecRunnable] (Thread-2174) Got an excpetion in ExecRunnable (RUN): PreparedStatementCallback; uncategorized SQLException for SQL [select * from CDWDEMODATA.qt_query_instance where query_instance_id =?]; SQL state [null]; error code [0]; Interrupted attempting lock: org.jboss.jca.adapters.jdbc.local.LocalManagedConnection@54d2e3e; nested exception is java.sql.SQLException: Interrupted attempting lock: org.jboss.jca.adapters.jdbc.local.LocalManagedConnection@54d2e3e
10:11:10,688 ERROR [stderr] (Thread-2174) org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized SQLException for SQL [select * from CDWDEMODATA.qt_query_instance where query_instance_id =?]; SQL state [null]; error code [0]; Interrupted attempting lock: org.jboss.jca.adapters.jdbc.local.LocalManagedConnection@54d2e3e; nested exception is java.sql.SQLException: Interrupted attempting lock: org.jboss.jca.adapters.jdbc.local.LocalManagedConnection@54d2e3e
10:11:10,689 ERROR [stderr] (Thread-2174) java.sql.SQLException: Interrupted attempting lock: org.jboss.jca.adapters.jdbc.local.LocalManagedConnection@54d2e3e
10:11:10,689 ERROR [stderr] (Thread-2174) at org.jboss.jca.adapters.jdbc.BaseWrapperManagedConnection.tryLock(BaseWrapperManagedConnection.java:384)
10:11:10,690 ERROR [stderr] (Thread-2174) at org.jboss.jca.adapters.jdbc.WrappedConnection.lock(WrappedConnection.java:146)
10:11:10,690 ERROR [stderr] (Thread-2174) at org.jboss.jca.adapters.jdbc.WrappedConnection.prepareStatement(WrappedConnection.java:394)
10:11:10,690 ERROR [stderr] (Thread-2174) at org.springframework.jdbc.core.JdbcTemplate$SimplePreparedStatementCreator.createPreparedStatement(JdbcTemplate.java:1129)
10:11:10,690 ERROR [stderr] (Thread-2174) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:471)
10:11:10,691 ERROR [stderr] (Thread-2174) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:529)
10:11:10,691 ERROR [stderr] (Thread-2174) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:562)
10:11:10,691 ERROR [stderr] (Thread-2174) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:571)
10:11:10,691 ERROR [stderr] (Thread-2174) at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:620)
10:11:10,691 ERROR [stderr] (Thread-2174) at edu.harvard.i2b2.crc.dao.setfinder.QueryInstanceSpringDao.getQueryInstanceByInstanceId(QueryInstanceSpringDao.java:128)
10:11:10,692 ERROR [stderr] (Thread-2174) at edu.harvard.i2b2.crc.dao.setfinder.QueryExecutorDao.setQueryInstanceStatus(QueryExecutorDao.java:372)
10:11:10,692 ERROR [stderr] (Thread-2174) at edu.harvard.i2b2.crc.dao.setfinder.QueryExecutorDao.executeSQL(QueryExecutorDao.java:339)
10:11:10,692 ERROR [stderr] (Thread-2174) at edu.harvard.i2b2.crc.ejb.ExecRunnable.processQueryRequest(ExecRunnable.java:469)
10:11:10,692 ERROR [stderr] (Thread-2174) at edu.harvard.i2b2.crc.ejb.ExecRunnable.run(ExecRunnable.java:184)
10:11:10,692 ERROR [stderr] (Thread-2174) at java.lang.Thread.run(Thread.java:744)
10:13:57,639 INFO [edu.harvard.i2b2.crc.dao.DataSourceLookupHelper] (http--0.0.0.0-8080-61) Located DataSource for hiveId=[i2b2demo
Anyone ever seen this . Don't see how a select requires a lock as it's not doing a select for update .