Skip to content

Add max_allow_packet check - #17846

Merged
mergify[bot] merged 36 commits into
matrixorigin:mainfrom
CJKkkk-315:improve16MbRead
Aug 9, 2024
Merged

mergify[bot] merged 36 commits into
matrixorigin:mainfrom
CJKkkk-315:improve16MbRead

Conversation

@CJKkkk-315

@CJKkkk-315 CJKkkk-315 commented Aug 1, 2024 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #17960
https://github.com/matrixorigin/MO-Cloud/issues/3733

What this PR does / why we need it:

在读取packet时加入了max_allowed_packet判断
复用load local的read 内存
读取短query时不再使用alloc

mysql对于big packet 超过max_allowed_packet后会抛错断开连接
当前mo会无限接收,直到OOM
修改后行为与mysql一致

@CJKkkk-315 CJKkkk-315 changed the title Improve16 mb read Add max_allow_packet check Aug 1, 2024
@matrix-meow matrix-meow added the size/M Denotes a PR that changes [100,499] lines label Aug 1, 2024
@mergify mergify Bot added kind/feature kind/refactor Code refactor labels Aug 1, 2024
Comment thread pkg/frontend/mysql_buffer.go Resolved
Comment thread pkg/frontend/mysql_buffer.go Resolved
@matrix-meow matrix-meow added size/L Denotes a PR that changes [500,999] lines and removed size/M Denotes a PR that changes [100,499] lines labels Aug 5, 2024
@CJKkkk-315
CJKkkk-315 requested a review from daviszhen August 6, 2024 05:19
@mergify
mergify Bot merged commit bc7fca0 into matrixorigin:main Aug 9, 2024
fengttt pushed a commit to fengttt/matrixone that referenced this pull request May 7, 2026
在读取packet时加入了max_allowed_packet判断
复用load local的read 内存
读取短query时不再使用alloc

mysql对于big packet 超过max_allowed_packet后会抛错断开连接
当前mo会无限接收,直到OOM
修改后行为与mysql一致

Approved by: @daviszhen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature kind/refactor Code refactor size/L Denotes a PR that changes [500,999] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants