Commits on Jan 22, 2013
  1. @jrwest
Commits on Jan 21, 2013
  1. @jrwest

    add -ifdef(EQC)

    jrwest committed Jan 20, 2013
  2. @jrwest

    handoff manager eqc property

    tests adding inbounds and outbounds as well as concurrency controls.
    missing coverage for repair.
    jrwest committed Jan 20, 2013
Commits on Jan 3, 2013
  1. @jtuple
  2. @jtuple

    Fix bug in riak_core_util:rpc_every_member_ann

    The utility fun rpc_every_member_ann, uses by several status/console
    commands, was written assuming rpc:multicall returned results in the
    same order as the provided node list. This is an invalid assumption.
    This commit fixes rpc_every_member_ann as well as adds several
    additional utility functions to riak_core_util: pmap, multi_rpc,
    multi_rpc_ann, and multicall_ann.
    jtuple committed Jan 3, 2013
  3. @engelsanchez

    Merge pull request #264 from basho/eas-fix-vnode-terminate-abnormal-r…

    …eason
    
    Make vnode terminate backend for any exit reason
    engelsanchez committed Jan 3, 2013
  4. @engelsanchez
  5. @seancribbs

    Merge pull request #251 from basho/readme-rewrite

    rewriting revised readme in .md and removing .org version.
    seancribbs committed Jan 3, 2013
  6. @seancribbs

    Line wrap stuff.

    seancribbs committed Jan 3, 2013
Commits on Jan 2, 2013
  1. @engelsanchez

    Wrapping pool shutdown in try/catch

    Making sure that we really always call terminate to avoid other issues
    like basho/riak_test#137
    engelsanchez committed Jan 2, 2013
  2. @engelsanchez

    Make vnode terminate backend for any exit reason

    This should fix issue basho/riak_test#137, where partition repair was
    killing vnodes with reason kill_for_test and experiencing sporading
    bitcask data corruption.
    engelsanchez committed Jan 2, 2013
Commits on Dec 20, 2012
  1. @jaredmorrow
  2. @jtuple

    Merge pull request #259 from basho/jdb-supervisor-order

    Adjust riak_core_sup child order for cleaner shutdown
    jtuple committed Dec 19, 2012
  3. @jtuple
  4. @jtuple
  5. @jrwest
  6. @jtuple
  7. @jrwest

    add enable_health_checks config option

    prevents registration of health checks in the case that
    {enable_health_checks, false} is set for the riak_core application
    jrwest committed Dec 18, 2012
  8. @jrwest

    health check changes

    * change the checking processes to use gen_server:cast instead of exit for
      message passing between it and the node_watcher process for valid return
      values (true/false). Invalid return values are still handled via exit.
    * provide functions (resume_health_checks/suspend_health_checks) on
      riak_core_node_watcher to enable/disable all health checks. This will also
      toggle the new healths_enabled flag in the node_watcher's state which is
      used to prevent re-starting checks when a node goes down and comes back up
    jrwest committed Dec 17, 2012
Commits on Dec 19, 2012
  1. @rzezeski
  2. @jtuple
  3. Increased timer:sleep in vnode stop

    Joe DeVivo committed Dec 19, 2012
  4. Increased timeout to the bloom test

    Joe DeVivo committed Dec 19, 2012
Commits on Dec 18, 2012
  1. @rzezeski

    Fix vnode eqc test regression

    The commit d769cfb broke the test
    because now instead of always going through the mgr it will
    shortcut and hit the ets tab directly.  This means there can be a
    slice of time where the supervisor reports a vnode pid but the ets tab
    hasn't indexed it yet.  Calling `get_vnode_pid` after starting the
    vnode ensures that all previous msgs in vnode mgr mailbox have been
    handled and the ets tab is up-to-date for all subsequent calls.
    rzezeski committed Dec 18, 2012
Commits on Dec 15, 2012
  1. @jtuple
  2. @jtuple

    Merge pull request #257 from basho/jdb-health-check

    Enable riak_core apps to provide a health check callback at
    registration, allowing registered apps to take advantage of
    the new health check functionality added to riak_core_node_watcher.
    jtuple committed Dec 14, 2012
  3. @jtuple

    Change vnode manager API to read from ETS when possible

    Various parts of Riak regularly call the all_vnodes/0, all_vnodes/1,
    and all_index_pid/1 functions provided by riak_core_vnode_manager.
    Prior to this commit, all three calls performed gen_server calls to
    the vnode manager. This forces unnecessary serialization and can be
    bad news if the vnode manager ever ends up with a large message queue,
    which happens frequently during cluster transitions.
    
    This commit changes the existing private ETS table that the vnode manager
    uses to keep track of vnodes, and makes the table protected. The three
    API calls above are then changed to directly read from this ETS table
    when possible, and only fallback to gen_server calls to the vnode manager
    when necessary.  For example, if an API call comes in while the vnode
    manager is still starting up, then the ETS table may not yet exist, and
    the the calling process will fallback to a call to the vnode manager
    which is guaranteed to be handled after the ETS table has been created
    and populated.
    jtuple committed Dec 5, 2012
  4. @jtuple

    Enable riak_core apps to provide a health_check callback

    Applications built on riak_core can now provide {health_check, MFA} as
    an option during registration. The provided health check will then be
    passed on to riak_core_node_watcher:service_up when the service is
    marked as up. This enables riak_core applications to take advantage of
    the new health check functionality added to riak_core_node_watcher.
    jtuple committed Dec 5, 2012
  5. @jtuple

    Merge pull request #240 from basho/issue_388

    Extend riak_core_node_watcher to support the registration of health
    check logic that monitors a given service, automatically marking the
    service as down when unhealthy and back-up when healthy.
    jtuple committed Dec 5, 2012
Commits on Dec 7, 2012
  1. @jtuple
Commits on Dec 6, 2012
  1. @Vagabond
  2. @Vagabond
Commits on Dec 5, 2012
  1. @jtuple

    Fix long lines and comment styles in riak_core_node_watcher

    Fix typo DEFUATL_HEALTH_CHECK_INTERVAL to DEFAULT_HEALTH_CHECK_INTERVAL.
    
    Wrap extraordinarily long lines in riak_core_node_watcher to enable
    viewing code / commits on Github without horizontal scrolling. Typically,
    we aim to limit lines to 79 characters for optimal terminal viewing as
    well, but we've all been guilty of longer lines here and there so I only
    modified lines that were easily changed and/or too long for Github.
    
    Changed a few comment-only lines from '%' to '%%' to match Riak convention,
    and make Emacs erlang-mode auto-indent happy.
    jtuple committed Dec 5, 2012
  2. @jtuple

    Fix bugs in node watcher health check code

    Change incorrect use of #health_check.interval_tref to correct
    use of #health_check.check_interval.
    
    Fix badmatch error by changing handle_fsm_exit to return a 2-tuple as
    expected at the call-site rather than a 3-tuple.
    
    Changed determine_time to return an integer as required by Erlang as a
    timeout value. Previously, the function could return a float and
    trigger a badarg.
    jtuple committed Dec 5, 2012
Commits on Nov 29, 2012
  1. @vinoski

    Merge pull request #255 from basho/sv-fix-legacy-upgrade-msg

    upgrade legacy ring only if needed
    vinoski committed Nov 29, 2012