openservicebrokerapi / servicebroker

Open Service Broker API Specification
https://openservicebrokerapi.org/
Apache License 2.0
1.19k stars 433 forks source link

What error code to use for rejecting concurrent bind requests? #501

Closed kibbles-n-bytes closed 5 years ago

kibbles-n-bytes commented 6 years ago

The spec says that for the "concurrent requests that mutate the same resource", it is expected that the error response from the broker contains the "ConcurrencyError" error code. What about in the case that the broker is rejecting a concurrent bind request? Is it expected/acceptable for the broker to use this error code?

n3wscott commented 6 years ago

I would support expanding the error to cover both.

mattmcneeney commented 6 years ago

Agreed. Can you submit a PR @kibbles-n-bytes ?

mattmcneeney commented 5 years ago

The binding section in the spec now says:

Additionally, if the Service Broker rejects the request due to a concurrent request to create a Service Binding for the same Service Instance, then this error MUST be returned (see Blocking Operations).

Closing this!