Skip to content

Commit

Permalink
Issue OpenLiberty#7211 avoid IllegalStateException on transaction tim…
Browse files Browse the repository at this point in the history
…eout/abort path
  • Loading branch information
njr-11 committed Apr 11, 2019
1 parent 9115fd5 commit b89239c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/PoolManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ public void fatalErrorNotification(ManagedConnectionFactory managedConnectionFac
/*
* New with jdbc 4.1 support, if the connection was aborted, skip the entire pool connection purge.
*/
boolean aborted = mcWrapper != null && mcWrapper.getManagedConnection() instanceof WSManagedConnection
&& ((WSManagedConnection) mcWrapper.getManagedConnection()).isAborted();
boolean aborted = mcWrapper != null && mcWrapper.getManagedConnectionWithoutStateCheck() instanceof WSManagedConnection
&& ((WSManagedConnection) mcWrapper.getManagedConnectionWithoutStateCheck()).isAborted();
if (gConfigProps.getPurgePolicy() == PurgePolicy.EntirePool
&& !aborted) {

Expand Down

0 comments on commit b89239c

Please sign in to comment.