Permalink
Commits on Mar 27, 2013
Commits on Feb 26, 2013
  1. Merge pull request #270 from basho/jrw-dialyzer-fixes

    Dialyzer Fixes
    jrwest committed Feb 26, 2013
  2. address some dialyzer warnings in riak_core_ring

    addresses:
      L241: Record construction [...] violates the declared type of field vclock::'undefined' |
            vclock:vclock() and meta::'undefined' | dict()
      L305: Function fresh/0 has no local return
      L312: Function fresh/1 has no local return
      L318: Function fresh/2 has no local return
      L321: Record construction [...] violates the declared type of field nodename::atom() and
            clustername::'undefined' | {atom(),_} and members::'undefined' | [{atom(),{'down' |
            'exiting' | 'invalid' | 'joining' | 'leaving' | 'valid',vclock:vclock(),[]}}] and
            claimant::atom() and seen::'undefined' | [{atom(),vclock:vclock()}]
      L1013: Function reconcile_divergent/3 will never be called
      L1062: Function reconcile_next/2 will never be called
      L1075: Function reconcile_divergent_next/2 will never be called
      L1091: Function substitute/3 will never be called
      L1092: The created fun has no local return
      L1103: Function reconcile_ring/3 will never be called
      L1229: Function equal_cstate/2 has no local return
      L1232: Function equal_cstate/3 has no local return
      L1241: Record construction [...] violates the declared type of field
             vclock::'undefined' | vclock:vclock() and chring::'undefined' |
             {integer(),[{integer(),_}]} and meta::'undefined' | dict() and
             clustername::'undefined' | {atom(),_} and members::'undefined' | [{atom(),
             {'down' | 'exiting' | 'invalid' | 'joining' | 'leaving' | 'valid',vclock:vclock(),[]}}]
              and seen::'undefined' | [{atom(),vclock:vclock()}] and rvsn::'undefined' |
              vclock:vclock()
    
    does not address:
      L240: Function nearly_equal/2 has no local return
      L430: Function reconcile/2 has no local return
      L965: Function internal_reconcile/2 has no local return
      L1014: Function reconcile_divergent/3 has no local return
      L1104: Function reconcile_ring/3 has no local return
      L1252: The pattern 'true' can never match the type 'false'
    jrwest committed Feb 1, 2013
  3. remove dead code block in ring handler (found via dialyzer)

    riak_core:wait_for_application/1 has never returned anything besides ok
    (it has no timeout) unlike its predecessor.
    
    Code changed to remove timeout/error in this commit:
    63334d3
    jrwest committed Jan 31, 2013
  4. remove reference to riak_obect:bucket() type

    it doesn't exist in core. fixes dialyzer warning about non-existent type
    jrwest committed Jan 31, 2013
  5. fix dialyzer warnings in handoff manager

    addresses
      L163: The pattern [...] can never match the type {'error','max_concurrency'}
      L504: Record construction [...] violates the declared type of field mod_src_tgt::'undefined' | {atom() | tuple(),integer(),integer()}
    jrwest committed Jan 31, 2013
  6. fix dialyzer warnings in node watcher

    addresses:
      L756: The created fun has no local return
      L757: The call erlang:apply(Mod::atom(),Func::atom(),nonempty_improper_list('undefined' | pid(),byte())) will
            never return since it differs in the 3rd argument from the success typing arguments:
            (atom() | tuple(),atom(),[any()])
      L757: Cons will produce an improper list since its 2nd argument is byte()
      L770: Function health_check_result/2 will never be called
    jrwest committed Jan 31, 2013
  7. fix dialyzer warnings in vnode manager

    addresses:
      L560: Function update_forwarding/3 has no local return
      L563: Record construction [...] violates the declared type of field forwarding::'undefined' | [pid()]
      L670: The pattern [{MI, Node} | _] can never match the type 'undefined' | [pid()]
      L672: The pattern [{MI, Node} | _] can never match the type 'undefined' | [{_,integer(),pid(),atom()}]
    jrwest committed Jan 31, 2013
Commits on Feb 25, 2013
  1. Change webmachine dependency to roll back to working version

    Addresses temporarily basho/riak#280
    Jared Morrow committed Feb 25, 2013
Commits on Feb 23, 2013
  1. Merge pull request #274 from basho/eas-parallel-vnode-init

    Allow parallel vnode initialization
    engelsanchez committed Feb 23, 2013
Commits on Feb 21, 2013
  1. Fix cluster into to query vnode manager, not sup

    With the parallel vnode change, there is more reason to not query the
    supervisor directly, as its children may not have finished
    initialization yet.
    engelsanchez committed Feb 21, 2013
  2. Add concurrency control to vnode initialization

    Also, a bit of code cleanup.
    New pmap with bounded concurrency utility added with unit tests.
    engelsanchez committed Feb 21, 2013
Commits on Feb 14, 2013
  1. Merge pull request #241 from evanmcc/pevm_handoff_recv_timeout

    potential fix for #185
    Jared Morrow committed Feb 14, 2013
Commits on Feb 12, 2013
  1. Allow vnode init to happen in parallel

    Added an extra state to riak_core_vnode to decouple vnode initialization
    from process creation.
    Added a function to block until initialization is truly finished.
    Vnode init call now takes a list of indices or single index.
    The list version creates vnode processes first, then waits for them to
    initialize, which allows it to happen in parallel.
    Used the above in riak_core_ring_handler when starting services
    on first ring event.
    Tests show I/O saturation at bitcask startup now, instead of the
    serialized trickle we had.
    This code still needs some work to handle edge cases, specially around
    how to handle vnode initialization failing.
    engelsanchez committed Feb 12, 2013
Commits on Jan 31, 2013
  1. Merge branch '1.3'

    Jared Morrow committed Jan 31, 2013
Commits on Jan 29, 2013
  1. Roll version riak_core 1.3.0

    Jared Morrow committed Jan 29, 2013
  2. Fix dependencies on tags for 1.3

    Jared Morrow committed Jan 29, 2013
  3. Update dep on protobuffs to be 0.8.*

    Jared Morrow committed Jan 29, 2013
  4. Change dep on lager to 1.2.2 to match the rest of riak

    Jared Morrow committed Jan 29, 2013
Commits on Jan 23, 2013
  1. Merge pull request #268 from basho/sdc-fix-urlmap

    Fix riak_core_wm_urlmap
    seancribbs committed Jan 23, 2013
  2. Fix riak_core_wm_urlmap.

    When the webmachine dispatch list was moved to ETS, this resource was
    not changed to reflect that, and so it still hit the application env
    for the dispatch list, resulting in a badmatch error because the key
    was not set.
    seancribbs committed Jan 23, 2013
Commits on Jan 3, 2013
  1. 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
  2. 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
  3. Merge pull request #251 from basho/readme-rewrite

    rewriting revised readme in .md and removing .org version.
    seancribbs committed Jan 3, 2013
  4. Line wrap stuff.

    seancribbs committed Jan 3, 2013
Commits on Jan 2, 2013
  1. 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. 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. Fixate lager dependency on 1.2.1

    Jared Morrow committed Dec 20, 2012
  2. Merge pull request #259 from basho/jdb-supervisor-order

    Adjust riak_core_sup child order for cleaner shutdown
    jtuple committed Dec 20, 2012