You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: write rawlog with db_holder.go got Error packet for query is too large. #12489
{"level":"ERROR","time":"2023/11/02 03:35:13.399531 +0800","name":"log-service.ETLMerge","caller":"export/merge.go:393","msg":"failed to upload file to MO","uuid":"7c4dccb4-4d3c-41f8-b482-5251dc7a41bf","table":"system.rawlog","path":"sys/logs/2023/11/02/rawlog/1698866704_7c4dccb4-4d3c-41f8-b482-5251dc7a41bf_ALL_130285749.csv","error":"packet for query is too large. Try adjusting the `Config.MaxAllowedPacket`","span":{"trace_id":"f69a6344-c06e-fa5c-6fd8-603899698bee","span_id":"e6033f01f6063e17"}}
Activity
gavinyue commentedon Nov 11, 2023
maxAllowedPacket=0
在建立链接的时候已经设置了 maxAllowedPacket 为unlimited.
遇到这种情况只能是server端没有honor这个协议。
gavinyue commentedon Nov 11, 2023
只能想想办法再load里 分拆了
gavinyue commentedon Nov 11, 2023
#12682
gavinyue commentedon Nov 11, 2023
这个是因为MO 的server side default max_allowed_packet是16mb.
client端怎么设置, 都会以server端为准, 所以需要再server修改。
我提了一个PR来提高server side defautl setting to 64mb
但是这个问题也可以通过在server端修改配置来解决。
xzxiong commentedon Nov 13, 2023
@gavinyue 现在只能通过修改默认值,解决么?
这个参数本身就应该是 session的 variable;另外,也应该支持在go SDK中DSN中指定。
gavinyue commentedon Nov 13, 2023
不是,这个pr只是让Mo的默认值和现在MySQL 的默认值已经gosql client的默认值保持一致。
可以在server 端修改这个值,但是需要功过跑一个sql.
另外client端的设定本来默认就是64mb, 但是client端的设置是不影响server的设置的, 最终以server端的设置为准。
xzxiong commentedon Nov 28, 2023
checked