-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
v0.46.6: GetConfig doesn't read the store or streamers sections. #13955
Comments
did you find this with the tool you mentioned in the other issue? we should add this test case |
I didn't find it directly from the |
can we add a test case to prevent this from happening?its not the first time its happened |
So why don't we just backport #13651 to 0.46.x? |
it was back ported |
Summary of Bug
The
GetConfig
function inserver/config/config.go
does not read thestore
orstreamers
sections intoconfig.Store
andconfig.Streamers
structs.Version
Only
v0.46.6
. This does not affectmain
due to #13651.Steps to Reproduce
This was caught in one of our unit tests that does the following:
WriteConfigFile(..., DefaultConfig())
.GetConfig
function.GetConfig
is exactly the same as the one returned byDefaultConfig()
.Expected results:
The result of
GetConfig
is exactly the same asDefaultConfig()
.Actual results:
Basically, the config struct returned by
GetConfig
didn't read theStore.Streamers
orStreamers.Keys
fields. It has theStore
andStreamers
structs because they are concrete (not references), so they're made any time a newConfig
struct is made. But theStore.Streamers
andStreamers.Keys
slices arenil
because those fields aren't being read.The text was updated successfully, but these errors were encountered: