chennaji9 opened a new pull request, #11302:
URL: https://github.com/apache/rocketmq/pull/11302
<!-- Please make sure the target branch is right. In most case, the target
branch should be `develop`. -->
### Which Issue(s) This PR Fixes
Fixes #11286
### Brief Description
Adds `StoreTypeTest` (store module, JUnit 4, mirroring neighboring store
tests), pinning `StoreType.fromString`'s tolerant parsing contract — the path
behind the `storeType` broker configuration used by `CombineConsumeQueueStore`:
- `null` / `""` / all-whitespace input → empty set
- plain values: `"default"` → `{DEFAULT}`, `"defaultRocksDB"` →
`{DEFAULT_ROCKSDB}`
- case-insensitive matching with per-segment trimming: `" DEFAULT ;
DefaultRocksDB "` → both
- duplicates deduplicated (`"default;default;DEFAULT"` → one element)
- empty segments skipped (`"default;;defaultRocksDB"` → both)
- unknown tokens dropped (`"default;unknown;foo_bar"` → `{DEFAULT}`)
- mixed input `" default ; DEFAULTROCKSDB;default;unknown;; "` → exactly the
two real values
- each enum constant's `getStoreType()` string round-trips
No production code changes.
### How Did You Test This Change?
`mvn -B -pl store -am -Dtest=StoreTypeTest
-Dsurefire.failIfNoSpecifiedTests=false test` → BUILD SUCCESS, `Tests run: 8,
Failures: 0, Errors: 0, Skipped: 0`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]