Closed duglin closed 7 years ago
Hey duglin!
Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA.
@duglin PR title has a TYPO: conurrent should be concurrent
@jmrodri fixed! thanks
just one more review needed
Not sure I count but LGTM :)
Added text about orphan mitigation per the weekly meeting.
I changed the error code from 422 to "409 Conflict" - seemed more appropriate, but what do others think?
@duglin 409 Conflict
does sound more appropriate. 👍
reviews needed
updated and ready for reviews
ready for next round of reviews
The proposal defines a fixed error body. A broker can neither change the description nor add additional data that might be useful to identify why there is a conflict. Can we make this a bit more flexible?
@fmui See: https://github.com/duglin/servicebroker/blob/6cbba3d423f3d7e5ebadd2e650f245ce531e1e2f/spec.md#broker-errors it says: "For error responses, the following fields are valid. Others will be ignored. ". While it would be nice if it was a bit clearer, I view that as saying the broker may include other fields (extensions) but they might be ignored by the platform. Does that cover it?
Not really. The proposal says:
"...then the broker MUST reject the request with an HTTP 409 Conflict
and the following body: ..."
This is much more restrictive than defined in the Broker Error section. It doesn't even allow to return a different description text. I don't see a reason why this error should have stricter rules than other errors.
I don't think it was meant to be more restrictive. I think an generic "error PR" to make us more consistent would be good to answer these concerns. In particular:
and we should touch all error text to ensure consistency.
+1 to allowing for additional fields. We have already run into some issues because brokers are built on platforms that provide some fixed fields for all error responses.
@fmui can we clarify all of this in a follow-on PR? I'd prefer to keep this one more focused on just this one usecase.
I have a few concerns here.
I reverted back to 422 and decided to add the "extensibility" text into this PR instead of creating a new one. See what people think.
@duglin merge conflict!
rebased
From the f2f: Proposal: In the “Blocking Operations” section change it to say “...that mutate the same resource…” instead of “...that act on the same set of resources...”
&& creating Binding is not necessary considered mutating an Instance, it’s a Broker’s choice
&& move “Blocking Operations” out from under Async
&& change 422 in createBinding response status code table to include this concurrency stuff
Signed-off-by: Doug Davis dug@us.ibm.com