diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MariaDBDictionary.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MariaDBDictionary.java index 30adc89a1..78d608f85 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MariaDBDictionary.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MariaDBDictionary.java @@ -469,7 +469,8 @@ public class MariaDBDictionary extends DBDictionary { @Override public boolean isFatalException(int subtype, SQLException ex) { - if ((subtype == StoreException.LOCK && ex.getErrorCode() == 1205) + if ((subtype == StoreException.LOCK && ex.getErrorCode() == 1205) // ER_LOCK_WAIT_TIMEOUT + ||(subtype == StoreException.LOCK && ex.getErrorCode() == 1969) // general ER_STATEMENT_TIMEOUT ||(subtype == StoreException.LOCK && "JZ0002".equalsIgnoreCase(ex.getSQLState())) ||(subtype == StoreException.QUERY && ex.getErrorCode() == 1317)) { return false; diff --git a/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/sql/sql-error-state-codes.xml b/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/sql/sql-error-state-codes.xml index 7460a2672..afcff44b3 100644 --- a/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/sql/sql-error-state-codes.xml +++ b/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/sql/sql-error-state-codes.xml @@ -164,7 +164,7 @@ - 41000 + 41000,70100 630,839,840,893,1062,1169,1215,1216,1217,1451,1452,1557 23000