Skip to content
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

配置文件单行最大只支持4096字节 #680

Closed
LuoHaibin opened this issue Nov 27, 2021 · 4 comments
Closed

配置文件单行最大只支持4096字节 #680

LuoHaibin opened this issue Nov 27, 2021 · 4 comments

Comments

@LuoHaibin
Copy link

LuoHaibin commented Nov 27, 2021

github.com/gugemichael/nimo4go v0.0.0-20200403101749-647883f3a053

此依赖的版本存在此问题,后续提交已修复问题
gugemichael/nimo4go@ff2f848#diff-0e426a43248661127a0c0ee115aef7a1093b635f8993b3f7ebb1dd9f05b8f249

@zhangst
Copy link
Collaborator

zhangst commented Nov 29, 2021

什么场景需要单行大于4096?

@LuoHaibin
Copy link
Author

在配置数据源,我们这边统一用的是集合白名单,需要迁移的集合多了,就会超过4096字节。

读取配置时,单行超限后,会放弃读取剩下的配置直接返回已读的配置,而不是报错,这也是不合理的。

@zhangst
Copy link
Collaborator

zhangst commented Nov 29, 2021

也可以直接指定DB的名称,不需要指定每一个集合。这样可以缩短长度,这样能解决你的问题吗?
你这个用法很少

@LuoHaibin
Copy link
Author

之前是通过指定数据库的方式解决了,但实际,集合粒度的白名单 是不能完全被 数据库粒度的白名单 或 其他黑名单所取代的。

@zhangst zhangst closed this as completed Mar 23, 2022
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

No branches or pull requests

2 participants