conf/collector.conf 模板第 144 行未注释的表达式值导致 collector 启动失败
- Dominant language
- Go
- Stars
- 1.8k
- Forks
- 466
- PR merge metrics
- No merged PRs in 30d
Description
## 问题描述
develop 分支 `conf/collector.conf` 模板第 144 行:
```
tunnel.kafka.producer.max_message_bytes = 18*1024*1024
```
未注释。配置解析器只接受纯整数,对该表达式形式直接报错:
```
Configure file collector.conf parse failed. integer key tunnel.kafka.producer.max_message_bytes wrong format 18*1024*1024
```
导致**任何直接使用该模板启动的 collector 都会启动失败**。发布版本的 conf 中该行是注释状态(下一行为数值 18874368),说明是 develop 上误取消注释。
## 复现
```
go build -o collector ./cmd/collector
./collector -conf=conf/collector.conf
# Configure file collector.conf parse failed. integer key tunnel.kafka.producer.max_message_bytes wrong format 18*1024*1024
```
## 修复建议
改为 `18874368` 或恢复注释。在搭建集成测试环境时发现。
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.