java-control-plane
java-control-plane copied to clipboard
Delta XDS Fails to Apply Correct Configuration Upon Reconnecting to Control Plane
trafficstars
I am working on implementing delta XDS using a java control plane. I am using the setSnapshot method in SimpleCache to send the dynamic configuration to the envoy proxy over GRPC. The api_type in the envoy configuration is set to DELTA_GRPC.
Steps to Reproduce the Issue
- Start the xDS server.
- Create an Envoy proxy with a bootstrap configuration to connect to the xDS server.
- Submit a snapshot using
SimpleCache.setSnapshotwith the cluster namecluster-x. - Verify that the configuration dump details for
cluster-xare present as expected. - Shut down the xDS server.
- Restart the xDS server.
- Submit another snapshot using
SimpleCache.setSnapshotwith the cluster namecluster-y. - Verify that the configuration dump details for both
cluster-xandcluster-yare present.
Expectations
The cluster named cluster-x should have been removed. This behavior is observed when the xDS server state remains unchanged without restarting.