Commit Graph

2854 Commits

Author SHA1 Message Date
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
Len Buckens
cc943f176c allow ssl_cert_reqs options to be passed as string 2015-04-13 12:27:05 -07:00
Bernie Hackett
2598869d26 PYTHON-864 - Support RFC-3339 offset format for $date. 2015-04-13 12:09:58 -07:00
Bernie Hackett
43347f61f1 Start work on 2.8.1. 2015-04-13 11:22:45 -07:00
Bernie Hackett
7f4c0588bc BUMP 2.8 2015-01-28 13:19:25 -08:00
Bernie Hackett
0687e9b656 PYTHON-832 - Disable copy_database auth tests with MongoDB 2.7.2+ 2015-01-28 11:48:42 -08:00
Bernie Hackett
84c34a3d45 Remove redundant test_copy_db_scram_sha_1. 2015-01-28 11:48:27 -08:00
Bernie Hackett
720a141227 Update MongoDB version references from 2.8 to 3.0. 2015-01-24 09:21:32 -08:00
Bernie Hackett
4ec3f880e1 PYTHON-830 - Fix bad uses of _get_wc_override. 2015-01-24 09:00:25 -08:00
Bernie Hackett
4acb891473 Revert "PYTHON-830 - Fix bad uses of _get_wc_override."
This reverts commit 19753f3897.
2015-01-23 18:18:07 -08:00
Bernie Hackett
19753f3897 PYTHON-830 - Fix bad uses of _get_wc_override. 2015-01-23 14:43:40 -08:00
Bernie Hackett
82af07b9c8 Remove "text" command read preference test. 2015-01-20 10:08:15 -08:00
Bernie Hackett
6b218b5120 Version -> + 2015-01-20 10:08:01 -08:00
Bernie Hackett
0b715cff2e BUMP 2.8rc2 2014-12-24 11:38:35 -08:00
Bernie Hackett
83f53499ae Fix auth DeprecationWarning test. 2014-12-23 15:37:47 -08:00
A. Jesse Jiryu Davis
9e6a267854 PYTHON-786: Silence DeprecationWarnings in test_master_slave_connection. 2014-12-21 17:11:07 -06:00
A. Jesse Jiryu Davis
61f526a2c5 PYTHON-783 Silence copy_database DeprecationWarnings in tests. 2014-12-21 17:11:07 -06:00
A. Jesse Jiryu Davis
31b83bc0e0 PYTHON-807 Silence DeprecationWarnings in getlasterror tests. 2014-12-21 17:11:07 -06:00
A. Jesse Jiryu Davis
8e794bc8fe PYTHON-807 Avoid DeprecationWarning in GridIn.close(). 2014-12-21 17:08:03 -06:00
A. Jesse Jiryu Davis
753356a723 PYTHON-807 Deprecate Database.error() and related methods. 2014-12-19 19:56:02 -05:00
James Root
2aae624dda Updated minimongo repository location 2014-12-18 16:19:37 -08:00
Bernie Hackett
a73e6cfb13 PYTHON-806 - Always use command cursor 'ns' value for OP_GET_MORE 2014-12-18 13:39:38 -08:00
Bernie Hackett
f3b6abf622 PYTHON-796 - Support listCollections and listIndexes command cursors 2014-12-18 12:12:57 -08:00
A. Jesse Jiryu Davis
be1a7be639 PYTHON-799 Python 2.4 compatibility in test_kill_cursors_warning. 2014-12-17 15:17:59 -05:00
A. Jesse Jiryu Davis
69beec6ca6 PYTHON-799 RS client's close_cursor shouldn't lock client.
We still take a lock in Pool.get_socket and maybe_return_socket, but in my tests
it doesn't seem possible to deadlock the GC from Pool.
2014-12-17 14:12:36 -05:00