Skip to content

Fix badarg in binary construction for args to ebloom#777

Merged
russelldb merged 2 commits into
develop-2.2from
bug/rdb/nhs-riak-gh774
Mar 22, 2018
Merged

Fix badarg in binary construction for args to ebloom#777
russelldb merged 2 commits into
develop-2.2from
bug/rdb/nhs-riak-gh774

Conversation

@russelldb

@russelldb russelldb commented Mar 1, 2018

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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.

2 participants