Commit Graph

1727 Commits

Author SHA1 Message Date
Kelly McLaughlin
2df4ce2e07 Merge pull request #637 from basho/bugfix/jmx-verify-timing-failure
Fix timing issue with jmx_verify test
2014-06-11 12:42:41 -06:00
Kelly McLaughlin
0e2b52d8b1 Fix timing issue with jmx_verify test
Replace use of a 40 second sleep in the test_supervision test case
with a wait condition to better handle variances in the time it takes
to progress through 10 retry attempts.
2014-06-11 11:26:45 -06:00
Kelly McLaughlin
0601cd594f Merge branch 'bugfix/replication-upgrade-return-term' 2014-06-10 17:14:31 -06:00
Kelly McLaughlin
ba4db5ac74 Change replication upgrade tests to return pass on success
As of commit 3044839456 tests that
return something other than the prescribed success atom 'pass' to
indicate success result in test failure. Change the
replication_upgrade and replication2_upgrade tests that return the
result of the a call to lists:foreach/2 to instead return 'pass' to
indicate success.
2014-06-10 12:58:57 -06:00
Joseph Blomstedt
4322795d8f Merge pull request #632 from basho/jdb-auto-ensemble
Update ensemble tests to work with auto-activation
2014-06-06 16:45:43 -07:00
Engel A. Sanchez
cf10cf96a4 Merge pull request #594 from basho/feature/bitcask-tombstone2-upgrade
Verify Bitcask tombstone 2 upgrade
2014-06-06 10:34:15 -04:00
Joseph Blomstedt
65e15a50ad Update ensemble tests to work with auto-activation
Prior to this commit, the various riak_ensemble related tests would
manually enable the consensus system on one-and-only-one node in a
given cluster in order to work around issue basho/riak_core#571.

This commit changes the tests to work properly after the above issue
has been fixed.

In addition to removing the call to riak_ensemble_manager:enable()
that is now handled automatically by Riak, this commit also removes
a few wait_until_stable/2 checks against 1-node clusters. These
checks no longer apply, since Riak is now designed to only enable
the consensus system after the cluster contains at least 3 nodes.
2014-06-05 16:43:12 -07:00
Christopher Meiklejohn
e07c5eb3f6 Merge pull request #626 from basho/bugfix/bjs/riak_repl_cancelled_connections_cleanup
Disconnect and cancelled connection tests
2014-06-05 16:09:34 -04:00
Christopher Meiklejohn
b208394f63 Adapt test with better assertions and new cluster API. 2014-06-05 16:08:08 -04:00
Micah
ce1969d53b Merge pull request #621 from basho/bugfix/mw/pb-cipher-suites-and-http-security
Change http_security uses different directory for certs then pb_cipher_suites
2014-06-05 11:34:28 -05:00
bsparrow435
a5746cb416 Adding re-connection test
Adding onto the existing test to prove that a reconnection to the same
endpoint can occur after the cancelled connection has been removed.
2014-06-04 21:46:57 -04:00
bsparrow435
c89de8dac9 Address PR comments
Changed intercept to explicitly return `{error, econnrefused}`. Moved
helper functions to `repl_util` and added a new helper to distinguish
between disconnects on `cluster_by_name` and `cluster_by_address`
connections.

Added asserts to all wait_for functions.
2014-06-04 19:51:21 -04:00
Joseph Blomstedt
100180e7ff Merge pull request #593 from basho/ajs/ensemble_remove_node 2014-06-04 11:05:34 -07:00
Joseph Blomstedt
f822e52fe8 Extend ensemble_remove_node2 to test shutdown
ensemble_remove_node2 uses an intercept to prevent a riak_ensemble
related transition that is necessary for nodes to completely exit and
shutdown after removal. In fact, testing for this scenario is the
entire point of this test, since it is testing logic that was added to
solve basho/riak_core#572 and that logic prevents nodes from exiting
until that transition occurs.

However, even without this new logic, there is an unrelated
riak_ensemble related bug that can trigger a race condition that also
prevents nodes from shutting down.

The good news is that other changes made as part of the solution to
solve basho/riak_core#572 also fix this unrelated bug. Therefore this
commit extends ensemble_remove_node2 to remove the intercept at the
end of the test and verify that the removed nodes do actually end up
exiting as expected. Thus, the test now tests for both the negative
and positive scenarios and serves as a test against future regressions
that stall node removal/shutdown.
2014-06-03 15:50:06 -07:00
John Burwell
610c1a6ab8 Merge pull request #627 from basho/bugfix/jsb/fix-list-keys-missing-bucket-type-client
Test the operation of list keys and buckets for undefined bucket types
2014-06-03 16:59:47 -04:00
Engel A. Sanchez
27b15c8d37 Merge pull request #630 from basho/feature/wait-for-bucket-props
Add wait until bucket type visible
2014-06-03 16:35:56 -04:00
Engel A. Sanchez
a579d9cc29 Remove debug noise from wait until bucket props 2014-06-03 16:30:33 -04:00
Evan Vigil-McClanahan
7f0b898e33 Merge pull request #625 from basho/membackend-test
add expanded memory backend tests
2014-06-03 11:50:01 -07:00
Engel A. Sanchez
595c13019d Add wait until bucket type visible
Adding a test to verify a bucket type is visible from a number of nodes
since the active status is given as long as the claimant sees it. But
requests to other nodes can end up hitting the dreaded {error, no_type}.
Also added a general utility that can be used for bucket type checks and
for general verification of bucket properties across nodes.
2014-06-03 14:03:24 -04:00
John Burwell
36741bb977 - Adds tests to verify the operation of list keys and list buckets when
an undefined bucket type is specified.  (defect #875)
- Adds a description of the reset-current-env.sh script and its
  usage to README.md
- Corrects a spelling mistake in an information message emitted by
  the reset-current-env.sh script
2014-06-03 13:44:05 -04:00
Micah Warren
fc13bbcf3c Added cacert to http_security path.
While r16b02-basho5 did not need the cacertfile path put in, r16b03 did.
The test still passes r16b02-basho5 with the added cacertfile line. Since
there is no harm in putting it in, better for forwards compatibility than
not.
2014-06-03 12:41:35 -05:00
Andrew J. Stone
2c7fc9fb4b Merge pull request #628 from basho/bugfix/ensemble-timouts
increase timeouts for SC operations in ensemble tests
2014-06-03 13:29:49 -04:00
Sean Cribbs
d13808f417 Merge pull request #629 from basho/sdc-remove-clients-tests
Remove clients tests
2014-06-03 12:21:35 -05:00
Sean Cribbs
3ffab65863 Remove clients tests because they are already running on every commit on builders. 2014-06-03 11:44:07 -05:00
Micah
b14d093ce5 Merge pull request #589 from basho/vinoski/http_security_cluster
remove localhost dependencies in http_security test
2014-06-03 11:31:00 -05:00
Christopher Meiklejohn
4580448bde Merge pull request #609 from basho/features/csm/floppystore
Adapt riak_test for riak_core applications.
2014-06-03 10:44:46 -04:00
Christopher Meiklejohn
ac0192fbd1 Adapt riak_test for riak_core applications.
Adapt riak_test to more easily be used with riak_core based
applications.  This involves removing a few assumptions about executable
names.
2014-06-03 10:35:47 -04:00
evan
b431ba19a1 reorder tests to avoid test-breaking side-effects 2014-06-02 15:23:33 -07:00
evan
0295115e14 fix for ee versions 2014-06-02 13:53:35 -07:00
evan
bdeb8a4138 fix coyote error 2014-06-02 13:40:21 -07:00
Andrew J. Stone
a35be4bf28 increase timeouts for SC operations in ensemble tests 2014-06-02 16:40:19 -04:00
evan
131ee7bf2f add debugging info 2014-06-02 13:25:44 -07:00
Micah Warren
2b6c86b8bc Removed reference to outdated add-map feature. 2014-06-02 15:18:21 -05:00
evan
492f52ce6c try to make the eviction check fully deterministic 2014-06-02 11:01:17 -07:00
bsparrow435
941efca4ac Disconnect and cancelled connection tests
Adding tests and intercepts for connection_mgr to test disconnect and
cancelled connection cleanup.
2014-06-02 13:03:11 -04:00
Sean Cribbs
98b180ae4c Merge pull request #611 from basho/feature-bug/rdb/removes-remove
Update dt test for reset-remove semantic
2014-06-01 15:42:10 -05:00
evan
5d5cdce079 add expanded memory backend tests 2014-05-31 09:17:41 -07:00
Jon Anderson
27390fb2e2 Merge pull request #624 from basho/bugfix/jra/rex
Add test for safe_rpc when rex is down
2014-05-30 16:44:35 -04:00
Jon Anderson
110bf7e1ab Restart rex and make sure rpc works again. 2014-05-30 15:44:06 -04:00
Jon Anderson
8623a7415c Add riak_test to exercise riak_core_util:safe_rpc rex problem fix. 2014-05-30 14:55:34 -04:00
Engel A. Sanchez
177f901f50 Merge pull request #623 from basho/bugfix/bucket-types-and-mr-key-filter
Verify bucket type + MR filters fix
2014-05-30 13:07:03 -04:00
Engel A. Sanchez
7d8eae7386 Verify bucket type + MR filters fix 2014-05-30 12:00:20 -04:00
Kelly McLaughlin
ce401b0b0d Merge branch 'bugfix/replication2-race' 2014-05-30 09:23:54 -06:00
Christopher Meiklejohn
b1752e0a26 Merge pull request #617 from basho/feature/csm/location-down
Add ability to test the location_down behavior.
2014-05-30 10:49:59 -04:00
Kelly McLaughlin
d82e65c633 Fix a race condition in replication2 test
Remove an assertion based on reading keys a single time after realtime
replication is re-enabled in the test. Instead just rely on the wait
condition that already followed the assertion to read and verify the
same keys.
2014-05-29 16:56:21 -06:00
Micah Warren
c313638cb4 Using different directory for certs than pb_cipher_suites
There are different cert chains for pb_cipher_suites and http_security.
The certs were not fully cleaned between tests, so it would cause the
test to fail. By just using a different directory to put the certs into,
it better isolates the tests.
2014-05-29 13:48:54 -05:00
Micah Warren
ae30256d20 Fixed return from confirm so test acutally passes. 2014-05-29 13:48:38 -05:00
Sean Cribbs
ef56dadad1 Merge pull request #610 from basho/bugfix/sdc/riak-api-61-error-no-type
Check for the correct bucket props response on non-existent type
2014-05-29 12:11:02 -05:00
Christopher Meiklejohn
a07018cb4c Merge pull request #618 from basho/feature/csm/cancel-fullsync
Ensure we can cancel a fullsync and restart.
2014-05-28 21:34:38 +02:00
Andrew J. Stone
6cd649d5ab Ensure keylist pids are stopped when fs cancelled
When fullsync is cancelled, we want to make sure that the keylist pids
it was using actually go away. Add that code to repl_cancel_fullsync.
2014-05-28 15:23:41 -04:00