Skip to content
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

Consumer crashed if delay is more than maxWaitTime #396

Open
maks-rafalko opened this issue Nov 22, 2024 · 0 comments
Open

Consumer crashed if delay is more than maxWaitTime #396

maks-rafalko opened this issue Nov 22, 2024 · 0 comments

Comments

@maks-rafalko
Copy link

Default maxWaitTime is 3000ms. When I set a delay to, for example, 5 seconds, this exception is thrown and consumer is crashed.

// this returns control to KafkaJS while we wait for the scheduled timeout to fire
throw new WaitBeforeProcessing(waitTime, topic, partition);

Expected behavior

Consumer continue working, delaying execution even if delay > maxWaitTime

Actual behavior

Consumer is crashed:

[Consumer] Crash: KafkaJSNonRetriableError: Waiting 4970ms before resuming processing messages from xxx-group-id-retry-1

Steps to reproduce the behavior

Just set delays more than maxWaitTime. For example delay is 5s, while default maxWaittime is 3000ms.

Additional Specs

  • Node.js version 20.15.1
  • Kafka version: latest
  • KafkaJS version: 2.2.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant