Fred Dushin
c8d3138cfc
Missed a change in previous commit
2015-07-23 14:22:12 -04:00
Fred Dushin
399759c330
Added some documentation to the test.
...
Also changed the name of the internal identifier for the globally registered bg process, to avoid potential name collisions in the future.
2015-07-23 14:18:25 -04:00
Fred Dushin
a418bae347
Write-Once test improvements
...
* Made tests of handoff conditions more strict than they were before
* Added an intercept to the async write_once test to test that asynchronous writes actually happened
* Added a test case for the riak_kv (advanced) allow_async_put configuration variable.
2015-07-23 12:25:35 -04:00
Doug Rohrer
9dd2165b71
Merge pull request #814 from basho/bugfix/RIAK-1884
...
Add verify_snmp_repl riak_test
2015-07-23 11:11:49 -04:00
Fred Dushin
666f0ca375
Added intercepts to count the synchronous and asynchronous calls through handle_command, to ensure we are testing the case statements in riak_kv_vnode:handle_command with write_once puts.
2015-07-20 21:23:22 -04:00
Jason Voegele
3a7be664cd
Remove extraneous lager call
2015-07-20 14:44:44 -04:00
Jason Voegele
0ffcc61b97
Add verify_snmp_repl riak_test
...
The verify_snmp_repl test reproduces the error condition (one cluster
configured for realtime replication with two or more other clusters) and
passes if and only if the riak_snmp_stat_poller module correctly handles
this configuration.
https://bashoeng.atlassian.net/browse/RIAK-1884
https://github.com/basho/riak_snmp/issues/27
2015-07-20 11:25:21 -04:00
Zeeshan Lakhani
16ce998e3f
* clean-up yokozuna_rt for reusability
...
* add new types for dialyzer
* add test to reload schema and overwrite it on type change
* test nested search (e.g. nested json objects)
* test re-putting fields, include crdt map workaround, discussed in
https://gist.github.com/sdebnath/36c235e042cb35db7d1f
* increase aae concurrency for core_prop test
2015-07-20 08:49:40 -04:00
Doug Rohrer
1e39711ff3
Add basic cluster converge test to try to capture issues with cluster
...
convergence outside of other tests.
2015-07-17 16:23:06 -04:00
Fred Dushin
e38c0f2533
Cleaned up async process to remove code that is not exercised by this test.
2015-07-17 09:04:17 -04:00
Fred Dushin
fc21bbe009
Merge commit '62335cf416dd3d68b0fae524e78a4973d65da8fe' into bugfix/fd/RIAK-1850
2015-07-16 17:25:46 -04:00
Fred Dushin
85c79f48af
Cleaned up the verify_handoff_write_once to run faster
...
(by not waiting for handoffs, just pending changes, as the old test did)
2015-07-16 17:21:10 -04:00
Fred Dushin
c2d610a6d8
Force calls to riak_kv_vnode:handle_handoff_command during a handoff.
2015-07-16 17:03:37 -04:00
Fred Dushin
3fa57b4025
Added a cap to the number of messages to be send asynchronously, to give handoff a chance to complete.
2015-07-07 17:25:49 -04:00
Fred Dushin
fbedd4cd33
Tried to make the verify_handoff_write_once test more predictable
2015-07-07 16:45:05 -04:00
Zeeshan Lakhani
cf0b665854
update yokozuna crdt test from master that works for current 2.0 branch and 2.0.6 release
2015-07-07 13:11:14 -04:00
Zeeshan Lakhani
b68ffbc9be
update some yokozuna tests from work done in riak/2.0 branch for 2.0.6 release
2015-07-07 13:01:42 -04:00
Fred Dushin
f330f867b2
Reverted to original verify_handoff_write_once test with modifications
...
* Backed out the change to riak_core_handoff_sender_intercepts which had
a modified intercept
* Modified the handle_command intercept to ensure we don't count the
vnode crashes that were happening before the fix
* Reverted the test to the original, but check to make sure we can read
all the entries, including the ones we added during handoff
2015-07-02 11:48:20 -04:00
Fred Dushin
06836392cd
Re-write of handle_handoff_write_once to test handle_handoff_command.
...
Still needs some work!
2015-07-02 10:59:01 -04:00
Christopher Meiklejohn
892e8c5744
Use correct shutdown.
...
No longer use the shutdown command when starting, which causes the use
of the incorrect version of shutdown (shutdown from current, not
previous) which generates an error.
{badrpc,{'EXIT',{{badfun,#Fun<erl_eval.20.80484245>},
[{erlang,apply,2,[]},
{rpc,'-handle_call_call/6-fun-0-',5,
[{file,"rpc.erl"},{line,203}]}]}}}
2015-06-26 00:07:24 -04:00
Christopher S. Meiklejohn
facfaf128c
Merge pull request #804 from basho/bugfix/jdm/wait-for-capabilities-to-converge-for-667-mixed
...
Wait for ring properties to converge before testing new behavior.
2015-06-25 17:13:16 -07:00
Jon Meredith
373f88a0ef
Wait for ring properties to converge before testing new behavior.
2015-06-25 17:58:59 -06:00
Zeeshan Lakhani
203efbbce8
add brief module notes
2015-06-25 15:28:28 -07:00
John R. Daily
aa1ab75da4
Pin these tests to 2.0.5
2015-06-25 15:28:22 -07:00
Christopher Meiklejohn
5b22604d0e
Remove write_once.
...
write_once is not present on the 2.0 series of Riak.
2015-06-25 11:25:09 -04:00
Fred Dushin
cff0734aef
Fixes for YZ tests against 2.0
2015-06-18 23:24:42 -04:00
Fred Dushin
57346dd366
Merge pull request #794 from basho/zl/clean-up-yz-core-prop-test
...
adding clarity to test
2015-05-29 16:29:18 -04:00
Zeeshan Lakhani
e86616f38d
handle possible race conds w/ trace checker and log out values too for extractor checks
2015-05-27 18:10:30 -04:00
Fred Dushin
a8f00eb46c
Removed verify_num_found_query function from yz_extractors and changed test
...
to use Zeeshan's version by the same name in yokozuna_rt
2015-05-27 16:08:50 -04:00
Zeeshan Lakhani
ad5004c0df
*add include file for types
...
*refactor yokozuna_rt some more
2015-05-27 10:36:18 -04:00
Zeeshan Lakhani
54568a0c27
* rename file to reduce conflict on buildbot runs
...
* wait_for_index on write data due to use in upgrade tests
* clean-up other tests to that test upgrade from (2.0.5->2.0.6/2.1.1->2.1.2), namely yz_extractors
* clean-up tests that can start using yokozuna_rt helpers
2015-05-27 10:25:05 -04:00
Zeeshan Lakhani
e6e8d9403c
* test default bucket type upgrade on change to entropy iteration... and move assert cap checks to rt.erl
...
* cleaner setup as we deal w/ immediate version needs
2015-05-27 10:25:05 -04:00
Christopher Meiklejohn
08ef4cfb20
Fix typo.
2015-05-20 16:38:34 -04:00
Christopher Meiklejohn
b2942aa436
Remove export all.
2015-05-20 11:30:30 -04:00
Christopher Meiklejohn
d2173bb341
Add separate test for AAE fullsync with bucket types.
2015-05-20 11:29:50 -04:00
Zeeshan Lakhani
3ee669ee24
adding clarity to test
2015-05-18 10:57:49 -04:00
Sean Cribbs
2e7f093532
Hopefully fix the disconnection issue in the riak667_mixed test
2015-05-07 11:42:48 -05:00
Zeeshan Lakhani
1a5204fd18
update yz_handoff test after better handling of default bucket_types in Yokozuna PR #486
2015-05-01 08:35:37 +09:00
Zeeshan Lakhani
96c2f35227
* add some yz wait_until helper fns
...
* add count_calls and helpers for tracing fn calls (with dbg)
* add yz_extractors test to check for updates made in RIAK-1673
* add yz_noop_extractor intercept for testing a custom mimetype for extractor
2015-04-28 18:00:42 -04:00
Zeeshan Lakhani
61e3170ecf
Update core properties test to make sure that indexes can be reindexed after removing of data dirs and segment info files
2015-04-28 17:28:09 -04:00
Doug Rohrer
e8222900bf
Merge pull request #789 from basho/bugfix/dr/receive_deadlocks_when_handoff_occurs
...
Fullsync replication known deadlock tests.
2015-04-28 14:30:16 -04:00
Doug Rohrer
cad958481d
Test deadlock between Repl Fullsync and Handoff. Requires riak_repl and riak_kv fixes:
...
Tests that provoke deadlock causing full_sync to hang when handoff causes vnode to exit before the fold request is started.
2015-04-24 15:23:06 -04:00
Fred Dushin
51998fd555
Back ported branch 'master' into feature/zl/update-yz_crdt-test-for-RIAK-1672
...
Conflicts:
src/rt.erl
Manually resolved
2015-04-23 08:56:29 -04:00
Zeeshan Lakhani
758cee1f10
Merge pull request #784 from basho/add-test/zl/no-core-props-unload-working
...
Add test removing core.properties and checking whether creation works ...
2015-04-16 18:13:05 -04:00
Zeeshan Lakhani
ac7cc9fdd9
* Add test removing core.properties and checking whether creation works without issue
...
* Related to https://github.com/basho/yokozuna/pull/487
* Removed a possible false-failure case.
* Use yz_rt wait_until, which is PR'ed into a new utils file for r_t in another branch
... caused by disjoint random selections for failure simulation and
recovery testing (allowing an unmolested node to report a pass).
Once we've validated that this fixes it I'll rebase the branch
foo
2015-04-16 17:20:49 -04:00
Nick Marino
2c8a2eb4f8
Merge pull request #785 from basho/nem-ensemble-sync-tickcounts
...
Fix occasional failures in ensemble_sync
2015-04-16 15:10:02 -04:00
Nick Marino
df438b9406
Fix occasional failures in ensemble_sync
...
This fixes some rare race conditions in ensemble_sync where we could
sometimes run wait_for_stable prior to an ensemble actually becoming
unstable, and then it would pass the wait but the ensemble could become
unavailable during the next step in the test.
By waiting for the ensemble leader tick counts to increment, we can
guarantee that any failures will have been "noticed" prior to our
calling wait_for_stable, because the leader_tick function ensures a
quorum is present when it executes, and steps down if it fails to get
one.
2015-04-15 18:35:01 -04:00
Andrew J. Stone
39f5573233
Merge pull request #783 from basho/bugfix/dr/fix_wait_for_connection_hang
...
Remove handling of timeout so pre-2.0 node connections will be detected
2015-04-14 15:22:04 -04:00
Doug Rohrer
da28931e4e
Remove handling of timeout, as old-school Riak connection nodes would also result in a timeout. Try new riak_core_cluster_conn:status() first, then fall back to older 1.4.X style bare send. Lather, rinse, repeat.
2015-04-14 15:13:15 -04:00
Russell Brown
88bbcca9ce
Remove extraneous and inaccurate comment
2015-04-14 16:04:23 +01:00
Russell Brown
c8af6c6056
Clean up comment typo and poorly named function
2015-04-14 16:03:20 +01:00
Russell Brown
712ea2c4ec
Add failing test for github issue riak-727
2015-04-14 15:50:24 +01:00
Andrew J. Stone
4fda0c89f7
Merge pull request #781 from basho/bugfix/dr/fix_wait_for_connection_hang
...
Fix test hang when riak_core_cluster_conn:status failed to respond after 2 milliseconds.
2015-04-13 16:39:53 -04:00
Doug Rohrer
c603e8be14
Fix test hang when riak_core_cluster_conn:status failed to respond after 2 milliseconds.
...
Should resolve test failures with a message similar to:
@riak_core_cluster_conn:handle_info:402 Unmatch message {<20563.30238.10>,status}
in the server logs.
2015-04-13 16:37:43 -04:00
Alex Berghage
10d901fb09
Merge pull request #778 from basho/bugfix/zl/yz-handoff-fix-around
...
Reduce intermittent failure frequency in yz_handoff. Needs to be revisited as part of basho/yokozuna#485
2015-04-13 12:36:28 -05:00
Doug Rohrer
e2dcc1245c
Merge pull request #780 from basho/rdb/instrument-repl
...
Add some extra info out to detect point of timeout in test failures
2015-04-13 13:33:06 -04:00
Zeeshan Lakhani
74b510bf47
update yz_handoff test for swiftness via single leave-state check... need to extend this w/ aggressive settings and more states eventually
2015-04-13 13:17:02 -04:00
John Daily
c89e21631f
Merge pull request #755 from basho/bugfix/mw/jmx-verify-timeouts
...
Added a configurable wait before initial jmx_dump
2015-04-13 11:46:01 -04:00
Russell Brown
e3fece8713
Add some extra info out to detect point of timeout in test failures
2015-04-13 16:09:33 +01:00
Doug Rohrer
786aaec2d3
Merge pull request #776 from basho/bugfix/BTA-186-verify_crdt_capability
...
BTA-186 verify_crdt_capability
2015-04-13 09:25:19 -04:00
Andrew J. Stone
e1018624ed
add debug logging to tests/replication2_connections
2015-04-10 15:49:58 -04:00
Andrew J. Stone
eb2dc7c9ed
add some logging so we know which test is failing in replication2_connections. yeesh.
2015-04-09 18:42:57 -04:00
Zeeshan Lakhani
a9a229f3dd
*check for map embedded fields and counts,
...
*increase cluster*,
*add helper to select random node from cluster*
2015-04-09 16:21:57 -04:00
Doug Rohrer
269728e04f
Merge pull request #769 from basho/bugfix/BTA-182-repl_bucket_types
...
Added case clause for case in which we are calling get on a 2.0 or later node
2015-04-08 21:30:51 -04:00
Doug Rohrer
cf510639e8
Merge pull request #772 from basho/bugfix/BTA-183
...
Bugfix/BTA-183
2015-04-08 19:20:41 -04:00
Doug Rohrer
8f3a7aa7a3
Merge pull request #774 from basho/bugfix/bta-175
...
Fix race condition in force replace for verify_staged_clusters
2015-04-08 19:17:28 -04:00
Andrew J. Stone
b0bc89e39f
Fix race condition in force replace for verify_staged_clusters
2015-04-08 18:58:59 -04:00
Doug Rohrer
fae0fe3bc8
Added wait_until_ready after upgrade, as it appears the HTTP interface
...
on Previous was not always available as soon as the upgrade was
complete.
2015-04-08 17:34:53 -04:00
Doug Rohrer
13598bc5b4
Merge pull request #771 from basho/bugfix/remove-obsolete-repl_reduced
...
Removing obsolete repl_reduced test.
2015-04-08 16:33:27 -04:00
Fred Dushin
742cbc24b9
Relaxed the capability check to make it a subset check.
2015-04-08 16:30:52 -04:00
Fred Dushin
aa4ab8405f
Fixed expected capabilities on previous node
2015-04-08 15:13:48 -04:00
Fred Dushin
2fa259ea08
Fixed capability tests based on changes to previous and legacy versions against which we are testing.
2015-04-08 15:02:24 -04:00
Doug Rohrer
ad91ce48b4
Removing obsolete repl_reduced test, as the feature for which it was
...
written will never be shipped. Fixes BTA-167 and perhaps other intermittent failures.
2015-04-08 13:27:30 -04:00
Zeeshan Lakhani
be94f6aa71
* refactor yz_handoff test to use only rtisms
...
* make test a bit swifter by removing *another* leave/add and a coupel config settings
2015-04-08 09:44:49 -04:00
Fred Dushin
39718e7938
Added case clause for case in which we are calling get on a 2.0 or later node that does not have the bucket type declared. The previous behavior was targeted for pre-2.0 (pre-bucket type) behavior.
2015-04-08 09:28:15 -04:00
Doug Rohrer
19ea9a69bb
Merge pull request #765 from basho/bugfix/BTA-172-verify_dt_upgrade
...
Fix BTA-172.
2015-04-07 09:36:03 -04:00
Sean Cribbs
3c3c7313a2
Fix BTA-172.
...
Previous to 2.0, the CRDT capability was exactly `[pncounter]`. However,
when upgrading from 2.0 to 2.1, the capability *includes* `pncounter`
but is not exactly equal, resulting in a hang in
`populate_counters/1`. We just want the test to be sure that it is
capable of `pncounter`, not exactly equal, which will make the test
continue on 2.0+ clusters.
2015-04-06 16:21:15 -05:00
Sean Cribbs
53d43d6aa1
Merge pull request #753 from basho/nem-ensemble-byzantine-waitfor-reads
...
Use rt:waitfor on reads in ensemble-byzantine test
2015-04-06 15:14:27 -05:00
Sean Cribbs
d4f3e569f3
Merge pull request #761 from basho/bugfix/BTA-174-verify_riak_stats
...
Fix BTA-174
2015-04-06 14:57:13 -05:00
Sean Cribbs
40a583a798
Sort stats names in product_stats/1
2015-04-06 11:25:25 -05:00
Sean Cribbs
f5060e8761
Fix BTA-174
...
Failure seen at
http://giddyup.basho.com/#/projects/riak_ee/scorecards/120/120-157-verify_riak_stats-centos-6-64/89645
* Typo in one stat name was corrected since
2.0.5 (search_index_throughtput_one -> search_index_throughput_one)
* write_once code path added its own stats.
* Adjusted assertion at comparison point so that the differences appear
in the assertion failure as well as the logs.
* Sorted the entries in the list of stats.
* Cleaned up trailing whitespace.
2015-04-06 11:16:14 -05:00
Alex Berghage
5c5931b567
Added explicit wait_for_service riak_pipe on pipe* tests...
...
... which didn't call the 2-arity version of deploy_nodes. NB
the /2 version implicitly waits on whatever services are specified.
2015-04-06 10:36:06 -05:00
Fred Dushin
b566fe34ed
Added a wait for riak_kv to start before polling http interface.
2015-04-03 18:08:36 -04:00
Sean Cribbs
35fe241044
Merge pull request #758 from basho/feature/fd/RIAK-1534
...
Feature/fd/riak 1534
2015-04-01 18:30:01 -05:00
Fred Dushin
39ce8866be
Fixed lingering usage of "fast_path" in overload test
2015-04-01 19:00:53 -04:00
Fred Dushin
d34ff09f8e
Updated write_once handoff test to use riak_kv_w1c_put_req_v1 record, and relaxed check in test to avoid potential race condition.
2015-04-01 16:56:36 -04:00
Micah Warren
8b4b8978e6
Added a configurable wait before initial jmx_dump
2015-03-31 13:21:25 -05:00
Fred Dushin
5f547a8364
Name changes. Test is still broken though, due to use of #riak_kv_w1c_put_req_v1 record.
2015-03-27 20:57:09 -04:00
Fred Dushin
57638a86a3
Name change fast_path -> write_once
2015-03-27 20:38:47 -04:00
Fred Dushin
0a1c307bda
Merge branch 'feature/fd/RIAK-1534' of github.com:basho/riak_test into feature/fd/RIAK-1534
2015-03-27 16:11:44 -04:00
Fred Dushin
444115aa93
Fixed tests to check improved error handling in put code path.
2015-03-27 16:11:38 -04:00
Andrew J. Stone
44d8d6fd65
support fast path in overload test
2015-03-27 16:00:34 -04:00
Andrew J. Stone
43ffdffc04
add verify_handoff_fastpath
2015-03-26 18:00:53 -04:00
Nick Marino
8e2b99d6e8
Use rt:waitfor on reads in ensemble-byzantine test
...
There were some race conditions we found in this test where reads
to an ensemble may fail for a brief period of time after recovery. By
using the waitfor function, we ensure that the tests will still pass as
long as things eventually recover and start working properly again.
2015-03-23 13:12:46 -04:00
Cuyler Jones
a1bd419973
Fixed typo; Used exact error message and module name
2015-03-19 14:09:05 -07:00
Cuyler Jones
9f2f3da1c1
Added notes about rare race condition to test
2015-03-19 11:40:45 -07:00
Zeeshan Lakhani
96675d7a49
Merge pull request #745 from basho/zl/remove-wait-for-index-need-in-yz-tests-because-sync
...
remove the need for wait_for_index on these tests, as we move to sync cr...
2015-03-18 13:32:02 -04:00
Fred Dushin
adb29379d6
Improved testing around timeout conditions.
2015-03-16 21:53:49 -04:00
Ted Burghart
77f2a561b3
Merge pull request #750 from basho/bugfix/reorder-replication2-ssl-tests
...
Restructured how connectivity tests are configured and run [RIAK-1608].
2015-03-14 07:47:36 -04:00
Brett Hazen
c5259019a3
Merge pull request #749 from basho/bugfix/bch/tweak-pb_security
...
Remove code:which/1 from pb_security and http_security
2015-03-13 15:39:00 -06:00