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
refactor: unify gRPC message size into single config value (#19397)
* refactor: unify gRPC message size into single config value
Consolidate `grpc_max_encoding_size` and `grpc_max_decoding_size` into
a single `grpc_max_message_size` parameter since they are always set
together. Also change the parameter type from `Option<usize>` to `usize`
to require explicit values at construction time.
Changes:
- Unify encoding/decoding size into `grpc_max_message_size` in `RaftConfig` and `GrpcConfig`
- Change `RpcClientConf.grpc_max_message_size` from `Option<usize>` to `usize`
- Change `MetaGrpcClient::try_create()` and `try_create_with_features()` params to `usize`
- Export `DEFAULT_GRPC_MESSAGE_SIZE` from `databend-common-meta-client`
- Update all call sites to use `DEFAULT_GRPC_MESSAGE_SIZE` explicitly
- Remove unused dependencies: `chrono`, `chrono-tz` from `databend-common-io`, `databend-common-column` from `databend-common-hashtable`, `chrono-tz` from `databend-common-formats`
Config example (databend-meta):
```toml
# MetaService gRPC message size (default: 32MB)
grpc_api_max_message_size = 67108864 # 64MB
[raft_config]
# Raft gRPC message size (default: 32MB)
raft_grpc_max_message_size = 67108864 # 64MB
```
Config example (databend-query):
```toml
[meta]
# Meta client gRPC message size (default: 32MB)
grpc_max_message_size = 67108864 # 64MB
```
* M src/query/service/tests/it/storages/testdata/configs_table_basic.txt
0 commit comments