开发者社区> 问答> 正文

MySQL Group Replication多写模式报错?报错

MySQL Group Replication集群,多写模式,上面跑了一个quartz集群(quartz一分钟一次),时不时会报错,频率大概一天一次的样子。所有涉及到的机器已经进行了时间同步,,即使集群只有一台集群,也会报下面的错,

2017-02-08 06:42:45.083 [schedulerFactoryBean_QuartzSchedulerThread] ERROR org.quartz.core.ErrorLogger - An error occurred while scanning for the next triggers to fire.

org.quartz.JobPersistenceException: Couldn't commit jdbc connection. Plugin instructed the server to rollback the current transaction.

         at org.quartz.impl.jdbcjobstore.JobStoreSupport.commitConnection(JobStoreSupport.java:3672)

         at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.java:3789)

         at org.quartz.impl.jdbcjobstore.JobStoreSupport.acquireNextTriggers(JobStoreSupport.java:2756)

         at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:272)

Caused by: java.sql.SQLException: Plugin instructed the server to rollback the current transaction.

         at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:695)

         at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:663)

         at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:653)

         at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:115)

         at com.mysql.cj.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2041)

         at com.mysql.cj.jdbc.ConnectionImpl.commit(ConnectionImpl.java:1249)

         at com.mysql.cj.jdbc.ha.MultiHostMySQLConnection.commit(MultiHostMySQLConnection.java:147)

         at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)

         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

展开
收起
爱吃鱼的程序员 2020-06-08 17:10:01 961 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    sql语句写错了吧,createSQLException

    楼主解决这个问题了吗,我的也是

    2020-06-08 17:10:20
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
搭建电商项目架构连接MySQL 立即下载
搭建4层电商项目架构,实战连接MySQL 立即下载
PolarDB MySQL引擎重磅功能及产品能力盛大发布 立即下载

相关镜像