dengliming opened a new pull request, #7251: URL: https://github.com/apache/shenyu/pull/7251
## Summary - Index metadata by the first literal path segment, with a fallback bucket for patterns beginning with `*`, `?`, or URI-template variables. - Publish immutable index snapshots on metadata changes; cold lookups no longer run AntPathMatcher against unrelated service prefixes. - Preserve AntPathMatcher's repeated-separator behavior by using equivalent path tokenization. - Add tests proving a cold request among 100 service prefixes invokes matching only for its own prefix, plus template/wildcard, update, removal and disabled-entry coverage. Fixes #6566 ## Validation - `./mvnw -pl shenyu-plugin/shenyu-plugin-global -am -DskipTests=false -Dcheckstyle.skip=false -Dtest=MetaDataPrefixIndexTest,MetaDataCacheTest -DfailIfNoTests=false test` (Java 17): passed, including Checkstyle. Index rebuilding is done on configuration changes. Routes sharing the same first segment, and patterns without a literal first segment, still require scanning their candidate bucket. Cache capacity and wildcard specificity remain separate concerns tracked by #6565 and #6723. -- 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]
