Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-4082

RDBDocumentStore on MySQL may fail when using useServerPrepStmts=true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.35, 1.2.20, 1.4.9, 1.5.12, 1.6.0
    • rdbmk
    • None

    Description

      Seen when connecting with useServerPrepStmts=true:

      15:45:58 Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Can't create more than max_prepared_stmt_count statements (current value: 16382)
      15:45:58 	at sun.reflect.GeneratedConstructorAccessor23.newInstance(Unknown Source)
      15:45:58 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      15:45:58 	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      15:45:58 	at com.mysql.jdbc.Util.handleNewInstance(Util.java:400)
      15:45:58 	at com.mysql.jdbc.Util.getInstance(Util.java:383)
      15:45:58 	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:980)
      15:45:58 	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3847)
      15:45:58 	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3783)
      15:45:58 	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2447)
      15:45:58 	at com.mysql.jdbc.ServerPreparedStatement.serverPrepare(ServerPreparedStatement.java:1514)
      15:45:58 	at com.mysql.jdbc.ServerPreparedStatement.<init>(ServerPreparedStatement.java:389)
      15:45:58 	at com.mysql.jdbc.ServerPreparedStatement.prepareBatchedInsertSQL(ServerPreparedStatement.java:2832)
      15:45:58 	at com.mysql.jdbc.PreparedStatement.executeBatchedInserts(PreparedStatement.java:1524)
      15:45:58 	at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1262)
      15:45:58 	at org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStoreJDBC.insert(RDBDocumentStoreJDBC.java:302)
      15:45:58 	at org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStoreJDBC.update(RDBDocumentStoreJDBC.java:446)
      15:45:58 	at org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.bulkUpdate(RDBDocumentStore.java:456)
      15:45:58 	... 21 more
      

      Attachments

        1. OAK-4082.demo
          0.9 kB
          Julian Reschke
        2. OAK-4082.patch
          2 kB
          Tomek Rękawek

        Issue Links

          Activity

            People

              reschke Julian Reschke
              tomek.rekawek Tomek Rękawek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: