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
I'm trying to run bundle exec karafka-web install while using "Serverless" Redpanda's Cloud (link).
But getting a (vague) error: karafka-rdkafka-0.17.6/lib/rdkafka/error.rb:86:in `validate!': Broker: Configuration is invalid (invalid_config) (Rdkafka::RdkafkaError)
After some puts debugging (outputting error_string and result_namehere), I saw that broker returns 'retention.ms 3600000 is too small, must be at least 24h' and 'cannot set "segment.ms"' kind of errors, while trying to create topics like 'karafka_consumers_metrics'.
Expected behavior
Karafka-Web should be able to create needed topics on the cloud service.
Please provide kafka version and the output of karafka info or bundle exec karafka info if using Bundler.
❯ bundle exec karafka info
I, [2024-09-22T15:04:54.255195 #819318] INFO -- :
@@@ @@@@@ @@@
@@@ @@@ @@@
@@@ @@@ @@@@@@@@@ @@@ @@@ @@@@@@@@@ @@@@@@@@ @@@ @@@@ @@@@@@@@@
@@@@@@ @@@ @@@ @@@@@ @@@ @@@ @@@ @@@@@@@ @@@ @@@
@@@@@@@ @@@ @@@ @@@ @@@@ @@@ @@@ @@@@@@@ @@@ @@@
@@@ @@@@ @@@@@@@@@@ @@@ @@@@@@@@@@ @@@ @@@ @@@@ @@@@@@@@@@
I, [2024-09-22T15:04:54.255482 #819318] INFO -- : Karafka version: 2.4.12
Ruby version: ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-linux]
Rdkafka version: 0.17.6
Consumer groups count: 2
Subscription groups count: 2
Workers count: 5
Application client id: karafka
Boot file: <...>/karafka.rb
Environment: development
License: LGPL-3.0
I, [2024-09-22T15:04:54.255600 #819318] INFO -- : [waterdrop-806ff2150f53] Closing producer
I, [2024-09-22T15:04:54.255681 #819318] INFO -- : [waterdrop-806ff2150f53] Closing producer took 0.06 ms
Workaround
# before the application classmoduleKarafka::AdminmoduleClassMethodPatchesdefcreate_topic(*args)options=args.extract_options!retention_ms=options.fetch(:'retention.ms',nil).to_ioptions[:'retention.ms']=[retention_ms,24.hours.in_seconds * 1_000].maxoptions=options.except(*%i[segment.mssegment.bytes])super(*args,options)endendclass << selfprependClassMethodPatchesendend
The text was updated successfully, but these errors were encountered:
I'm trying to run
bundle exec karafka-web install
while using "Serverless" Redpanda's Cloud (link).But getting a (vague) error: karafka-rdkafka-0.17.6/lib/rdkafka/error.rb:86:in `validate!': Broker: Configuration is invalid (invalid_config) (Rdkafka::RdkafkaError)
After some puts debugging (outputting
error_string
andresult_name
here), I saw that broker returns 'retention.ms 3600000 is too small, must be at least 24h' and 'cannot set "segment.ms"' kind of errors, while trying to create topics like 'karafka_consumers_metrics'.Expected behavior
Karafka-Web should be able to create needed topics on the cloud service.
Actual behavior
Obscure Broker Configuration error(s).
Steps to reproduce the problem
karafka.rb
connection lines:Your setup details
Please provide kafka version and the output of
karafka info
orbundle exec karafka info
if using Bundler.Workaround
The text was updated successfully, but these errors were encountered: