Skip to content

Fix maxMessagesPerPoll validation message in AbstractContainerOptions#1480

Merged
tomazfernandes merged 1 commit intoawspring:mainfrom
richardfearn:fix-AbstractContainerOptions-validation
Oct 4, 2025
Merged

Fix maxMessagesPerPoll validation message in AbstractContainerOptions#1480
tomazfernandes merged 1 commit intoawspring:mainfrom
richardfearn:fix-AbstractContainerOptions-validation

Conversation

@richardfearn
Copy link
Contributor

The message is used when validating maxMessagesPerPoll, but incorrectly refers to messagesPerPoll.

Fixes gh-1466

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

The validation message in the AbstractContainerOptions constructor refers to messagesPerPoll, but should say maxMessagesPerPoll.

💡 Motivation and Context

Validation message is incorrect and doesn't identify the parameter that needs correcting if a validation exception is thrown.

💚 How did you test it?

Tested with unit tests.

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • I updated reference documentation to reflect the change
  • All tests passing
  • No breaking changes

🔮 Next steps

…ons`

The message is used when validating `maxMessagesPerPoll`, but incorrectly
refers to `messagesPerPoll`.

Fixes awspringgh-1466
@github-actions github-actions bot added the component: sqs SQS integration related issue label Sep 22, 2025
@tomazfernandes tomazfernandes merged commit b3562aa into awspring:main Oct 4, 2025
5 checks passed
@tomazfernandes
Copy link
Contributor

Thanks for the PR @richardfearn! Looking forward to more!

tomazfernandes pushed a commit to tomazfernandes/spring-cloud-aws that referenced this pull request Nov 1, 2025
…ons` (awspring#1480)

The message is used when validating `maxMessagesPerPoll`, but incorrectly
refers to `messagesPerPoll`.

Fixes awspringgh-1466

(cherry picked from commit b3562aa)
tomazfernandes pushed a commit to tomazfernandes/spring-cloud-aws that referenced this pull request Nov 1, 2025
…ons` (awspring#1480)

The message is used when validating `maxMessagesPerPoll`, but incorrectly
refers to `messagesPerPoll`.

Fixes awspringgh-1466

(cherry picked from commit b3562aa)
MatejNedic pushed a commit that referenced this pull request Nov 6, 2025
…ons` (#1480) (#1509)

The message is used when validating `maxMessagesPerPoll`, but incorrectly
refers to `messagesPerPoll`.

Fixes gh-1466

(cherry picked from commit b3562aa)

Co-authored-by: Richard Fearn <richardfearn@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: sqs SQS integration related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AbstractContainerOptions validation should reference maxMessagesPerPoll, not messagesPerPoll

2 participants