[ https://issues.apache.org/jira/browse/SCB-741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16550185#comment-16550185 ]
ASF GitHub Bot commented on SCB-741: ------------------------------------ coveralls edited a comment on issue #226: SCB-741 change payloads database type from varbinary(10240) to blob URL: https://github.com/apache/incubator-servicecomb-saga/pull/226#issuecomment-405794531 [![Coverage Status](https://coveralls.io/builds/18077891/badge)](https://coveralls.io/builds/18077891) Coverage decreased (-0.3%) to 93.023% when pulling **aa893a2052425513dc1edd49b935dd9315f9d338 on SingleX:SCB-741** into **2c1f574f16cc492d35cb3d66079ba589a899d7be on apache:master**. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long > for column 'payloads' at row 1 > ------------------------------------------------------------------------------------------------------------ > > Key: SCB-741 > URL: https://issues.apache.org/jira/browse/SCB-741 > Project: Apache ServiceComb > Issue Type: Bug > Components: Saga > Affects Versions: saga-0.3.0 > Environment: Mac,Intellij Idea > Reporter: justdebugit > Assignee: Gao Xin > Priority: Major > > I encounter an Exception at Alpha Server > {code:java} > Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long > for column 'payloads' at row 1 > at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3974) > ~[mysql-connector-java-5.1.46.jar:5.1.46] > at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3912) > ~[mysql-connector-java-5.1.46.jar:5.1.46] > at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2530) > ~[mysql-connector-java-5.1.46.jar:5.1.46] > at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2683) > ~[mysql-connector-java-5.1.46.jar:5.1.46] > at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2486) > ~[mysql-connector-java-5.1.46.jar:5.1.46] > at > com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1858) > ~[mysql-connector-java-5.1.46.jar:5.1.46] > at > com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2079) > ~[mysql-connector-java-5.1.46.jar:5.1.46] > at > com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2013) > ~[mysql-connector-java-5.1.46.jar:5.1.46] > at > com.mysql.jdbc.PreparedStatement.executeLargeUpdate(PreparedStatement.java:5104) > ~[mysql-connector-java-5.1.46.jar:5.1.46] > at > com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1998) > ~[mysql-connector-java-5.1.46.jar:5.1.46] > at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source) ~[na:na] > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > ~[na:1.8.0_102] > at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_102] > at > org.apache.tomcat.jdbc.pool.StatementFacade$StatementProxy.invoke(StatementFacade.java:114) > ~[tomcat-jdbc-8.5.31.jar:na] > at com.sun.proxy.$Proxy106.executeUpdate(Unknown Source) ~[na:na] > at > org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:895) > ~[org.eclipse.persistence.core-2.7.1.jar:na] > ... 60 common frames omitted > {code} > I find it's because payload bytes is more than 10240 > {code:java} > public class TxAbortedEvent extends TxEvent { > public TxAbortedEvent(String globalTxId, String localTxId, String > parentTxId, String compensationMethod, Throwable throwable) { > super(EventType.TxAbortedEvent, globalTxId, localTxId, parentTxId, > compensationMethod, 0, "", 0, > stackTrace(throwable)); > } > private static String stackTrace(Throwable e) { > StringWriter writer = new StringWriter(); > e.printStackTrace(new PrintWriter(writer)); > return writer.toString(); > } > } > {code} > -- This message was sent by Atlassian JIRA (v7.6.3#76005)