Skip to content

Commit

Permalink
Update with reference to conditional PUT changes
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsumner committed Jan 27, 2023
1 parent 911df43 commit c9a629f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ This release is focused on improving the reliability of handoffs. The speed of

There are still [outstanding](https://github.com/basho/riak_kv/issues/1846) [issues](https://github.com/basho/riak_core/issues/996) related to handoffs.

The release also includes a [significant change to the HTTP API](https://github.com/basho/riak_kv/issues/1849). In previous releases PUT, POST and DELETE requests would all GET the object prior to starting the PUT process. This is in contrast to the Protocol Buffers API which would only GET the object in case where conditions were passed in the put (e.g. `if_none_match` or `if_not_modified`). These two APIs now have the same non-functional behaviour, the HTTP API will no longer request a GET before the PUT if the request does not contain a condition (e.g. using `If-None-Match`, `If-Match`, `If-Modified-Since` as well as a new bespoke condition `X-Riak-If-Not-Modified`).

A vector clock being passed on a PUT using the `X-Riak-If-Not-Modified` header, will return a `409:Conflict` should the passed vector clock not match the clock found prior to updating the object. This will work as the PB API `if_not_modified` option. This is still an eventually consistent condition, parallel updates may still lead to siblings when `{allow_mult, true}`.

# Riak KV 3.0.12 Release Notes

This is a general release of changes and fixes:
Expand Down
8 changes: 4 additions & 4 deletions rebar.lock
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
0},
{<<"leveled">>,
{git,"https://github.com/martinsumner/leveled",
{ref,"cf3d8f5abb72133bd3868f37b9cf0ae628129758"}},
{ref,"ee6c166b9f49884340970109f5365f581db87688"}},
2},
{<<"lz4">>,
{git,"https://github.com/martinsumner/erlang-lz4",
Expand Down Expand Up @@ -123,7 +123,7 @@
2},
{<<"riak_kv">>,
{git,"https://github.com/basho/riak_kv.git",
{ref,"54e23654b80e86edbb833157fd8f3a709bd70e26"}},
{ref,"ee491785179ee7adbc67a6ac5c2b2c81d1e168a7"}},
0},
{<<"riak_pb">>,
{git,"https://github.com/basho/riak_pb.git",
Expand All @@ -143,11 +143,11 @@
2},
{<<"riakc">>,
{git,"https://github.com/basho/riak-erlang-client",
{ref,"467deeb1eee6830a6945249bc9745900766d77c0"}},
{ref,"3b6ad6e92dcb55833e9add829b2871be8468a68e"}},
2},
{<<"riakhttpc">>,
{git,"https://github.com/basho/riak-erlang-http-client",
{ref,"a99e0401ff670177f8a1a00d089db6970448ac66"}},
{ref,"5221f8646fe075149da427ea6b9ceeda9667c438"}},
1},
{<<"riaknostic">>,
{git,"https://github.com/basho/riaknostic.git",
Expand Down

0 comments on commit c9a629f

Please sign in to comment.