MyCATApache / Mycat-Server

GNU General Public License v2.0
9.5k stars 3.85k forks source link

mycat 性能测试数据不对 #1905

Open cxdhefei opened 6 years ago

cxdhefei commented 6 years ago

(io.mycat.backend.mysql.nio.MySQLConnection.release(MySQLConnection.java:557)) - can't sure connection syn result,so close it MySQLConnection 报这个错误,3万条记录,缺失2000多条记录,mycat1.6版本

zwyqz commented 6 years ago

建议使用最新版本

cxdhefei commented 6 years ago

升级了新版本,还是有报错,报错几率低了,数据丢失相对少了, 然后我们把最小连接数minCon设置成2000, 3亿数据,丢了150条。。。@zwyqz

zwyqz commented 6 years ago

查询数据吗 还是?

zwyqz commented 6 years ago

1019100252 qq

jason8888888 commented 5 years ago

1019100252

问题现在已经解决了吗?

jason8888888 commented 5 years ago

(io.mycat.backend.mysql.nio.MySQLConnection.release(MySQLConnection.java:557)) - can't sure connection syn result,so close it MySQLConnection 报这个错误,3万条记录,缺失2000多条记录,mycat1.6版本

你好 问题已经解决了吗? 如何解决的

zwyqz commented 5 years ago

你这边是什么情况下丢失的数据 不支持批量插入

jason8888888 commented 5 years ago

你这边是什么情况下丢失的数据 不支持批量插入

简单查询 带where 条件的

jason8888888 commented 5 years ago

close connection,reason:no handler ,MySQLConnection [id=63789, lastTime=1557019293439, user=yhhy, schema=payment_db7, old shema=payment_db7, borrowed=false, fromSlaveDB=false, threadId=27216021, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=10.10.181.1, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.net.AbstractConnection:AbstractConnection.java:514) INFO | jvm 1 | 2019/05/05 09:21:33 | 2019-05-05 09:21:33,444 [WARN ][$_NIOREACTOR-13-RW] no handler bind in this con io.mycat.backend.mysql.nio.MySQLConnectionHandler@ee50526 client:MySQLConnection [id=63789, lastTime=1557019293439, user=yhhy, schema=payment_db7, old shema=payment_db7, borrowed=false, fromSlaveDB=false, threadId=27216021, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=10.10.181.1, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.mysql.nio.MySQLConnectionHandler:MySQLConnectionHandler.java:214) INFO | jvm 1 | 2019/05/05 09:21:33 | 2019-05-05 09:21:33,445 [WARN ][$_NIOREACTOR-7-RW] can't sure connection syn result,so close it MySQLConnection [id=63783, lastTime=1557019293439, user=yhhy, schema=order_db2_1, old shema=payment_db9, borrowed=true, fromSlaveDB=false, threadId=27002549, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=SingleNodeHandler [node=dn_order2_1{select

gaotuan commented 5 years ago

这是使用了分布式事物了吧? 要不怎么会丢数据呢

zwyqz commented 5 years ago

不支持一次执行发送了两条sql 这样的你可以检查一下 最好使用1.6.6以上的版本

jason8888888 commented 5 years ago

不支持一次执行发送了两条sql 这样的你可以检查一下 最好使用1.6.6以上的版本

用的是1.6.5 发送这个问题

zwyqz commented 5 years ago

先升级下版本 看看吧

lvhjean commented 3 years ago

1.6之前的版本不支持两条以上的SQL执行? 大家有确认是1.6.6 之后的版本支持两条以上的SQL可以执行?还是1.6.7以后?