Commit Graph

2460 Commits

Author SHA1 Message Date
Fred Dushin
6f0e53433a Merge pull request #886 from basho/backport/zl/yz_extractors+rt-fixums-as-per-PR866
yokozuna_rt additions for types and better testing w/ allow-mult=true…
2015-10-27 14:12:35 -04:00
Doug Rohrer
f75d154b6f Merge pull request #905 from basho/merge/2.1-to-master
Merge/2.1 to master
2015-10-23 20:47:37 -04:00
Doug Rohrer
aec55f23f7 Merge pull request #901 from basho/bugfix/merge-overload-from-2.0
Forward merge 2.0 to 2.1 for Overload, and pick up some YZ fixes as well
2015-10-23 13:44:27 -04:00
Doug Rohrer
2d7ac6ab4f Merge of several YZ changes and overload fix from riak/2.0 to riak/2.1 2015-10-23 12:56:06 -04:00
Doug Rohrer
3be3ed630c Merge pull request #897 from basho/bugfix/fix_overload
Fix overload test
2015-10-23 12:36:12 -04:00
Doug Rohrer
818645ec83 Make tests pass regardless of order run by always writing default values for configuration settings, rather than trying to only change certain values.
- Always set values to keys that have no defaults in schema, as setting a value to `undefined` does not return the "default" value when application:get_env/3 is called
- Provide an easier way to get the configuration by creating the config record, with appropriate defaults
- Code cleanup on BKV1/2/3 - make them easier to read/understand and for future work in refactoring the tests and removing some of the complexity.
- Now that test is running more consistently, tighten tests to actually test something in test_vnode_protection.
- Bump vnode protection to ?THRESHOLD+1 as 2.0 seems to have one extra message.
- Convert lager:info to lager:debug in successful get cases to reduce noise.
- Remove use of ConsistentType (use macros & pass BKV down to validate).
2015-10-22 16:43:42 -04:00
Doug Rohrer
b863efcd76 Get FSM overload to be predictable by suspending vnodes and inspecting the sidejob configuration to calculate limits.
- Actually test FSM protection - previous limits didn't actually test overload at all. Now stop vnode and do an exact count of how many FSMs should have spun up.

- Make sure to wait for riak_kv before suspending any vnodes.

- Found sidejob race condition and updated test to compensate.
2015-10-22 16:43:32 -04:00
Doug Rohrer
68f40aa5a1 Get vnode protection test working:
Added send of junk message through proxy to force vnode proxies into
overload state - without it, the first messgage would be forwarded to
the vnode and time out, which caused the test to fail.
2015-10-22 16:43:24 -04:00
Jason Voegele
e72826d63a Merge pull request #866 from basho/bugfix/forward-merge-snmp-stat-poller-race
Merge branch `riak/2.0` into `master` w/ some updates to yz_extractors along the way
2015-10-15 09:34:00 -04:00
Zeeshan Lakhani
81d74cd8ca yokozuna_rt additions for types and better testing w/ allow-mult=true extractors test
(cherry picked from commit 844ee9cdb20bd2f476d28fe7ef80967e23d09046)
2015-10-13 15:35:41 -04:00
Zeeshan Lakhani
0768ebc3bc yokozuna_rt additions for types and better testing w/ allow-mult=true extractors test 2015-10-13 15:34:29 -04:00
Jason Voegele
ea5f62df9a Refactor some Yokozuna tests to eliminate duplication
Specifically, introduce the `gen_keys/1` and `assert_search/6` functions
into yokozuna_rt module and refactor tests to use them instead of copied
and pasted code fragments.

(cherry picked from commit 49d5c361c5)
2015-10-07 12:19:27 -04:00
Jason Voegele
35cb49f002 Verify cluster stats in SNMP
Update verify_snmp_repl test to prove that cluster stats are correctly
recorded in SNMP.
2015-10-07 11:54:54 -04:00
Zeeshan Lakhani
dfcad14eba update yz tests to use commit fn instead of sleep 2015-10-07 11:54:54 -04:00
Zeeshan Lakhani
99e1babac1 update extractors test to check for possible issue w/ expiry and custom extractors 2015-10-07 11:54:54 -04:00
Jason Voegele
9bcd4a6c0c Induce race condition in riak_snmp_stat_poller
There is a race in riak_snmp_stat_poller, which occurs when realtime
replication is enabled for more than two clusters. If the replication is
enabled quickly enough, then the bug does not manifest itself. This
change introduces a sleep between enabling replication between the
individual clusters, thus causing the test to fail consistently instead
of sporadically.
2015-10-07 11:54:54 -04:00
Fred Dushin
3601f874e5 Merge pull request #870 from basho/feature/yokozuna-rt-refactor
Refactor some Yokozuna tests to eliminate duplication
2015-09-28 16:01:17 -04:00
Fred Dushin
32bd9cf57c Removed reference to old test from lager output in the case search has not yet yeilded any data. 2015-09-28 15:42:10 -04:00
Jason Voegele
146e448b8c Update based on feedback from Fred
* Use `[binary()]` instead of `list()` in spec for `gen_keys/1`.
* Handle case of empty set of results in `assert_search/6`.
2015-09-28 15:30:35 -04:00
Jason Voegele
49d5c361c5 Refactor some Yokozuna tests to eliminate duplication
Specifically, introduce the `gen_keys/1` and `assert_search/6` functions
into yokozuna_rt module and refactor tests to use them instead of copied
and pasted code fragments.
2015-09-24 10:13:48 -04:00
Brett Hazen
4fa35d0d86 Merge pull request #858 from basho/feature/bch/rtdev-install-script
Add script rtdev-install.sh to install arbitrary devrel in Git repository
2015-09-23 15:30:30 -06:00
Jason Voegele
946378953a Merge pull request #863 from basho/bugfix/snmp-stat-poller-race
Verify cluster stats in SNMP
2015-09-14 09:12:05 -04:00
Brett Hazen
afa57bd12b Merge pull request #864 from mikewallace1979/add-apache-licese-to-intercepts-files
Add copyright and Apache License Version 2.0
2015-09-11 13:07:52 -06:00
Mike Wallace
1f719ab8a5 Add copyright and Apache License Version 2.0 2015-09-11 17:06:34 +01:00
Jason Voegele
54eeff9080 Verify cluster stats in SNMP
Update verify_snmp_repl test to prove that cluster stats are correctly
recorded in SNMP.
2015-09-11 09:56:06 -04:00
Fred Dushin
03b9180d05 Merge pull request #859 from basho/yz-updates/zl/check-for-custom-extractor-issues-and-commit-use
Yz updates/zl/check for custom extractor issues and commit use
2015-09-10 18:12:39 -04:00
Zeeshan Lakhani
b61d9c616e update yz tests to use commit fn instead of sleep 2015-09-09 19:42:53 -04:00
Zeeshan Lakhani
40d0fd22d0 update extractors test to check for possible issue w/ expiry and custom extractors 2015-09-09 19:42:53 -04:00
Brett Hazen
8a99d7545b Add rtdev-install.sh 2015-09-01 14:33:29 -06:00
Jason Voegele
f555b6ba5b Induce race condition in riak_snmp_stat_poller
There is a race in riak_snmp_stat_poller, which occurs when realtime
replication is enabled for more than two clusters. If the replication is
enabled quickly enough, then the bug does not manifest itself. This
change introduces a sleep between enabling replication between the
individual clusters, thus causing the test to fail consistently instead
of sporadically.
2015-08-28 17:05:00 -04:00
Doug Rohrer
222d559f5b Merge pull request #854 from basho/forward_merge/dr/riak_2.0_to_master
Forward merge/dr/riak 2.0 to master
2015-08-26 14:15:16 -04:00
Doug Rohrer
51db1bde66 Merge branch 'riak/2.0' into forward_merge/dr/riak_2.0_to_master
- Forward merge verify_stage_clustering fix
- Updates to allow either strings or atoms for node names in config & allow them to be different (atom or string) in test vs. config.
2015-08-26 13:59:04 -04:00
Doug Rohrer
ac71741f35 Merge pull request #853 from basho/bugfix/dr/fix_verify_staged_cluster
Use wait_for and actually check the results of `riak-admin cluster join`
2015-08-26 13:53:42 -04:00
Doug Rohrer
9c2db4b148 Use wait_for and actually check the results of riak-admin cluster join
to ensure we've really joined the cluster before we continue the test.
2015-08-26 13:36:30 -04:00
Jason Voegele
b8dfb15d14 Merge pull request #852 from basho/bugfix/verify-snmp-repl-fail-appropriately
Fail by crashing test process instead of returning a tagged tuple
2015-08-26 09:48:32 -04:00
Jason Voegele
b71e582dc0 Log when original version of intercepted function fails 2015-08-26 09:21:30 -04:00
Kazuhiro Suzuki
72d7db2016 Merge pull request #844 from basho/feature/move-cs-harness-to-cs-repo
Move rt_cs_dev to cs repo
2015-08-26 11:07:34 +09:00
Jason Voegele
8641f6edc6 Crash test process instead of returning fail atom 2015-08-25 16:24:55 -04:00
Jason Voegele
9ee856546a Fail with the bare atom fail
`riak_test_runner` does not support tagged tuples for failures. Fix
verify_snmp_repl module so that it returns the bare atom `fail` when it
fails, and write more detailed error messages to the log instead.
2015-08-25 14:39:28 -04:00
Brett Hazen
c00dabd443 Merge pull request #851 from basho/bugfix/bch/devrels-can-be-atoms-or-strings
Allow devrel name in .riak_test.config to be an atom or a string
2015-08-25 12:39:18 -06:00
Brett Hazen
ffadf647ab Allow devrel name in .riak_test.config to be an atom or a string 2015-08-25 10:39:47 -06:00
Brett Hazen
061d9fe663 Merge pull request #849 from basho/bugfix/dr/http_bucket_types_backport
Backport #847 to fix issues with http_bucket_types
2015-08-25 10:25:58 -06:00
Doug Rohrer
a26be146c4 Added rt:create_activate_and_wait_for_bucket_type so that the test can
specify it wants all nodes in the cluster to have the type before
continuing. Update http_bucket_types to use said function.

(cherry picked from commit 31b1002b3e)
2015-08-25 11:21:18 -04:00
Fred Dushin
adbaa99da8 Merge pull request #847 from basho/bugfix/dr/http_bucket_types_should_wait_for_visibility
Added rt:create_activate_and_wait_for_bucket_type
2015-08-25 10:26:57 -04:00
Doug Rohrer
31b1002b3e Added rt:create_activate_and_wait_for_bucket_type so that the test can
specify it wants all nodes in the cluster to have the type before
continuing. Update http_bucket_types to use said function.
2015-08-25 10:20:42 -04:00
Fred Dushin
6d63bd5713 Merge pull request #843 from basho/bugfix/dr/forward_merge_riak667_connection_fix
Forward merge riak667 connection fix to master
2015-08-23 08:49:04 -04:00
Doug Rohrer
bbf44fd14b Forward merge (potential) fix for riak667_mixed {error, disconnected} issue. 2015-08-21 17:14:52 -04:00
Fred Dushin
a12b5475c9 Merge pull request #842 from basho/bugfix/dr/riak667_connection_issues
Create new connections after they crash, rather than depending on auto_reconect
2015-08-21 16:59:59 -04:00
Doug Rohrer
94c66e7138 Renamed connection Pids and reformat some code for consistency. 2015-08-21 16:36:37 -04:00
Doug Rohrer
86fece0c9c Use a new connection after each failed attempt to read a map, as
auto_reconnect seems to be broken, and isn't part of the test.
2015-08-21 11:22:12 -04:00