Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* make sure to call hashtree:flush_buffer on all trees before build/t…
…ime, meta for build_finished and persist flushed trees * add open/close (check) meta calls from hashtree lib * handle closing trees securely, and set next_rebuild to full if not a normal/shutdown reason of the vnode * Added explicit riak_kv_index_hashtree close/sync_stop call to KV vnode. Without it, the node can exit before the hashtree has a chance to close because riak_kv_index_hashtree is not supervised inside riak_kv, only monitored. * set_rebuild on close depending on vnode shutdown/normal reason * mark empty {1,0} within clear_trees and true/false in init, dependent on the vnode being empty or not; have do_new_tree mark correctly based on empty|open * determine update or flush by next_rebuild of tree on close * cast to explicitly set incr rebuild after update_perform
- Loading branch information
1 parent
bb9935f
commit ff087b9
Showing
2 changed files
with
111 additions
and
41 deletions.
There are no files selected for viewing
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
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
ff087b9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from jonmeredith
at ff087b9
ff087b9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging basho/riak_kv/bugfix/zl/hashtree-cleanup-for-meta-counter+flush = ff087b9 into borshop-integration-1242-bugfix/zl/hashtree-cleanup-for-meta-counter+flush
ff087b9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
basho/riak_kv/bugfix/zl/hashtree-cleanup-for-meta-counter+flush = ff087b9 merged ok, testing candidate = 290b35a
ff087b9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.bos1/builders/test-riak_kv/builds/2655
ff087b9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding 2.0 to borshop-integration-1242-bugfix/zl/hashtree-cleanup-for-meta-counter+flush = 290b35a