Re: [h2] XA commit-unlockAll - Unexpected code path

2018-04-13 Thread Noel Grandin
In general the XA stuff is not well tested. The first thing would be to
reduce it to a standalone test case.​

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.


[h2] XA commit-unlockAll - Unexpected code path

2018-04-13 Thread Martin Lichtin
Seeing following exception after upgrading from 196 to 197:

Caused by: org.h2.jdbc.JdbcSQLException: General error: 
"java.lang.RuntimeException: Unexpected code path"; SQL statement:
COMMIT TRANSACTION 
XID_1096044365_3139322e3136382e35362e312e746d31343531_33626532396263332d613865662d343861382d616466352d313433386261336163303838
 
[5-197]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:357)
at org.h2.message.DbException.get(DbException.java:168)
at org.h2.message.DbException.convert(DbException.java:307)
at org.h2.command.Command.executeUpdate(Command.java:274)
at org.h2.server.TcpServerThread.process(TcpServerThread.java:399)
at org.h2.server.TcpServerThread.run(TcpServerThread.java:165)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Unexpected code path
at org.h2.message.DbException.throwInternalError(DbException.java:254)
at org.h2.message.DbException.throwInternalError(DbException.java:267)
at org.h2.engine.Session.unlockAll(Session.java:985)
at org.h2.engine.Session.endTransaction(Session.java:760)
at org.h2.engine.Session.commit(Session.java:708)
at org.h2.engine.Session.setPreparedTransaction(Session.java:1179)
at 
org.h2.command.dml.TransactionCommand.update(TransactionCommand.java:70)
at org.h2.command.CommandContainer.update(CommandContainer.java:102)
at org.h2.command.Command.executeUpdate(Command.java:261)
... 3 more

at 
org.h2.engine.SessionRemote.done(SessionRemote.java:623)[182:org.h2:1.4.197]
at 
org.h2.command.CommandRemote.executeUpdate(CommandRemote.java:237)[182:org.h2:1.4.197]
at 
org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:233)[182:org.h2:1.4.197]
at 
org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:205)[182:org.h2:1.4.197]
at 
org.h2.jdbcx.JdbcXAConnection.commit(JdbcXAConnection.java:349)[182:org.h2:1.4.197]
... 27 more

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.