You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by "Sean-Walker0 (via GitHub)" <gi...@apache.org> on 2026/10/01 00:19:14 UTC

[PR] fix(admin): keep the namespace id in the proxy selector listAllData response [shenyu]

Sean-Walker0 opened a new pull request, #7387:
URL: https://github.com/apache/shenyu/pull/7387

   <!-- Describe your PR here; e.g. Fixes #issueNo -->
   Found by code audit (no existing issue; happy to file one if maintainers prefer).
   
   `ProxySelectorServiceImpl#listAllData` builds a `ProxySelectorVO` from every `ProxySelectorDO` but never copies the namespace id, while its sibling `listByPage` in the same file does (`vo.setNamespaceId(proxySelectorDO.getNamespaceId())`). The list-all response therefore reports `namespaceId: null` for every proxy selector even though the rows are namespaced.
   
   The same read-path field drop was fixed for `MetaDataTransfer` write paths in #7324; this is the proxy-selector variant.
   
   <!--
   Thank you for proposing a pull request. This template will guide you through the essential steps necessary for a pull request.
   -->
   Make sure that:
   
   - [x] You have read the [contribution guidelines](https://shenyu.apache.org/community/contributor-guide).
   - [x] You submit test cases (unit or integration tests) that back your changes.
   - [x] Your local test passed `./mvnw test -pl shenyu-admin -am` and `./mvnw checkstyle:check -pl shenyu-admin` (module-scoped; full build left to CI).
   
   ### Modifications
   
   - `listAllData` now sets `vo.setNamespaceId(proxySelectorDO.getNamespaceId())`, mirroring `listByPage`.
   
   ### Verifying this change
   
   - New `ProxySelectorServiceTest#testListAllDataKeepsNamespaceId` builds a DO with `namespaceId=ns-1`, calls `listAllData`, and asserts the VO carries it. Fails on current master with `expected: <ns-1> but was: <null>`, passes with this change.
   
   ### Notes
   
   - Behavior change: the list-all proxy selector API response now carries the stored `namespaceId` instead of `null`.
   - Incidental finding (not touched here): the `DiscoveryDTO` embedded in the same response is produced by `DiscoveryTransfer#mapToDTO(DiscoveryDO)`, which also drops `namespaceId` — addressed separately to keep this PR single-purpose.
   - Orthogonality: no open PR modifies `ProxySelectorServiceImpl` (verified via keyword search and per-PR file audit).


-- 
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: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(admin): keep the namespace id in the proxy selector listAllData response [shenyu]

Posted by "Aias00 (via GitHub)" <gi...@apache.org>.
Aias00 commented on PR #7387:
URL: https://github.com/apache/shenyu/pull/7387#issuecomment-6358894248

   Ping on state: this PR is approved on the code, but the required checks are red and it cannot be merged yet.
   
   The failing jobs are `e2e` / `e2e-case` / `list-contract` / `native-sql`, which are currently failing across the repository and are tracked in #7970. The `build` job in this run does not fail on compilation: it stops at the gate step that consumes the e2e result (`[[ "failure" == "success" ]] || exit -1`), so there is nothing in this PR to fix for that.
   
   No code change is expected from you. Once the shared e2e problem is resolved, please rerun the failed jobs (or push a trivial rebase) so the required checks go green, and this can be merged.


-- 
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: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(admin): keep the namespace id in the proxy selector listAllData response [shenyu]

Posted by "Aias00 (via GitHub)" <gi...@apache.org>.
Aias00 commented on PR #7387:
URL: https://github.com/apache/shenyu/pull/7387#issuecomment-6391723705

   @Sean-Walker0 — a correction to the note I left here yesterday. The failures on this branch all predate the fix, so nothing in your change is implicated.
   
   `master` went green at `a8080ae`: the `SubscribeTest` fixture isolation (#8092), the MQTT session scoping (#8093) and the `pr_build` dependency fix (#8075) all landed, and the latest `ci.yml`, `integrated-test.yml` and `CodeQL` runs on `master` are all success.
   
   That means the red checks recorded here are stale. A push — an empty commit or a rebase, whichever is easier — re-runs them against the current baseline. I would not spend time reading the old logs.
   
   For the `e2e` jobs specifically: `/retest` on a run whose `shenyu-images` artifact has expired now falls back to a full rerun and rebuilds it (#8094 landed), so that path works again too.


-- 
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: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(admin): keep the namespace id in the proxy selector listAllData response [shenyu]

Posted by "Aias00 (via GitHub)" <gi...@apache.org>.
Aias00 commented on PR #7387:
URL: https://github.com/apache/shenyu/pull/7387#issuecomment-6381646241

   @Sean-Walker0 This PR is approved, but 10 checks are red: `e2e`, `e2e-storage (shenyu-e2e-case-storage, e2e-opengauss-compose)`, `e2e-case (e2e-cluster-zookeeper-compose, shenyu-e2e-case-cluster, :shenyu-examples-http)`, `e2e-case (e2e-grpc-sync-compose, shenyu-e2e-case-grpc, :shenyu-examples-grpc)` (+6 more).
   
   I inspected these lanes today and they fail for infrastructure reasons rather than on the diff — the `integrated-test` jobs die while starting their containers (Elasticsearch `/_cat/health` returning `000` until the job is cancelled), and the `http` lane also hits the known `CachePluginTest.testMemoryModle` / `testRedisModle` flake. The same jobs are red on master and on unrelated PRs right now.
   
   Please rebase onto `master` and push (or ask for a re-run) so the checks execute again. If a case is still failing on a fresh run, paste the test name and I'll look properly.


-- 
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: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(admin): keep the namespace id in the proxy selector listAllData response [shenyu]

Posted by "Aias00 (via GitHub)" <gi...@apache.org>.
Aias00 commented on PR #7387:
URL: https://github.com/apache/shenyu/pull/7387#issuecomment-6412977859

   Hi @Sean-Walker0, this PR is already **approved**, but it currently cannot be merged. Here is the blocker and what is needed:
   
   **Blocker**
   This PR is **approved** but blocked by `e2e` / `e2e-storage (opengauss)` / `e2e-grpc` failures. These are the shared e2e/storage compose jobs, which are known to be flaky (container/DB spin-up) and do not point at your namespace-id change.
   
   **What we need**
   Please rebase onto current `master` and re-run the e2e jobs; if a specific case fails reproducibly, share its name.
   
   Once the branch is up to date and CI is green, we will squash-merge it. Thanks!


-- 
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: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(admin): keep the namespace id in the proxy selector listAllData response [shenyu]

Posted by "Aias00 (via GitHub)" <gi...@apache.org>.
Aias00 commented on PR #7387:
URL: https://github.com/apache/shenyu/pull/7387#issuecomment-6415741095

   Additional root-cause detail for the e2e failure — it is not your change.
   
   The job log ends in a clean teardown (`Cleaning up orphan processes`, `Terminate orphan process`) with no Maven error, no assertion failure and no stack trace anywhere in it. That pattern means the compose stack never reached a ready state inside the job timeout, rather than a test that ran and failed.
   
   You are currently a long way behind master, which is the most likely reason the stack did not come up against current code.
   
   **What to do:** rebase onto current master and re-run. If the job still times out after the rebase, it is worth reporting as a CI infrastructure issue rather than debugging your diff.
   


-- 
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: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(admin): keep the namespace id in the proxy selector listAllData response [shenyu]

Posted by "Aias00 (via GitHub)" <gi...@apache.org>.
Aias00 merged PR #7387:
URL: https://github.com/apache/shenyu/pull/7387


-- 
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: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org