File tree 1 file changed +4
-4
lines changed
spring-integration-jdbc/src/main/java/org/springframework/integration/jdbc/lock
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -362,11 +362,11 @@ public void unlock() {
362
362
catch (TransientDataAccessException | TransactionTimedOutException | TransactionSystemException e ) {
363
363
// try again
364
364
}
365
+ catch (IllegalStateException e ) {
366
+ throw new IllegalStateException ("Lock was released in the store due to expiration. " +
367
+ "The integrity of data protected by this lock may have been compromised." );
368
+ }
365
369
catch (Exception e ) {
366
- if (e instanceof IllegalStateException ) {
367
- throw new IllegalStateException ("Lock was released in the store due to expiration. " +
368
- "The integrity of data protected by this lock may have been compromised." );
369
- }
370
370
throw new DataAccessResourceFailureException ("Failed to release mutex at " + this .path , e );
371
371
}
372
372
}
You can’t perform that action at this time.
0 commit comments