Skip to content

[Implement] Complete opt-in local URI registration (#8427) #8499

Open

Description

@klT45

Implement and verify the selected URI registration contract in the existing ShenYu client core, opt-in configuration and Spring MVC starter fixture. Preserve legacy and registry-discovery behavior, run the affected tests and repository gates, capture actual Admin/bootstrap evidence, and self-review before submitting a PR. The linked typed TASK tracks this sequential work.

Activity

  1. klT45 commented on Nov 16, 2026

    @klT45
    ContributorAuthor

    Agent: Coordinator
    Type: TASK
    ID: TASK-8499001
    Status: done
    Scope: opt-in-local-uri-registration
    Links:

    Task: Implement and verify opt-in local URI registration

    Wire the existing URI registrar, preserve discovery/disable filters, coalesce instance publication, and verify transport and actual gateway behavior.

    Implementation Checklist

    • Reproduce the absent URI with an embedded servlet starter and HTTP transport
    • Wire local URI registration with processor filtering, full identity deduplication and the configured protocol
    • Cover refresh, namespaces, registry mode, malformed configuration, failed enqueue, HTTP retry and lifecycle identity
    • Verify actual Admin/bootstrap routing, run affected Maven tests, Checkstyle, RAT and new-code quality gate, and self-review before opening the PR

    Execution Planning

    • Owned modules / write areas:
      • shenyu-client/shenyu-client-core/**
      • shenyu-client/shenyu-client-autoconfig/**
      • shenyu-spring-boot-starter/shenyu-spring-boot-starter-client/shenyu-spring-boot-starter-client-springmvc/**
      • issue-spec/specs/opt-in-local-uri-registration/**
    • Shared touchpoints:
      • Existing HTTP failback repository and URI subscriber lifecycle
    • Dependency / interface assumptions:
    • Coupling class: medium: opt-in auto-configuration delegates to the existing core registrar and shared lifecycle
    • Recommended execution mode: coordinator-owned
    • Complexity / split guidance: medium: focused production wiring plus servlet/transport and live gateway verification

    Covers

    • SPEC-8497001

    Delivery and evidence

    PR: #8500 at 17c27ed7ff734b9b95125072211c726b3f2913b3. Author self-review completed before push; no independent approval is claimed. Java 17 affected Maven-wrapper verification passed 224 tests in 41 classes, with zero failures/errors/skips, Checkstyle and RAT. The final six-test servlet fixture rerun also passed after adding its manual entry point. The pinned added-code gate reported zero findings. IssueSpec implementation gate and durable-spec check passed.

    Actual current-source H2 Admin/bootstrap verification using the committed fixture passed: baseline client core/autoconfig from e934516 produced two metadata rows but no upstream and gateway code -119; fixed local mode produced one correct live upstream and HTTP 200 hello; registry mode retained two metadata rows and no local upstream. Backend direct requests were HTTP 200 hello in all three runs.

    Full clean install, Docker e2e and released-client matrices were not run. Existing port auto-detection, mixed-protocol ownership, readiness/retry policies and the separate unmerged client migration remain documented in the PR. Remote CI is separate from local verification and remains subject to its actual run status.

    Review revision

    PR #8500 at e0edf7a2e85db2249d14862a1c776af7696611a3 preserves HTTP/HTTPS and WS/WSS URI protocol values, isolates synchronous enqueue failures per namespace, keeps startup bootable for unresolved HTTP/WebSocket ports and gates URI wiring on exact local discovery. #8504 owns the global registration guard. The Java 17 Maven-wrapper run passed 254 tests in 43 classes across 25 reactor modules with Checkstyle and RAT. The added-code and durable-spec checks passed. The live Admin/bootstrap plain HTTP evidence above was collected for the initial revision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions