Commit Graph

2878 Commits

Author SHA1 Message Date
Bernie Hackett
c10a098c2c PYTHON-951 - Use bytes in GridFS tests. 2015-06-16 16:54:02 -07:00
Bernie Hackett
1c6ed1b351 PYTHON-951 - Raise CorruptGridFile for truncated chunks. 2015-06-16 16:22:45 -07:00
Bernie Hackett
331347871c PYTHON-888 - Skip UUID test on python 2.4. 2015-06-16 13:40:41 -07:00
aherlihy
4d6e8637bf PYTHON-888 Add codec_options support to the bson module. 2015-06-16 12:51:36 -07:00
Bernie Hackett
3487b4bfa1 PYTHON-834 - Add option to disable match_hostname. 2015-06-16 12:47:23 -07:00
Bernie Hackett
9b1ac9717f PYTHON-882 - Backport get_database, get_collection, and with_options.
This change comes with a small backward breaking change in the
behavior of client.document_class in exchange for enhanced
configuration flexibility. See changelog.rst for details and
examples.
2015-06-11 14:54:04 -07:00
aherlihy
4cf64b6170 PYTHON-945 Remove validation of the OP_REPLY "startingFrom" field 2015-06-08 16:20:24 -07:00
aherlihy
c6abb18b2e PYTHON-940 - Unhelpful and pretty wrong error message. 2015-06-08 15:55:26 -07:00
Bernie Hackett
fc9a053c90 PYTHON-889 - Document change in cursor support. 2015-06-08 15:17:29 -07:00
aherlihy
d19f4996ca PYTHON-889 The aggregate method should always return CommandCursor when passed the cursor option. 2015-06-08 15:05:38 -07:00
aherlihy
5ffe8d44bc PYTHON-933 - "maxPoolSize=0" allowed, causes hang 2015-06-08 14:49:48 -07:00
aherlihy
e405ef91cf PYTHON-885 - Support maxPoolSize URI option. 2015-06-08 14:11:00 -07:00
Bernie Hackett
a08f16d9dc PYTHON-890 - Minor doc fixes. 2015-06-08 13:38:12 -07:00
aherlihy
6e4608b9cd PYTHON-890 - Support localThresholdMS URI option. 2015-06-08 13:26:48 -07:00
behackett
313e21ab4f PYTHON-886 - Add missing doc target. 2015-06-03 17:02:01 -04:00
aherlihy
f6c28646d6 PYTHON-886 - Add CRUD API find / find_one options. 2015-06-03 16:49:03 -04:00
Bernie Hackett
d70578f650 PYTHON-881 - Backport CodecOptions class from 3.x. 2015-05-26 19:23:40 -07:00
Bernie Hackett
f2c01af265 Fix indentation in docs. 2015-05-26 12:34:55 -07:00
aherlihy
666a31438b PYTHON-883 - Backport CursorType from 3.x 2015-05-26 12:21:41 -07:00
Bernie Hackett
32c06e0494 PYTHON-879 - Backport new read preference classes from 3.x. 2015-05-22 10:36:06 -07:00
Bernie Hackett
8d072d59e8 PYTHON-880 - Backport WriteConcern class from 3.x. 2015-05-21 14:38:44 -07:00
Bernie Hackett
43d26ad73d Add links in client and connection docs. 2015-05-20 16:06:17 -07:00
aherlihy
c7f1546358 PYTHON-911 - Add database.client alias 2015-05-20 15:52:58 -07:00
Bernie Hackett
0f9ac50274 Start work on 2.9. 2015-05-13 13:43:01 -07:00
Bernie Hackett
c284c51c87 BUMP 2.8.1 2015-05-11 13:23:38 -07:00
Bernie Hackett
11a3d54f60 Changelog for PyMongo 2.8.1. 2015-05-11 10:57:42 -07:00
Bernie Hackett
5ed6a24086 PEP8 2015-05-07 16:11:46 -07:00
nahumoz@gmail.com
1152f89430 Add log4mongo-python
Log4mongo-python is actively maintained and upaded to the latest pymongo versions (2.8 and 3.X).
2015-05-07 16:03:41 -07:00
Bernie Hackett
93bef6eb23 PYTHON-915 - More robust latency test. 2015-05-07 15:53:34 -07:00
Bernie Hackett
d8f0e4c000 PYTHON-894 - More doc clarifications for alive. 2015-05-07 15:00:37 -07:00
Bernie Hackett
90efec37ff PYTHON-915 - Allow 0 for secondaryAcceptableLatencyMS. 2015-05-06 18:13:12 -07:00
Bernie Hackett
9bf46d2bb1 PYTHON-920, PYTHON-921 - Fix metadata helpers with direct connection.
With this change metadata helpers (database_names, collection_names,
options, and index_information) no longer require a non-primary read
preference or the slave_okay option to run them against a directly
connected secondary or slave. This was the easiest way to make the
driver behave consistently across MongoDB versions and helpers. This
is also consistent with the server selection spec, though we are not
implementing that spec for PyMongo 2.x.
2015-05-06 09:14:55 -07:00
A. Jesse Jiryu Davis
4897c51090 PYTHON-903 - Discover primary despite auth errs on recovering members. 2015-05-04 13:58:55 -04:00
behackett
a73d3cbdab PYTHON-841 FAQ entry for key order and subdocument matching. 2015-04-28 17:29:06 -04:00
behackett
5d8194d0f3 PYTHON-913 - Fix test for old python versions. 2015-04-28 17:26:13 -04:00
behackett
b172a1f1a9 PYTHON-913 - Suppress read preference warning under MongoClient. 2015-04-28 15:45:17 -04:00
A. Jesse Jiryu Davis
8e9bd739b0 Longer wait queue timeout in test_auth_network_error. 2015-04-24 22:25:51 -04:00
A. Jesse Jiryu Davis
8c5e547274 PYTHON-903 - Don't *require* a network error in auth test. 2015-04-23 22:08:23 -04:00
Bernie Hackett
4c39f1a99f PYTHON-903 - Can't use "as" in PyMongo 2.x. 2015-04-23 13:55:24 -07:00
A. Jesse Jiryu Davis
5c98b1ebf3 PYTHON-903 - Survive auth failures on secondaries. 2015-04-23 16:42:03 -04:00
A. Jesse Jiryu Davis
9fc992b423 PYTHON-903 - Inc semaphore after network err with auth.
There was a semaphore leak in MongoReplicaSet.__socket, though not critical.
After getting disconnected during auth, it discards the server's whole pool.
Then it wakes the monitor and creates a new pool, recovering from the leak.
That's fine unless, at the moment we wake the monitor, we're unlucky and it's
just started running using the previous pool (due to periodic monitoring or
whatever). In that case it can't get a socket, and tells the main thread it
thinks the primary's down *again*. Thus we threw two errors instead of one, but
we still recover eventually.
2015-04-23 16:42:02 -04:00
A. Jesse Jiryu Davis
f05e800820 Fix test_auth_network_error for replsets.
We added a user then tried to admin with a disconnected client. During
reconnect it may try to log in with a secondary, which hasn't always
replicated the credentials yet. This change uses the global test creds
instead of creating new ones, so replication doesn't confound the test.
2015-04-23 15:24:23 -04:00
behackett
18711cae93 Add required whitespace. 2015-04-19 10:43:15 -07:00
Vladimir Savin
12cefd69c0 Small fix documentation aggregation
Updated the example of Grouping
2015-04-19 10:41:36 -07:00
A. Jesse Jiryu Davis
22cf7f2918 PYTHON-894 - Can't use addCleanup in PyMongo 2 tests. 2015-04-17 18:54:52 -04:00
A. Jesse Jiryu Davis
2ef99ef692 PYTHON-894 - Can't use addCleanup in PyMongo 2 tests. 2015-04-17 17:36:01 -04:00
A. Jesse Jiryu Davis
f18b3644c2 PYTHON-894 - Set cursor.alive False after final batch.
Even with this change, "next" can raise StopIteration even though
"alive" is True. For example if batch size is 2 and there are 4
documents in the result set, then after the 4th document "alive" is True
but "next" raises StopIteration.
2015-04-17 16:19:03 -04:00
Bernie Hackett
773a8dff0b PYTHON-842 - Fix tests for python with no ssl module. 2015-04-14 11:17:32 -07:00
Bernie Hackett
eaaa54b903 PYTHON-893 - Fix application of SON manipulators in CommandCursor. 2015-04-14 11:07:51 -07:00
Bernie Hackett
eda1e771f6 PYTHON-842 - SSL URI config support.
This commit cleans up and builds on the work in commit
cc943f176c.
2015-04-14 10:59:00 -07:00