-
Notifications
You must be signed in to change notification settings - Fork 602
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
rpk: core's uint64 max value isn't correctly handled #16723
Comments
I see converting from case float64:
scalarVal = strconv.FormatFloat(x, 'f', -1, 64) |
This issue hasn't seen activity in 3 months. If you want to keep it open, post a comment or remove the |
This issue was closed due to lack of activity. Feel free to reopen if it's still relevant. |
Hi @daisukebe, I'm taking a look into this, and we are currently losing precision with the current way of handling it in The cleaner solution will be to use json.Number instead, this will require a change in https://github.com/redpanda-data/common-go/blob/main/rpadmin/api_config.go#L50 and some other parts of the rpk code. I'll be working on this |
Thank you, Rogger! |
Version & Environment
Redpanda version: (use
rpk version
): dev (89731b2)What went wrong?
In Redpanda core,
max_concurrent_producer_ids
is set to uint64 max18446744073709551615
by default. Here's a snip from a startup log.However,
rpk cluster config get max_concurrent_producer_ids
returns-9223372036854775808
as this conversion doesn't work correctly.What should have happened instead?
The command should return
18446744073709551615
How to reproduce the issue?
rpk cluster config get max_concurrent_producer_ids
JIRA Link: CORE-1812
JIRA Link: CORE-8989
The text was updated successfully, but these errors were encountered: