diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 7019514d6..ed3d1af2f 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1,3 +1,23 @@ +# Riak KV 3.0.13 Release Notes + +This release is focused on improving the reliability of handoffs. The speed of handoffs is critical to the recovery times of nodes following failure, and also to the time necessary to expand or contract the cluster. Controlling the speed can be managed by increasing concurrency (using `riak admin transfer-limit `), but this can often lead to handoff unreliability due to timeouts. + +- The main [handoff process has been refactored](https://github.com/basho/riak_core/pull/995) to remove some deprecated messages, simplify the naming of configuration items, improve the logging of handoffs and increase the frequency of handoff sync messages. More frequent sync messages should make the flow of handoffs from the sender more responsive to pressure at the receiver. + +- On joining a node to a cluster, there will now be an attempt to exchange metadata with the joining node before the join is staged. This should reduce the probability of events failing immediately after join, as bucket types had not yet been replicated to the joining node. + +- A [new configuration option has been added](https://github.com/basho/riak_kv/blob/fbb53630645e53af053228d526caa3c86f304066/priv/riak_kv.schema#L1469-L1487) to change Riak to only commit read repair on primary (not fallback) vnodes. In short-term failures, enabling this option will reduce the time taken for hinted handoff to complete following recovery of a failed node - as now the handoff will contain only objects changed for that partition during the outage. With the default setting of `disabled`; fallback nodes will also contain each object fetched during the outage, in-line with the behaviour in previous releases. + +- A [fix has been implemented in leveled](https://github.com/martinsumner/leveled/pull/390) to reduce failures and inefficiencies when re-building the ledger key store from the object Journal, in situations where there has been a high volume of object churn. + +- Some [helper functions have been added to riak_client](https://github.com/basho/riak_kv/blob/fbb53630645e53af053228d526caa3c86f304066/src/riak_client.erl#L949-L993), to simplify some operational tasks. These functions can be called from `riak remote_console`, e.g. `riak_client:repair_node().` - which replaces the series of commands previously required to run partition repair across all partitions on a node. `riak_client:tictacaae_suspend_node().` may be used to suspend Tictacaae AAE exchanges on a node following a failure, so that they can be re-enabled using `riak_client:tictacaae_resume_node().` once handoffs have been completed. + +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: diff --git a/rebar.config b/rebar.config index d8b90e00a..3ba4804b7 100644 --- a/rebar.config +++ b/rebar.config @@ -11,13 +11,13 @@ {deps, [ {lager_syslog, {git, "https://github.com/basho/lager_syslog.git", {tag, "3.1.1"}}}, {cluster_info, {git, "https://github.com/basho/cluster_info.git", {tag, "2.1.0"}}}, - {riak_kv, {git, "https://github.com/basho/riak_kv.git", {tag, "riak_kv-3.0.12"}}}, + {riak_kv, {git, "https://github.com/basho/riak_kv.git", {tag, "riak_kv-3.0.13"}}}, {riak_auth_mods, {git, "https://github.com/basho/riak_auth_mods.git", {tag, "riak_kv-3.0.10"}}}, {riaknostic, {git, "https://github.com/basho/riaknostic.git", {tag, "riak_kv-3.0.10"}}}, % {yokozuna, {git, "https://github.com/basho/yokozuna.git", {branch, "develop-3.0"}}}, - {riak_repl, {git, "https://github.com/basho/riak_repl.git", {tag, "riak_kv-3.0.12"}}} + {riak_repl, {git, "https://github.com/basho/riak_repl.git", {tag, "riak_kv-3.0.13"}}} ]}. {project_plugins, [ @@ -46,7 +46,7 @@ ]} ]}. -{relx, [{release, {riak, "3.0.12"}, +{relx, [{release, {riak, "3.0.13"}, [kernel, stdlib, lager, diff --git a/rebar.lock b/rebar.lock index 81c271e1e..94fb82039 100644 --- a/rebar.lock +++ b/rebar.lock @@ -50,7 +50,7 @@ 2}, {<<"kv_index_tictactree">>, {git,"https://github.com/martinsumner/kv_index_tictactree.git", - {ref,"4cd9ab1e20772db36f593879272dff5f02fbbeda"}}, + {ref,"1d982aeaf6bd57c6c00fcad67e90c27c58edcfd1"}}, 1}, {<<"lager">>, {git,"https://github.com/erlang-lager/lager.git", @@ -62,7 +62,7 @@ 0}, {<<"leveled">>, {git,"https://github.com/martinsumner/leveled", - {ref,"0c337b881e60d06f7441ec036ffc7e47acb5682e"}}, + {ref,"ee6c166b9f49884340970109f5365f581db87688"}}, 2}, {<<"lz4">>, {git,"https://github.com/martinsumner/erlang-lz4", @@ -103,7 +103,7 @@ 1}, {<<"riak_api">>, {git,"https://github.com/basho/riak_api.git", - {ref,"53ec7feb441c910adf80d55d4a61c9989fd1afca"}}, + {ref,"0f9c5783f87f3c1797fa7b3ca5088c6c3a74a13f"}}, 1}, {<<"riak_auth_mods">>, {git,"https://github.com/basho/riak_auth_mods.git", @@ -111,7 +111,7 @@ 0}, {<<"riak_core">>, {git,"https://github.com/basho/riak_core.git", - {ref,"5da9f752949779b0cd28d7312fb4224a566b5a4a"}}, + {ref,"ad546ed1ce85b48aada8446cc2ce75a129103b32"}}, 1}, {<<"riak_dt">>, {git,"https://github.com/basho/riak_dt.git", @@ -123,7 +123,7 @@ 2}, {<<"riak_kv">>, {git,"https://github.com/basho/riak_kv.git", - {ref,"1e19c3238967b8e4784ebc35e44027654399e411"}}, + {ref,"e04bc998e2f48e083a875e290ca242f2d699830d"}}, 0}, {<<"riak_pb">>, {git,"https://github.com/basho/riak_pb.git", @@ -131,11 +131,11 @@ 2}, {<<"riak_pipe">>, {git,"https://github.com/basho/riak_pipe.git", - {ref,"524b76d4605da0a3dda27c4d0e08258d7ed53e69"}}, + {ref,"bd2240266acfa824ea1fe5f3a2b2192e92e822d3"}}, 1}, {<<"riak_repl">>, {git,"https://github.com/basho/riak_repl.git", - {ref,"bfcbf630cdb925b734a31072998926e14a8bb96e"}}, + {ref,"dd890e83498fcb254de485e2a3aa195f67fbe59c"}}, 0}, {<<"riak_sysmon">>, {git,"https://github.com/basho/riak_sysmon.git", @@ -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,"20cfdf4eb1f2e2f8521fd6c974d7b3e2bd9db728"}}, 1}, {<<"riaknostic">>, {git,"https://github.com/basho/riaknostic.git", diff --git a/rel/files/riak-chkconfig b/rel/files/riak-chkconfig index 9d521460e..649e6e8e0 100644 --- a/rel/files/riak-chkconfig +++ b/rel/files/riak-chkconfig @@ -21,3 +21,6 @@ CODE=" try $BINDIR/erl -noshell -boot start_clean -eval "$CODE" echo $CUTTLE_CONF + +# No explicit exit, assumed to have succeeded +exit 0