osm icon indicating copy to clipboard operation
osm copied to clipboard

Potential incorrectness when proxy rapidly connect and disconnect to the control plane

Open allenlsy opened this issue 2 years ago • 0 comments

Bug description:

When a proxy sends connect and disconnect request to the registry almost simultaneously, the end result is indeterministic. It will depends on sequence that requests are processed. This may lead to incorrect result.

Possible solution is to associate a nonce or version number to the requests.

Discussion in previous PR here.

Related issue: https://github.com/openservicemesh/osm/issues/4783

Affected area (please mark with X where applicable):

  • Install [ ]
  • SMI Traffic Access Policy [ ]
  • SMI Traffic Specs Policy [ ]
  • SMI Traffic Split Policy [ ]
  • Permissive Traffic Policy [ ]
  • Ingress [ ]
  • Egress [ ]
  • Envoy Control Plane [x]
  • CLI Tool [ ]
  • Metrics [ ]
  • Certificate Management [ ]
  • Sidecar Injection [ ]
  • Logging [ ]
  • Debugging [ ]
  • Tests [ ]
  • Demo [ ]
  • CI System [ ]

Expected behavior:

When the proxy sends connect and disconnect requests simultaneously, the end result should be consistent according to the sequence of requests from the proxy

allenlsy avatar Jul 28 '22 19:07 allenlsy