-
Notifications
You must be signed in to change notification settings - Fork 391
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
address unmatched_returns in cluster metadata code #511
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
the following dialyzer errors no longer appear with this commit: hashtree_tree.erl:343: Expression produces a value of type hashtree:hashtree(), but this value is unmatched hashtree_tree.erl:360: Expression produces a value of type hashtree:hashtree(), but this value is unmatched hashtree_tree.erl:368: Expression produces a value of type hashtree:hashtree(), but this value is unmatched hashtree_tree.erl:376: Expression produces a value of type hashtree_tree:tree(), but this value is unmatched riak_core_broadcast.erl:301: Expression produces a value of type [['ok' | [any()]]], but this value is unmatched riak_core_broadcast.erl:326: Expression produces a value of type 'ok' | ['ok' | ['ok' | [any()]]], but this value is unmatched riak_core_broadcast.erl:334: Expression produces a value of type 'ok' | ['ok' | ['ok' | [any()]]], but this value is unmatched riak_core_broadcast.erl:338: Expression produces a value of type 'ok' | ['ok' | ['ok' | [any()]]], but this value is unmatched riak_core_broadcast.erl:351: Expression produces a value of type 'ok' | ['ok' | ['ok' | [any()]]], but this value is unmatched riak_core_broadcast.erl:383: Expression produces a value of type 'ok' | ['ok' | ['ok' | [any()]]], but this value is unmatched riak_core_broadcast.erl:452: Expression produces a value of type ['true'], but this value is unmatched riak_core_metadata_exchange_fsm.erl:184: Expression produces a value of type ['ok'], but this value is unmatched riak_core_metadata_manager.erl:332: Expression produces a value of type atom() | tid(), but this value is unmatched riak_core_metadata_manager.erl:337: Expression produces a value of type {'ok','cluster_meta_manifest'}, but this value is unmatched riak_core_metadata_manager.erl:402: Expression produces a value of type 'ok' | {'error',_}, but this value is unmatched riak_core_metadata_manager.erl:560: Expression produces a value of type atom() | tid(), but this value is unmatched riak_core_metadata_manager.erl:599: Expression produces a value of type atom() | {'error',_} | tid(), but this value is unmatched
Verified that said warnings were removed by running dialyzer before
Verified nothing was missed for cluster meta related modules:
Still trying to run |
Successful run of
|
+1 to merge. |
jrwest
added a commit
that referenced
this pull request
Jan 26, 2014
address unmatched_returns in cluster metadata code
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
the following dialyzer errors no longer appear with this commit:
Review:
cluster_meta_basic
still passes (NOTE: there is known, unrelated intermittent failure)A useful grep pattern for review:
"\(riak_core_\(broadcast\|metadata\)\|hashtree_tree\)"