Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 #426

Open
wants to merge 363 commits into
base: master
Choose a base branch
from
Open

V2 #426

wants to merge 363 commits into from

Conversation

yanghongkjxy
Copy link

No description provided.

nkatsaros and others added 30 commits December 5, 2014 11:09
This prevents the deadlock reported by John Morales in MGO-57.
This is a refactoring of the first batch + cursor logic that is used
in the Pipe and Repair methods, so it may be used both internally in
other places and also externally when people depend on functionality
not yet implemented in the driver.
Also fixes result.Cursor.NS handling, as mentioned by Jeff Yemin.
Issue reported by Daniel Gottlieb.
Fixed small documentation typo on GridFs.Create
Besides user error, that situation may happen when the
synchronization goroutine finds the server unavailable.

Reported by John Morales.
Also improve the documentation for the index key handling.

Updates #65.
MongoDB only supports a single index with a given index key, so
the custom name is a distraction. It will create surprising behavior
where a given index is not created because a different index with
the same key already exists, and it breaks the use of the current
API, such as with DropIndex which is based on the index key.

Updates #65.
babbageclunk and others added 30 commits June 28, 2016 15:22
At the moment it fails about 25% of the time - the reason needs to be
worked out, but it's probably better to get the txn tests running first.
It fails sometimes in a way that seems like a timing issue - put a sleep
in before retrying (up to 3 attempts).
If 10 1-second waits aren't enough then it's likely that the "no
reachable servers" error isn't transient.
Make StartServer dial the server first to ensure it's up before it returns.

Error logging showed that something else was already using port 50017.

Picking a random port still gets collisions :(, so try picking an unused
one instead.
This has better handling of used ports and error reporting. Remove
mgo_test.go, it's not needed now. sim_test.go:simulate was relying on
the mgoaddr global set in mgo_test.go, changed it to get the DBServer
passed in.
This is needed so the txn tests can use dbtest.
Clarify the retry logic in Query.Apply.
Clarify what happens when test fails and what it might mean.
Increase bson.NewObjectId performance by caching the process id
Retry upserts that fail with "duplicate key error".
internal/sasl: don't crash on Windows if password not specified
dont mix input and output buffers in cgo calls
For now tested by hand due to new configdb option constraints introduced
in current 3.3. Test harness will need to change yet again to adapt to
latest supported options. :-(
Reported by Cezar Sá Espinola.
Fix the IsDup retry error handling on Apply.
Fix integer constant overflow on 32-bit systems.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.