Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Apr 10, 2015
  1. Merge pull request #94 from MJDSys/master

    Fix travis build.
  2. @MJDSys

    Fix travis build.

    MJDSys authored
  3. Merge pull request #93 from neupaneshapath/update_docs

    Update Docs for Defer
  4. @neupaneshapath
  5. @neupaneshapath

    Update Docs for Defer

    neupaneshapath authored
Commits on Jan 26, 2015
  1. @MJDSys

    Merge pull request #92 from MJDSys/race_free_connect

    MJDSys authored
    Make the connection process race free
Commits on Jan 25, 2015
  1. @MJDSys

    Make the connection status be race free by reusing the conns channel.

    MJDSys authored
    The connected boolean does not have any synchronization surrounding it, allowing
    a single client used in multiple go routines to race around connecting to
    Riak.  If a user does not call Connect on a fresh Client, things can go
    horribly wrong.
    Instead use a special sentinel value in the conns channel (nil), that marks
    the Client as not being connected.  This requires some juggling to ensure
    that the channel always has a nil value in it, but this only occurs when
    the client is unconnected, so getting a connection shouldn't be significantly
    impacted, and the test suite takes about the same amount of time either way.
    Also drain the created conns in Connect if a few were created before an error
    occurs.  Generally speaking, this won't happen often.  It just ensures a
    disconnected client only has the sentinel value in conns.
    Also, ensure calling Close and Connect don't race.  Close can't be called
    simultaneously with other Close, as they will all try to drain the conns
    channel and block forever.  However, they all obey the connected state, so
    calling it multiple times is not an issue.
    Make sure Close and Connect also don't race.  Normally, this isn't an issue
    as Close will drain the connect channel as fast as Connect fills it.  However,
    if Connect generates an error, then it will also try to drain the conns channel,
    ensuring a deadlock.  So make sure both don't run at the same time.
    Having multiple Connect calls is fine, as Connect will race only to read the
    sentinel value.  However Go ensures only one wins, and the others will simply
    get valid connections later, which will force them to quit early.  Thus don't
    block multiple Connect calls, as connecting to Riak may take a significant
    time period where the code could be executing.
  2. @MJDSys

    Make the default client use the NewClient{Pool,} functions to create …

    MJDSys authored
    Avoid having multiple places creating new clients, instead just have the
    one place and have it instead be called as appropriate.
  3. @MJDSys

    Merge pull request #91 from Tapjoy/feature/reset_connection_on_eof

    MJDSys authored
    Calling close on the connection when receiving an EOF in Client.response...
  4. @StabbyCutyou

    Calling close on all the open connections when receiving an EOF in Cl…

    StabbyCutyou authored
    …ient.response to reset the client
Commits on Jan 13, 2015
  1. Merge pull request #90 from MJDSys/travis

    Various fixs to Travis CI build.
  2. @MJDSys

    Various fixs to Travis CI build.

    MJDSys authored
     - Fix a random build failure where Riak would still be setting up
    Riak Search when the search test is run, resulting in a failure.
    Instead wait for Riak to have started the search service.  Also
    wait for the kv service to start, in case that ever becomes a
    problem in the future.
     - Instead of manually specifying the test dependencies, use the -t
    option to go get.
     - Build/test all packages in the repository.  While they already
    should have been, this ensures it in the future.
  3. @MJDSys

    Merge pull request #88 from areski/patch-1

    MJDSys authored
    Add other Go versions to be tested
  4. @areski
Commits on Jan 12, 2015
  1. @areski
Commits on Oct 28, 2014
  1. Merge pull request #85 from jstol/master

    Added missing bucket `Type` values to various struct initializations.
  2. @jstol
Commits on Sep 13, 2014
  1. Merge branch 'nervcorp-adt-crdts'

Commits on Aug 8, 2014
  1. @Vagabond
  2. @Vagabond
  3. @Vagabond

    Refactor for better API

    Vagabond authored
Commits on Aug 7, 2014
  1. @Vagabond
Commits on Aug 5, 2014
  1. @Vagabond
Commits on Jul 15, 2014
  1. @Vagabond
Commits on Apr 12, 2014
  1. Fix search test for 2.0pre20

  2. Make sure test passes on Riak 1.4

    Riak 2.x (pre-release now) returns "No index ... found", 1.4 does not return an error
  3. Merge branch 'master' of

  4. Merge pull request #79 from tpjg/rfile-properties

    Bugfix - first write to rfile with less than one chunk_size bytes
  5. Bugfix - write to rifle with less than one chunk_size bytes did not u…

    …pdate the chunk_count in the root node
Commits on Apr 8, 2014
  1. Update online godoc url

  2. Merge pull request #78 from tpjg/rfile-properties

    Expose Meta and Indexes of an RFile root object
  3. Add Size() function to RFile

Something went wrong with that request. Please try again.