Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge develop to s3-develop to pick up riak client changes #1282

Open
wants to merge 50 commits into
base: s3-develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
742bd56
Add devrel_matrix.yml
Feb 6, 2017
7b56bd4
Jenkins - update locked-deps for riak_ts_ee-1.6.0nightly20170207
Feb 7, 2017
f06173d
ts_simple_percentile: new module
hmmr Feb 5, 2017
8af3212
`git --local config` doesn't work as expected
hmmr Feb 11, 2017
2c147fe
whitespace cleanup
hmmr Feb 11, 2017
89a3e4b
ta_simple_invdist_funs: test both backends
hmmr Feb 11, 2017
07f2288
support PERCENTILE_DISC, _CONT
hmmr Feb 16, 2017
4ead64e
tests for MODE
hmmr Feb 16, 2017
868d85d
Jenkins - update locked-deps for riak_ts_ee-1.6.0nightly20170217
Feb 17, 2017
e689e42
ts_simple_invdist_funs: externally verify percentile calculations
hmmr Feb 17, 2017
5080dc7
Merge remote-tracking branch 'origin/develop' into riak_ts-develop
Feb 20, 2017
94bbcc5
rtdev-setup-releases: fix compatibility issues with older git versions
hmmr Feb 20, 2017
659f26f
further simplify and explain what we do git config for
hmmr Feb 21, 2017
0927f83
Jenkins - update locked-deps for riak_ts_ee-1.6.0nightly20170223
Feb 23, 2017
eb223d3
Merge branch 'riak_ts-develop' into feature-az-percentile
hmmr Feb 24, 2017
21040da
Merge branch 'develop' into feature-az-percentile
hmmr Feb 24, 2017
eb3cf62
Lock deps for riak_ts_ee-1.6.0d
Feb 24, 2017
958e628
ts_simple_invdist_funs: fix error messages to match updates to riak_kv
hmmr Feb 27, 2017
aa4b672
ts_simple_invdist_funs: also test on tables with desc keys
hmmr Feb 27, 2017
5482f67
Tweaks devrel scripts to work with different versions of git
Feb 27, 2017
d849fe3
Merge pull request #1274 from basho/bch-update-install-script
Feb 27, 2017
5f2ef6f
Move YZ tests to yokozuna repo
Feb 22, 2017
bbb85a2
Fix test failures caused by riak client not allowing list keys
Feb 28, 2017
5e3b102
Merge pull request #1270 from basho/feature-az-percentile
Feb 28, 2017
ccf2b5b
Merge pull request #1276 from basho/bch-adjust-list-key-test
Feb 28, 2017
58f7926
Merge pull request #1273 from basho/bch-move-yz-tests-2.2
Mar 1, 2017
9719631
Merge remote-tracking branch 'origin/develop-2.2' into bch-merge-with…
Mar 1, 2017
63f943b
Merge remote-tracking branch 'origin/riak_ts-develop' into bch-merge-…
Mar 1, 2017
0c1e5cf
Update previous = 2.2.0 and legacy = 2.0.8
Mar 1, 2017
f91efcd
Merge pull request #1278 from basho/bch-merge-with-2.2
fadushin Mar 2, 2017
e262719
Merge pull request #1281 from basho/bch-merge-ts-1.6-to-develop
fadushin Mar 2, 2017
6a23c82
updowngrade: better prepare riak.conf & caps to wait_until
hmmr Mar 3, 2017
d5c6bd6
Lock deps for riak_ee-2.3.0noblock1
Mar 3, 2017
626c4d5
Fix regular expression backslashes
macintux Mar 3, 2017
ff4d4e4
Merge pull request #1283 from basho/fix-az-make_updowngrade_work_for_…
macintux Mar 3, 2017
0e8656f
Fix for missing gset stats
fadushin Mar 4, 2017
7f2a551
Jenkins - update locked-deps for riak_ee-2.3.0nightly20170304
Mar 4, 2017
4ba9ac7
Added `lts` to basho_builds YAML
fadushin Mar 4, 2017
3ae320c
Re-add old kv679 test
russelldb Mar 7, 2017
e01d78c
Removed lts stanza I erroneously added before
fadushin Mar 8, 2017
4fa651c
Move to 2.0.9 for Legacy
JeetKunDoug Mar 14, 2017
3c7a2df
Set force_hashtree_upgrade to true
bsparrow435 Mar 15, 2017
520676a
Merge pull request #1293 from basho/bjs/bugfix/auto-upgrade-aae
JeetKunDoug Mar 15, 2017
d79be99
Remove unneeded code from riaknostic test
Mar 15, 2017
c252dd3
Increased concurrency and lowered sweep interval, while also widening…
fadushin Mar 15, 2017
dd4ca1e
Merge pull request #1294 from basho/fd-verify_aae-fix
fadushin Mar 15, 2017
9c2dfa7
Removed gproc version from stats, because we no longer rely on gproc
fadushin Mar 17, 2017
0176494
Add test for further dataloss edge case
russelldb Mar 20, 2017
1e7e94a
Add a more sophisticated equality check to verify
russelldb Apr 3, 2017
8170137
Merge pull request #1296 from russelldb/rdb-bet365/gh-kv679-fb-byz
JeetKunDoug Apr 5, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions basho_builds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
docker_rt_riak_test_config:
- version: current
product_version: current
product: "riak{% if ee == 'true' %}_ee{% endif %}"
- version: previous
product_version: 2.2.0
product: "riak{% if ee == 'true' %}_ee{% endif %}"
- version: legacy
product_version: 2.0.9
product: "riak{% if ee == 'true' %}_ee{% endif %}"
- version: 2.0.2
product_version: 2.0.2
product: "riak{% if ee == 'true' %}_ee{% endif %}"
- version: 2.0.4
product_version: 2.0.4
product: "riak{% if ee == 'true' %}_ee{% endif %}"
- version: 2.0.5
product_version: 2.0.5
product: "riak{% if ee == 'true' %}_ee{% endif %}"
20 changes: 11 additions & 9 deletions bin/rtdev-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,17 @@ cd $RT_DEST_DIR

echo " - Reinitializing git state"

## Some versions of git and/or OS require these fields
HAS_LOCAL=$(git config --local 2>&1 | grep unknown)
if [ -z "$HAS_LOCAL" ]; then
git config --local user.name "Riak Test"
git config --local user.email "[email protected]"
git config --local core.autocrlf input
git config --local core.safecrlf false
git config --local core.filemode true
fi
# Set the path to the root of the working tree. This prevents git to
# ascend the directory tree (and possibly mess with other
# repositories). That is, changes we are going to make with `git
# config` will only affect the rt repo we have just created.
GIT_WORK_TREE="$RT_DEST_DIR"
git config user.name "Riak Test"
git config user.email "[email protected]"
git config core.autocrlf input
git config core.safecrlf false
git config core.filemode true


git add --all --force .
git commit -a -m "riak_test init" --amend > /dev/null
Expand Down
26 changes: 13 additions & 13 deletions bin/rtdev-setup-releases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,24 @@ else
echo "No devdirs found. Not copying any releases."
fi

cd $RT_DEST_DIR
git init

## Some versions of git and/or OS require these fields
HAS_LOCAL=$(git config --local 2>&1 | grep unknown)
if [ -z "$HAS_LOCAL" ]; then
git config --local user.name "Riak Test"
git config --local user.email "[email protected]"
git config --local core.autocrlf input
git config --local core.safecrlf false
git config --local core.filemode true
fi
cd "$RT_DEST_DIR"
git init

# Set the path to the root of the working tree. This prevents git to
# ascend the directory tree (and possibly mess with other
# repositories). That is, changes we are going to make with `git
# config` will only affect the rt repo we have just created.
GIT_WORK_TREE="$RT_DEST_DIR"
git config user.name "Riak Test"
git config user.email "[email protected]"
git config core.autocrlf input
git config core.safecrlf false
git config core.filemode true

## this prevents priv/*.so files from being deleted by git clean -fd
## (the latter is executed in rtdev-current.sh):
echo "priv/" >.gitignore

git add --all --force .
git commit -a -m "riak_test init" > /dev/null

echo " - Successfully completed initial git commit of $RT_DEST_DIR"
8 changes: 8 additions & 0 deletions intercepts/riak_kv_bitcask_backend_intercepts.erl
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,11 @@ corrupting_get(Bucket, Key, ModState) ->

corrupt_binary(O) ->
crypto:rand_bytes(byte_size(O)).

always_corrupt_get(Bucket, Key, ModState) ->
case ?M:get_orig(Bucket, Key, ModState) of
{ok, BinVal0, UpdModState} ->
BinVal = corrupt_binary(BinVal0),
{ok, BinVal, UpdModState};
Else -> Else
end.
2 changes: 1 addition & 1 deletion intercepts/riak_kv_qry_buffers_intercepts.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
%% -------------------------------------------------------------------
%%
%% Copyright (c) 2016 Basho Technologies, Inc.
%% Copyright (c) 2016, 2017 Basho Technologies, Inc.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this file
Expand Down
44 changes: 0 additions & 44 deletions intercepts/yz_noop_extractor_intercepts.erl

This file was deleted.

48 changes: 0 additions & 48 deletions intercepts/yz_solrq_helper_intercepts.erl

This file was deleted.

6 changes: 3 additions & 3 deletions rebar.config.lock
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
"51b79c5b05eb04640e13131f06ef96561b96ba8e"}},
{hamcrest,".*",
{git,"https://github.com/basho/hamcrest-erlang.git",
"98bc7aa19ea081478c816824aa05fc5a48acae66"}},
"ad3dbab419762fc2d5821abb88b989da006b85c6"}},
{riak_pb,".*",
{git,"https://github.com/basho/riak_pb",
"6c67dc58251e1a1c29b2e0c444b1e9c9aa2d4a24"}},
"08771aba2ce4935b715d32d1b92555efdc3da994"}},
{riakc,".*",
{git,"https://github.com/basho/riak-erlang-client",
"87958bdf1926d752fb1319b6788330176f6dd591"}},
"9167ad627348d4995ef60c93c63ce39a16eb9735"}},
{ibrowse,".*",
{git,"https://github.com/basho/ibrowse.git",
"b28542d1e326ba44bcfaf7fd6d3c7f8761d20f08"}},
Expand Down
25 changes: 25 additions & 0 deletions src/rt.erl
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,20 @@ heal({_NewCookie, OldCookie, P1, P2}) ->
{_GN, []} = rpc:sbcast(Cluster, riak_core_node_watcher, broadcast),
ok.

%% @doc heal the partition created by call to partition/2, but if some
%% node in P1 is down, just skip it, rather than failing. Returns {ok,
%% list(node())} where the list is those nodes down and therefore not
%% healed/reconnected.
heal_upnodes({_NewCookie, OldCookie, P1, P2}) ->
%% set OldCookie on UP P1 Nodes
Res = [{N, rpc:call(N, erlang, set_cookie, [N, OldCookie])} || N <- P1],
UpForReconnect = [N || {N, true} <- Res],
DownForReconnect = [N || {N, RPC} <- Res, RPC /= true],
Cluster = UpForReconnect ++ P2,
wait_until_connected(Cluster),
{_GN, []} = rpc:sbcast(Cluster, riak_core_node_watcher, broadcast),
{ok, DownForReconnect}.

%% @doc Spawn `Cmd' on the machine running the test harness
spawn_cmd(Cmd) ->
?HARNESS:spawn_cmd(Cmd).
Expand Down Expand Up @@ -778,6 +792,17 @@ wait_until_transfers_complete([Node0|_]) ->
?assertEqual(ok, wait_until(Node0, F)),
ok.

%% @doc Waits until hinted handoffs from `Node0' are complete
wait_until_node_handoffs_complete(Node0) ->
lager:info("Wait until Node's transfers complete ~p", [Node0]),
F = fun(Node) ->
Handoffs = rpc:call(Node, riak_core_handoff_manager, status, [{direction, outbound}]),
lager:info("Handoffs: ~p", [Handoffs]),
Handoffs =:= []
end,
?assertEqual(ok, wait_until(Node0, F)),
ok.

wait_for_service(Node, Services) when is_list(Services) ->
F = fun(N) ->
case rpc:call(N, riak_core_node_watcher, services, [N]) of
Expand Down
Loading