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

[FIXED] check of the backoff and max delivery configs #6154

Conversation

Luisgustavom1
Copy link
Contributor

@Luisgustavom1 Luisgustavom1 commented Nov 20, 2024

Match the check of the backoff and maxDeliver configs with the official documentation -> https://docs.nats.io/nats-concepts/jetstream/consumers#:~:text=The%20sequence%20length,MaxDelivery

Documentation, tell that Backoff config must be less than or equal to MaxDelivery. But we were checking the opposite

Signed-off-by: Luisao [email protected]

@Luisgustavom1 Luisgustavom1 requested a review from a team as a code owner November 20, 2024 15:42
@Luisgustavom1 Luisgustavom1 changed the title [FIXED] check of the backoff and max delivery configs [WIP] check of the backoff and max delivery configs Nov 20, 2024
@Luisgustavom1 Luisgustavom1 changed the title [WIP] check of the backoff and max delivery configs [WIP] [FIXED] check of the backoff and max delivery configs Nov 20, 2024
@Luisgustavom1 Luisgustavom1 force-pushed the fix_backoff_and_max_deliver_validation branch from e8ad67c to cc5735d Compare November 20, 2024 15:50
Copy link
Member

@neilalexander neilalexander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution, LGTM!

@neilalexander
Copy link
Member

Is [WIP] because you are planning future changes to this PR?

@Luisgustavom1 Luisgustavom1 force-pushed the fix_backoff_and_max_deliver_validation branch from cc5735d to 7470975 Compare November 20, 2024 17:31
@Luisgustavom1 Luisgustavom1 changed the title [WIP] [FIXED] check of the backoff and max delivery configs [FIXED] check of the backoff and max delivery configs Nov 20, 2024
@Luisgustavom1
Copy link
Contributor Author

Luisgustavom1 commented Nov 20, 2024

Is [WIP] because you are planning future changes to this PR?

Yes, I'm writing one more test case, now everything is done! tks

@derekcollison derekcollison merged commit 2b8481e into nats-io:main Nov 20, 2024
2 checks passed
neilalexander added a commit that referenced this pull request Nov 22, 2024
kozlovic added a commit to nats-io/nats.c that referenced this pull request Nov 23, 2024
Since this server PR: nats-io/nats-server#6154
the error occurs only if MaxDeliver is specified, but it is strictly
lower than BackOff length. So fix the test by lowering it to 1.

Signed-off-by: Ivan Kozlovic <[email protected]>
levb pushed a commit to nats-io/nats.c that referenced this pull request Nov 24, 2024
Since this server PR: nats-io/nats-server#6154
the error occurs only if MaxDeliver is specified, but it is strictly
lower than BackOff length. So fix the test by lowering it to 1.

Signed-off-by: Ivan Kozlovic <[email protected]>
levb pushed a commit to levb/nats.c that referenced this pull request Dec 9, 2024
Since this server PR: nats-io/nats-server#6154
the error occurs only if MaxDeliver is specified, but it is strictly
lower than BackOff length. So fix the test by lowering it to 1.

Signed-off-by: Ivan Kozlovic <[email protected]>
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

Successfully merging this pull request may close these issues.

3 participants