Permalink
Commits on Jul 5, 2011
  1. Merge pull request #30 from havocp/support-immutable-checkID

    Brendan W. McAdams committed Jul 5, 2011
    Make SerializableBSONObject.checkID return a new doc, so it can work with immutable doc types
  2. Make SerializableBSONObject.checkID return a new doc, so it can work …

    havocp committed Jul 5, 2011
    …with immutable doc types
    
    Caller must replace the doc with the returned one.
Commits on Jul 4, 2011
  1. Release r0.2.5

    Brendan W. McAdams committed Jul 4, 2011
  2. Was using same collection name to test batch inserts in both concurrency

    Brendan W. McAdams committed Jul 4, 2011
    and normal test which caused test failures.  Fixed.
  3. Merge branch 'havocp-2011-07-01'

    Brendan W. McAdams committed Jul 4, 2011
  4. Release r0.2.0

    Brendan W. McAdams committed Jul 4, 2011
Commits on Jul 2, 2011
  1. Change CompletableWriteRequest to throw an exception in same cases Ja…

    havocp committed Jul 2, 2011
    …va driver would
    
    Java driver CommandResult.java throwOnError throws if !ok or
    if the "err" field exists. Previously this code would throw
    if the "errmsg" field exists.
    
    Even after looking at the mongo server's C++ for a bit I can't
    figure out exactly what "err" vs. "errmsg" is, but ...
    
    One case where CompletableWriteRequest didn't throw, before
    this patch, was a duplicate key on insert. This patch
    fixes that to complete the future with an exception.
Commits on Jul 1, 2011
  1. Convert null on the wire to an absent document field rather than None

    havocp committed Jul 1, 2011
    The problem is that if you getAs[String] and it's None, then None
    is not a String. The None approach would only work if all other
    values were stored as Some(value) instead of just value.
    getAs already generates a None if the field is missing, so there's
    no need to actually store a None in the map, it works properly
    if we just omit the field entirely.
    
    Or another way to put it, we don't want
      getAs[String]("err")
    to potentially return Some(None), which it did in
    MongoConnectionHandler.
  2. In boolCmdResult, do get("ok") not getAs[Double]

    havocp committed Jul 1, 2011
    Apparently it does not have to be a double, as the cases
    in the match already indicated.
  3. Make BSONDocument.checkedCast handle AnyVal types

    havocp committed Jul 1, 2011
    Unfortunately this gets a good bit more complex, but
    the previous code could not convert an Integer to an Int
    so it was broken.
  4. In BSONDocument.getAs and friends, do a runtime type check

    havocp committed Jul 1, 2011
    The issue asInstanceOf[A] calls didn't have any effect
    at runtime, so getAs[String] would actually return any
    type at all without throwing an exception.
    
    Use manifest[A].erasure.cast instead to force a runtime
    exception if the type is incorrect.
  5. Handle DeleteMessage and UpdateMessage replies in addition to InsertM…

    havocp committed Jul 1, 2011
    …essage
    
    Otherwise delete and update hit the "unknown" case.
Commits on Jun 29, 2011
  1. Release r0.2.0

    Brendan W. McAdams committed Jun 29, 2011
  2. Release r0.2.0

    Brendan W. McAdams committed Jun 29, 2011
  3. Release r0.2.0

    Brendan W. McAdams committed Jun 29, 2011
  4. Sorted out remaining issues w/ Type Class move.

    Brendan W. McAdams committed Jun 29, 2011
  5. Programming is hard, let's go shopping!

    Brendan W. McAdams committed Jun 29, 2011
Commits on Jun 26, 2011
  1. Code weirdly hanging & dropping in 4th decode of message. ARGH

    Brendan W. McAdams committed Jun 26, 2011
Commits on Jun 17, 2011
  1. Closer to sane on some of the "Working" parts here. Figuring out the

    Brendan W. McAdams committed Jun 17, 2011
    type class flow from the read side has been painful mentally and compile
    wise
Commits on Jun 12, 2011
  1. Verify time to tieout on concurrent inserts

    Brendan W. McAdams committed Jun 12, 2011
  2. Added a test to validate that concurrent inserts succeed.

    Brendan W. McAdams committed Jun 12, 2011
  3. New encoding system in place with type classes

    Brendan W. McAdams committed Jun 12, 2011
  4. Broken checkpoint; almost done a refactor into Type Class based

    Brendan W. McAdams committed Jun 12, 2011
    serialization
Commits on Jun 7, 2011
  1. Tweak deps

    Brendan W. McAdams committed Jun 7, 2011
  2. Fixed project defs.

    Brendan W. McAdams committed Jun 7, 2011
Commits on Jun 2, 2011
  1. Made all tests run concurrently on a single connection.

    Brendan W. McAdams committed Jun 2, 2011
  2. Decided using chained ThrownExpectations is a bad approach as noted by

    Brendan W. McAdams committed Jun 2, 2011
    several people.  Will build up shared examples etc instead.
  3. Was testing a value after the callback was defined, NOT after the call.

    Brendan W. McAdams committed Jun 2, 2011
    ThrownExpectations exposed this brokenness.
  4. Specs2 doesn't fail unless the LAST matcher does; In some cases I need

    Brendan W. McAdams committed Jun 2, 2011
    more discreet multi matching for concurrency testing.  Mixed in
    ThrownExpectations trait to change this.
  5. Release r0.1.0

    Brendan W. McAdams committed Jun 2, 2011
  6. Fixes #28 - FindAndModify tests out, as does findAndRemove. Also added

    Brendan W. McAdams committed Jun 2, 2011
    Db/Coll level interfaces
Commits on May 31, 2011
  1. FindAndRemove works!

    Brendan W. McAdams committed May 31, 2011