-
Notifications
You must be signed in to change notification settings - Fork 577
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
Using the flag delete_retention_ms gives error with redpanda cluster configuration. #3082
Comments
Trying this with redpanda 21.11.1 (Neetendra mentioned in slack they were also using this version), redpanda itself doesn't seem to have a problem with a config like:
I can see the value getting loaded:
Seems like something could be going wrong in the operator, although I'm not sure what, as apparently smaller values do get passed through correctly. |
@singhsneetendra can you please paste the part of redpanda logs where it shows the config loaded? I'll also try to reproduce. Thanks for filing the issue |
cloud_storage_bucket: nimbus-testing-celerway-com-redpanda-data value for delete_retention_ms read as exponential pattern (edited) |
Thanks for that @singhsneetendra Looks like this is an issue on the path through our k8s operator, where the integer setting is getting passed through as a float (and thereby scientific notation) rather than an integer. Intermediate yaml representations don't distinguish between floats and integers, but redpanda does at the point it loads values. |
That means there is code fix required in redpanda operator CRD ? |
@jcsp you view on above comments ? |
@singhsneetendra it sounds like a code fix is needed in operator, I don't know if there is a way to workaround this and inject a config by hand. |
@singhsneetendra so I spent some time on this, can you share which version of the operator were you running? I verified with 21.10.2 and also the latest and this is no longer an issue - we already fixed this in the past. |
@alenkacz , Yes I was running 21.7.* something and the updated version for operator fixed the issue and is working fine. |
Version & Environment
Redpanda version: v21.10.2 (rev bcc20e8)
Using this as base file to deploy 3 node cluster.
https://github.com/vectorizedio/redpanda/blob/dev/src/go/k8s/config/samples/one_node_cluster.yaml
My redpanda yaml
apiVersion: redpanda.vectorized.io/v1alpha1
kind: Cluster
metadata:
labels:
instance: testing
name: redpanda
namespace: redpanda-cluster
spec:
additionalConfiguration:
redpanda.auto_create_topics_enabled: "true"
redpanda.delete_retention_ms: "604800000"
redpanda.enable_sasl: "false"
redpanda.log_cleanup_policy: delete
configuration:
adminApi:
- port: 9644
developerMode: true
kafkaApi:
- port: 9092
pandaproxyApi:
- port: 8082
rpcServer:
port: 33145
image: vectorized/redpanda
replicas: 3
resources:
limits:
cpu: 1
memory: 1.2Gi
requests:
cpu: 1
memory: 1.2Gi
storage:
capacity: 10Gi
version: latest
value for redpanda.delete_retention_ms: "604800000" fails with error
INFO 2021-11-28 16:12:28,489 [shard 0] redpanda::main - application.cc:324 - Use
rpk config set <cfg> <value>
to change values below:INFO 2021-11-28 16:12:28,490 [shard 0] redpanda::main - application.cc:200 - Failure during startup: YAML::TypedBadConversion<std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000l> > > (yaml-cpp: error at line 42, column 24: bad conversion)
any value above 950400 throw above error.
The text was updated successfully, but these errors were encountered: