Current Behavior
Discovery registry implementations such as Eureka and Nacos already read the props entry from instance metadata and store it in DiscoveryUpstreamData.props.
However, when the divide plugin converts DiscoveryUpstreamData to runtime Upstream, it only reads built-in properties such as warmup, gray, and healthCheckEnabled. Other custom properties are discarded.
As a result, custom load balancers cannot access discovery upstream extension properties from Upstream.getMetadata(), even though Upstream already provides a metadata field.
Expected Behavior
Parsed discovery upstream props should be preserved as runtime Upstream.metadata during divide upstream conversion.
This keeps the existing props extension channel and does not introduce full registry metadata passthrough.
Use Case
Custom load balancers should be able to read extension properties such as az, version, or grayTag from Upstream.getMetadata() when those properties are provided inside discovery upstream props.
Environment
- Apache ShenYu master branch
- divide plugin discovery upstream handling
Current Behavior
Discovery registry implementations such as Eureka and Nacos already read the
propsentry from instance metadata and store it inDiscoveryUpstreamData.props.However, when the divide plugin converts
DiscoveryUpstreamDatato runtimeUpstream, it only reads built-in properties such aswarmup,gray, andhealthCheckEnabled. Other custom properties are discarded.As a result, custom load balancers cannot access discovery upstream extension properties from
Upstream.getMetadata(), even thoughUpstreamalready provides a metadata field.Expected Behavior
Parsed discovery upstream
propsshould be preserved as runtimeUpstream.metadataduring divide upstream conversion.This keeps the existing
propsextension channel and does not introduce full registry metadata passthrough.Use Case
Custom load balancers should be able to read extension properties such as
az,version, orgrayTagfromUpstream.getMetadata()when those properties are provided inside discovery upstreamprops.Environment