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

fix(queue): Fix SqlQueue#doContainsMessage to handle queues with more than 100 items (backport #4648) #4683

Merged
merged 1 commit into from Mar 26, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Mar 23, 2024

SqlQueue#doContainsMessage doesn't process more than 1 batch because of an incorrect loop inside. When the last element in the batch is processed (ResultSet#next returns false), the following invocation of ResultSet#getRow will return 0. No matter how many rows were processed before.

Basically, this PR is just a copy of #4184 with addressed comments. But #4184 is abandoned so opened this one. Kudos to Ivor for the original PR


This is an automatic backport of pull request #4648 done by [Mergify](https://mergify.com).

…more than 100 items (#4648)

`SqlQueue#doContainsMessage` doesn't process more than 1 batch because of an incorrect loop inside.
When the last element in the batch is processed (`ResultSet#next` returns `false`), the following invocation of `ResultSet#getRow` will return 0. No matter how many rows were processed before.

Basically, this PR is just a copy of #4184 with addressed comments.
But #4184 is abandoned so opened this one. Kudos to Ivor for the original PR

Co-authored-by: Jason <mcintoshj@gmail.com>
(cherry picked from commit 0a52909)
@jasonmcintosh jasonmcintosh added the ready to merge Approved and ready for merge label Mar 26, 2024
@mergify mergify bot added the auto merged Merged automatically by a bot label Mar 26, 2024
@mergify mergify bot merged commit 30454a2 into release-1.32.x Mar 26, 2024
4 checks passed
@mergify mergify bot deleted the mergify/bp/release-1.32.x/pr-4648 branch March 26, 2024 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merged Merged automatically by a bot ready to merge Approved and ready for merge target-release/1.32
Projects
None yet
3 participants