The code on the line was running smoothly, and suddenly there was a strange problem, seeing that the error message was the third-party framework Druid reported that the connection pool reclaimed the connection when the problem occurred.
2018-05-14 20:01:32.810 ERROR [hystrix-upgraderesultreportcontroller-49][druiddatasource.java:1297]-Recyle Errorjava.lang.InterruptedException:null at Java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireInterruptibly (Abstractqueuedsynchronizer.java : 1220) ~[?:1.8.0_131] at java.util.concurrent.locks.ReentrantLock.lockInterruptibly (reentrantlock.java:335) ~[?:1. 8.0_131] at Com.alibaba.druid.pool.DruidDataSource.recycle (druiddatasource.java:1279) [druid-1.0.11.jar!/:1.0.11] At Com.alibaba.druid.pool.DruidPooledConnection.recycle (druidpooledconnection.java:292) [druid-1.0.11.jar!/ : 1.0.11] at Com.alibaba.druid.filter.FilterChainImpl.dataSource_recycle (filterchainimpl.java:4534) [ DRUID-1.0.11.JAR!/:1.0.11] at Com.alibaba.druid.filter.FilterAdapter.dataSource_releaseConnection ( filteradapter.java:2717) [druid-1.0.11.jar!/:1.0.11] at Com.alibaba.druid.filter.FilterChainImpl.dataSource_ Recycle (filterchainimpl.java:4530) [DRUID-1.0.11.JAR!/:1.0.11] at Com.alibaba.druid.filter.stat.StatFilter.dataSource_releaseConnection (statfilter.java:646) [ DRUID-1.0.11.JAR!/:1.0.11] at Com.alibaba.druid.filter.FilterChainImpl.dataSource_recycle (Filterchainimpl.java : 4530) [druid-1.0.11.jar!/:1.0.11] at Com.alibaba.druid.pool.DruidPooledConnection.syncClose ( druidpooledconnection.java:269) [druid-1.0.11.jar!/:1.0.11] at Com.alibaba.druid.pool.DruidPooledConnection.close (druidpooledconnection.java:228) [druid-1.0.11.jar!/:1.0.11] at Org.springframework.jdbc.datasource.DataSourceUtils.doCloseConnection ( datasourceutils.java:341) [Spring-jdbc-4.3.8.release.jar!/:4.3.8.release] at Org.springframework.jdbc.datasource.DataSourceUtils.doReleaseConnection (datasourceutils.java:328) [ Spring-jdbc-4.3.8.release.jar!/:4.3.8.release] At Org.springframework.jdbc.datasource.DataSourceUtils.releaseConnection (datasourceutils.java:294) [ Spring-jdbc-4.3.8.release.jar!/:4.3.8.release] at ORG.MYBATIS.SPring.transaction.SpringManagedTransaction.close (springmanagedtransaction.java:127) [mybatis-spring-1.3.1.jar!/ : 1.3.1] at Org.apache.ibatis.executor.BaseExecutor.close (baseexecutor.java:90) [mybatis-3.4.2.jar!/:3.4.2] A T Org.apache.ibatis.executor.CachingExecutor.close (cachingexecutor.java:64) [mybatis-3.4.2.jar!/:3.4.2] at Org.apa Che.ibatis.session.defaults.DefaultSqlSession.close (defaultsqlsession.java:264) [mybatis-3.4.2.jar!/:3.4.2] at Org.mybatis.spring.SqlSessionUtils.closeSqlSession (sqlsessionutils.java:193) [mybatis-spring-1.3.1.jar!/:1.3.1] At Org.mybatis.spring.sqlsessiontemplate$sqlsessioninterceptor.invoke (sqlsessiontemplate.java:454) [ mybatis-spring-1.3.1.jar!/:1.3.1] at Com.sun.proxy. $Proxy 133.update (Unknown Source) [?:?] At Org.mybatis.spring.SqlSessionTemplate.update (sqlsessiontemplate.java:294) [mybatis-spring-1.3.1.jar!/:1.3.1] At Org.apache.ibatis.binding.MapperMethod.execute (mappermethod.java:62) [mybatis-3.4.2. jar!/:3.4.2] at Org.apache.ibatis.binding.MapperProxy.invoke (mapperproxy.java:59) [mybatis-3.4.2.jar!/:3.4.2] At Com.sun.proxy. $Proxy 148.updDeviceUpgradeStatus (Unknown Source) [?:?] At Com.phicomm.smarthome.ota.service.impl.UpgradeHistoryDaoServiceImpl.updUpgradeSuccessStatus ( upgradehistorydaoserviceimpl.java:50r [Classes!/:0.0.1-snapshot] at com.phicomm.smarthome.ota.service.impl.upgradehistorydaoserviceimpl$ $FastClassBySpringCGLIB $$9b468fba.invoke ( <generated>) [Classes!/:0.0.1-snapshot] at Org.springframework.cglib.proxy.MethodProxy.invoke ( methodproxy.java:204) [Spring-core-4.3.8.release.jar!/:4.3.8.release] at Org.springframework.aop.framework.cglibaopproxy$cglibmethodinvocation.invokejoinpoint (CglibAopProxy.java:738) [ Spring-aop-4.3.8.release.jar!/:4.3.8.release]
Check out his source code.
Did not see the why, and then go to GitHub on the official open source Druid, looked at the history of the repair, found that this is the old version of a bug known.
https://github.com/alibaba/druid/issues/785
Looked at the version of the current use of the Druid "1.0.11", and then confirmed that the official latest version is "1.1.9", has been a lot of bad version.
Decisively update the version to the latest
<dependency><groupId>com.alibaba</groupId><artifactId>druid</artifactId>< Version>1.1.9</version></dependency>
Look at the code found before the error
The above issues are resolved after updating to the latest version.
Druid appears druiddatasource-recyle error-recyle error Java.lang.InterruptedException:null exception troubleshooting and resolution