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

[BUG] HTTP Sender queue never ends retrying #6313

Open
ppazos opened this issue Sep 24, 2024 · 1 comment
Open

[BUG] HTTP Sender queue never ends retrying #6313

ppazos opened this issue Sep 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ppazos
Copy link

ppazos commented Sep 24, 2024

Describe the bug

I have an HTTP Sender destination with Queue Messages = On Failure with 5 retries each 10000 ms.

There is an alert configured to send an email when the destination fails.

When I get a 400 from the HTTP, the messages is queued and retried.

What was strange is that I received about 700 emails because of the alert, and all were because of a single message failed.

So the retry wasn't just retrying 5 times and then marking the destination with ERROR, the message was queried and retried infinitely.

To Reproduce

Steps to reproduce the behavior:

  1. Create a channel with an HTTP Sender
  2. Set the queue messages to on failure with 5 retries and each 10000ms
  3. Create an alert that sends an email when the destination fails
  4. Configure the server to always return a 400 error
  5. Deploy and send a message to the channel
  6. Check the destination is always queued and also check the emails received

Expected behavior
It should retry 5 times and then mark the destination with ERROR.

Actual behavior
It didn't stop retrying.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS:Linux Mint
  • Java Distribution/Version OpenJDK 11
  • Connect Version 4.5.0

Workaround(s)
Removed queue messages

@ppazos ppazos added the bug Something isn't working label Sep 24, 2024
@Shurazi
Copy link

Shurazi commented Sep 28, 2024

With your configuration, what happens is that the connector retries 5 times and then queues the message. A queued message will retry forever. Since you do not want your messages to retry forever, you should not queue the messages at all.

If you want your connector to retry 5 times and then error, you should set it to Queue Messages - Never and then set the Retry Count to 5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants