Skip to content

[fix](bdbje) set maxMessageSize for bdbje #50213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,9 @@ public class Config extends ConfigBase {
@ConfField(description = {"BDBJE Cache 内存大小, 最小值为 96KB。", "Amount of memory used by by BDBJE as cache. "})
public static long bdbje_cache_size_bytes = 10 * 1024 * 1024; // 10 MB

@ConfField(description = {"BDBJE Message 大小限制。", "Max message size of BDBJE. "})
public static long bdbje_max_message_size_bytes = Integer.MAX_VALUE; // 2 GB

@ConfField(masterOnly = true, description = {"心跳线程池的线程数",
"Num of thread to handle heartbeat events"})
public static int heartbeat_mgr_threads_num = 8;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ public void setup(File envHome, String selfNodeName, String selfNodeHostPort,
replicationConfig.setNodeType(NodeType.SECONDARY);
replicationConfig.setConsistencyPolicy(new NoConsistencyRequiredPolicy());
}
replicationConfig.setConfigParam(ReplicationConfig.MAX_MESSAGE_SIZE,
String.valueOf(Config.bdbje_max_message_size_bytes));

// set environment config
environmentConfig = new EnvironmentConfig();
Expand Down