Skip to content

[ISSUE #10838] fix(route): skip malformed ordered topic entries - #11205

Open
beautyarbutin wants to merge 1 commit into
apache:developfrom
beautyarbutin:fix/order-topic-route-validation
Open

beautyarbutin wants to merge 1 commit into
apache:developfrom
beautyarbutin:fix/order-topic-route-validation

Conversation

@beautyarbutin

Copy link
Copy Markdown
Contributor

Which Issue(s) This PR Fixes

Brief Description

Validate each ordered-topic routing entry before converting it into message queues in both the client and proxy paths. Entries with a missing broker name, missing queue count, or non-numeric queue count are skipped, while valid entries continue to produce ordered queues.

Regression tests cover mixed malformed and valid orderTopicConf entries for both conversion paths.

How Did You Test This Change?

  • mvn -B -ntp -pl client -am -DskipITs -Dtest=MQClientInstanceTest -Dsurefire.failIfNoSpecifiedTests=false -Dspotbugs.skip=true test (30 tests passed)
  • mvn -B -ntp -pl proxy -DskipITs -Dtest=MessageQueueSelectorTest -Dspotbugs.skip=true test (3 tests passed)
  • Checkstyle completed with 0 violations in the tested modules.

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.

Malformed orderTopicConf crashes client and proxy route conversion

1 participant