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 badarg in binary construction for args to ebloom #777

Merged
merged 2 commits into from Mar 22, 2018

Conversation

russelldb
Copy link
Member

@russelldb russelldb commented Mar 1, 2018

See #774 for details.

To test:

  • clone riak
  • checkout develop-2.2
  • make -j4 devrel
  • run rtdev_current.sh
  • clone riak_test
  • checkout bug/rdb/nhs-riak-repl-gh-774
  • make in riak_test
  • run ./riak_test -c sus_ee -b eleveldb -t tests/repl_aae_bloom.erl (Use your own rtdev config name though, unless you want my config?)

The test should fail. And if you look in ~/rt/riak_ee/current/dev/dev1/log/error.log you'll see badargs.

Then

  • cd riak/deps/riak_repl
  • checkout bug/rdb/nhs-riak-gh774
  • cd ../../
  • make devclean
  • make -j4 devrel
  • run rtdev_current.sh again
  • re-run ./riak_test -c sus_ee -b eleveldb -t tests/repl_aae_bloom.erl

It should pass.

As per the issue #774 in some
instances the Bucket given to ebloom was a 2-tuple (typed bucket) not a
binary, and so a `badarg` was thrown. Though this does not stop repl
from working, it leads to crashes and re-tries, is broken, and polutes
this log. This commit fixes by ensuring a binary is passed to
ebloom:insert/2 and ebloom:contains/2
@bookshelfdave
Copy link
Contributor

+1 lgtm @russelldb

@russelldb russelldb merged commit 1ad4cf4 into develop-2.2 Mar 22, 2018
@russelldb russelldb deleted the bug/rdb/nhs-riak-gh774 branch March 22, 2018 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants