Aias00 opened a new issue, #6809:
URL: https://github.com/apache/shenyu/issues/6809
- severity: Medium; files: `mappers/meta-data-sqlmap.xml:154-163`
- description: Unlike `pathExisted` (which filters `path AND namespace_id`),
this query has no `namespace_id` filter, so it scans every `meta_data` row
whose `path` matches across all namespaces. `path` is unindexed (PERF-A9) →
full table scan; `NOT IN` with a list further inhibits index usage. Also a
correctness concern: path-uniqueness is supposed to be per-namespace.
- impact: Each call walks the whole `meta_data` table; correctness drift
across namespaces.
- suggested_fix: Add `AND namespace_id = #{namespaceId}` and index
`(namespace_id, path)`; rewrite `NOT IN` as `NOT EXISTS`.
- confidence: High
---
_Identified during the 2026-08-02 deep re-scan; full list in
[`docs/scan2-2026-08-02/06-medium-tiers.md`](docs/scan2-2026-08-02/06-medium-tiers.md)._
--
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]