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

Fix two issues with replication_upgrade test #639

Merged
merged 1 commit into from
Jun 12, 2014

Conversation

kellymclaughlin
Copy link
Contributor

  • Do not attempt to cancel fullsync if the initial attempt to start
    and wait for completion fails. It has not been observed that the
    problem is fullsync starting and not completing in time, but rather
    the issue is that the initial call to start fullsync does not take
    effect. Therefore the cancellation is unnecessary.
  • Replace the call to repl_util:wait_for_connection/2 in the node
    upgrade process with a call to
    replication:wait_until_connection/1. This function is geared towards
    v2 replication and should speed up test execution.

* Do not attempt to cancel fullsync if the initial attempt to start
  and wait for completion fails. It has not been observed that the
  problem is fullsync starting and not completing in time, but rather
  the issue is that the initial call to start fullsync does not take
  effect. Therefore the cancellation is unnecessary.
* Replace the call to repl_util:wait_for_connection/2 in the node
  upgrade process with a call to
  replication:wait_until_connection/1. This function is geared towards
  v2 replication and should speed up test execution.
@russelldb
Copy link
Member

Can I assume that the test replication_upgrade would fail without this fix, and will pass with it?

@kellymclaughlin
Copy link
Contributor Author

Correct, in concert with riak_repl #601 the test should pass and without it the test will fail . You can see repl #600 and #601 for more discussion.

@russelldb
Copy link
Member

Cheers!

@russelldb
Copy link
Member

+1 21b6452

@kellymclaughlin kellymclaughlin merged commit 21b6452 into master Jun 12, 2014
@kellymclaughlin kellymclaughlin deleted the bugfix/replication-upgrade-fixes branch June 12, 2014 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants