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
After setting "redpanda.delete_retention_ms" to "null" using rpk, redpanda fails to startup with a parsing error application.cc:203 - Failure during startup: YAML::TypedBadConversion<std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000l> > > (yaml-cpp: error std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000l> > > (yaml-cpp: error at line 10, column 24: bad conversion)
What should have happened instead?
The redpanda.delete_retention_ms in /etc/redpanda/redpanda.yaml should be modified to value null (without quotation marks)
How to reproduce the issue?
Install redpanda as per docs
run sudo rpk config set redpanda.delete_retention_ms null
delete_retention_ms is not nullable, so the bug here is that it's allowed to be set to null at all.
In 22.1, there is a new configuration system (this would be set with "rpk cluster config set delete_retention_ms", which will properly prevent setting a value of the wrong type. However, this ticket makes me think we should also be improving rpk's "config set" command, which currently lets users set absolutely any value they like in the redpanda.yaml file (#4176)
retention_bytes has a default value of nullaccording to docs, so I wonder if the same parsing-error occurs there as well after setting it to null using sudo rpk config set redpanda.retention_bytes null (unable to test this at the moment)
Version & Environment
What went wrong?
After setting "redpanda.delete_retention_ms" to "null" using rpk, redpanda fails to startup with a parsing error
application.cc:203 - Failure during startup: YAML::TypedBadConversion<std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000l> > > (yaml-cpp: error std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000l> > > (yaml-cpp: error at line 10, column 24: bad conversion)
What should have happened instead?
The
redpanda.delete_retention_ms
in/etc/redpanda/redpanda.yaml
should be modified to valuenull
(without quotation marks)How to reproduce the issue?
sudo rpk config set redpanda.delete_retention_ms null
systemctl restart redpanda
JIRA Link: CORE-878
The text was updated successfully, but these errors were encountered: