Skip to content

Add max key/value size for binlog_tool to prevent OOM#468

Merged
takenliu merged 1 commit into
Tencent:unstablefrom
raffertyyu:fixBinlogOOM
Jun 26, 2026
Merged

Add max key/value size for binlog_tool to prevent OOM#468
takenliu merged 1 commit into
Tencent:unstablefrom
raffertyyu:fixBinlogOOM

Conversation

@raffertyyu

Copy link
Copy Markdown
Collaborator

binlog_tool在解析binlog文件时默认不对key size和value size进行限制,完全信任binlog中的key/value size字段,若存在特殊的binlog文件,其中修改了key/value size字段导致binlog_tool解析失败,存在OOM的风险。

现添加--max-key-size--max-value-size参数用于限制允许的最长key value的长度,阻止OOM的可能。

@takenliu takenliu merged commit 890a9da into Tencent:unstable Jun 26, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants