Skip to content

Commit

Permalink
Mas 3.0.13 preview (#1126)
Browse files Browse the repository at this point in the history
* planned combination for 3.0.13

basho/eleveldb#269 to be added once issues are resolved

* Release preparation - 3.0.13

* For testing of fix to KV1847

* Update with reference to conditional PUT changes

* Update riak-chkconfig

As per #1125

* Update following merge

* Tags for release
  • Loading branch information
martinsumner committed Feb 4, 2023
1 parent 50e687b commit 967478a
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 12 deletions.
20 changes: 20 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -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 <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:
Expand Down
6 changes: 3 additions & 3 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -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, [
Expand Down Expand Up @@ -46,7 +46,7 @@
]}
]}.

{relx, [{release, {riak, "3.0.12"},
{relx, [{release, {riak, "3.0.13"},
[kernel,
stdlib,
lager,
Expand Down
18 changes: 9 additions & 9 deletions rebar.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -103,15 +103,15 @@
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",
{ref,"5e4a240791f6bbadc9b3bce4653ba08cb9aeb0ce"}},
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",
Expand All @@ -123,31 +123,31 @@
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",
{ref,"04e8cc7daa081c23be137b1eff2a6a3fb827f8e4"}},
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",
{ref,"bb75c2b8fd2e1074ffded60054f3a17b745957aa"}},
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",
Expand Down
3 changes: 3 additions & 0 deletions rel/files/riak-chkconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 967478a

Please sign in to comment.