Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-5311

H2 locking errors due to autocommit=false in non-XA mode

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.3.2
    • Component/s: None

      Description

      There is a H2 bug which manifests itself under Tomcat when using WebEngine.

      The problem is that the XAConnection used by VCS in XA mode (start/end/commit) are not reset correctly to autocommit=true after they've been used, which means that a subsequent non-transactional use of the XAConnection will fail to commit its work. With H2 this means that any other connection to the database try to acquire a lock on any modified table and fail, resulting in messages like:
      org.h2.jdbc.JdbcSQLException. message: Timeout trying to lock table HIERARCHY

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fguillaume Florent Guillaume
                Reporter:
                fguillaume Florent Guillaume
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: