17389: Adds X-Keep-Storage-Classes-Confirmed header to responses on success.
authorLucas Di Pentima <lucas.dipentima@curii.com>
Fri, 18 Jun 2021 11:50:07 +0000 (08:50 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Fri, 18 Jun 2021 11:50:07 +0000 (08:50 -0300)
commitd02322793e6182040afd5b4f3964da9bd0e177e5
tree36ec2a1228fbdfa9f19d42a8b0d7b7a883c9da33
parent9f06f5b2e5f5549c61458db7f401fc2e2dc7dd0b
17389: Adds X-Keep-Storage-Classes-Confirmed header to responses on success.

Also, don't treat partial success (ie: replicas written > 0) as success to
let the client decide what to do, as this would require a GoSDK API change on
Put methods, or the use of a special new method just for keepproxy that
returns fulfilled storage classes information.
In the case of partial successes from the client point of view, the only
thing that a client can do is retry the request with the same keepproxy, and
that would render the same result.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>
services/keepproxy/keepproxy.go
services/keepproxy/keepproxy_test.go