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

Fixes for 'faulterl'-style fault injection #161

Merged
merged 7 commits into from
Apr 17, 2014

Conversation

slfritchie
Copy link
Contributor

This is a rebased and squashed version of the slf-faulterl-introduction branch. The squashes have attempted to use roughly one commit for:

  • Adding faulterl
  • Faulterl usage example
  • Fix some lock problems
  • Fix write problems
  • Fix merge problems
  • Avoid a few spammy log messages when testing with faulterl.

Fixes include these slightly larger patches:

* reshuffle to avoid var binding shadows
* restrict pattern match to throw exception to catch at caller
Including:

* list_data_files() fails
* Fix file-scan exceptions in merge()
* Fix EUnit bitcask:merge_test()
* Partial merge check should be after file opens fail/succeed
Also, add minor '_ = ' pattern match to make Dialyzer happier
@slfritchie slfritchie added this to the 2.0-RC milestone Apr 11, 2014
throw:Reason ->
Reason;
_X:_Y ->
io:format(user, "X Y = ~p ~p\n", [_X, _Y]),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debugging junk

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix pushed. Any other review comments?

@slfritchie
Copy link
Contributor Author

Any other review/fixit tasks?

%%
%% -------------------------------------------------------------------
-module(generic_qc_fsm).
%% Borrowed heavily from bitcask_qc_fsm.erl
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm all right with these being separate for now, but if they're very similar, should we consider merging them and then running it twice in make test, once with and one without fault injection?

@evanmcc
Copy link
Contributor

evanmcc commented Apr 16, 2014

+1 1cf14a1
Sorry for the delay, only got halfway through the review earlier.

borshop added a commit that referenced this pull request Apr 16, 2014
Fixes for 'faulterl'-style fault injection

Reviewed-by: evanmcc
@slfritchie
Copy link
Contributor Author

@borshop: merge

@borshop borshop merged commit 1cf14a1 into develop Apr 17, 2014
@seancribbs seancribbs deleted the slf-faulterl-introduction2 branch April 1, 2015 22:35
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.

3 participants