Commit Graph

1819 Commits

Author SHA1 Message Date
behackett
a33b0fce4d Fix safe with auth for MongoDB >= 2.1.x PYTHON-371
The getLastError command requires authentication in
MongoDB 2.2. See the associated ticket for more
information.
2012-07-12 10:49:13 -07:00
Ross Lawley
a5432ea0f3 Add helper for aggregate command PYTHON-366
Added collection helper method.
Created an aggregation example covering:
 * aggregate
 * map reduce
 * group
2012-07-12 09:43:55 +01:00
A. Jesse Jiryu Davis
8bd18b3cd1 Clarify gevent documentation 2012-07-11 17:18:48 -04:00
behackett
8521083b9f Version -> + 2012-07-10 11:37:20 -07:00
behackett
7e24efb517 BUMP 2.2.1 2012-07-06 12:57:28 -07:00
Dan Crosta
d8c51139cc PYTHON-145: prefer to use separate wsgi daemon processes 2012-07-06 09:35:41 -04:00
Dan Crosta
d2781ffe18 re-flow text to 70cols 2012-07-06 09:35:28 -04:00
A. Jesse Jiryu Davis
354473c35e Fix test_max_pool_size for Gevent 2012-07-05 22:59:12 -04:00
behackett
e945f5edbb Minor doc updates. 2012-07-05 15:27:11 -07:00
behackett
e7ffcaff58 Changelog for 2.2.1. 2012-07-05 15:14:31 -07:00
behackett
e160c9cba8 Add a note about RSC background tasks. 2012-07-05 13:50:38 -07:00
behackett
49ecf96721 Shutdown RSC monitor in RSC.close()
This allows applications to have some control over
termination of the replica set monitor thread or
greenlet. It also makes RSC more useable in the
interactive shell and with contextlib.closing.
2012-07-05 12:19:18 -07:00
A. Jesse Jiryu Davis
776aabe9ec More reliable test_max_pool_size 2012-07-04 23:31:03 -04:00
behackett
804b088dc0 Update distribute_setup for python 3.3.
distribute 0.6.27 fixes some issues with python 3.3. See
https://bitbucket.org/tarek/distribute/changeset/a2685f3af854

There are other distribute bugs related to python 3.3 but
that change fixes the biggest problem. See also:

https://bitbucket.org/tarek/distribute/issue/283/bdist_egg-issues-with-python-330ax
2012-07-03 15:53:12 -07:00
behackett
65bece6396 Get rid of a few weird timeout tests.
These never made much sense to me. They seem to
cause issues in CI and don't seem to be correct
either way.
2012-07-03 13:52:16 -07:00
behackett
1fe6029c5d Fix replica set monitor issues PYTHON-365.
Note: In CPython the monitor is no longer a daemon thread. This means that
care must be taken in the interactive shell and simple scripts to set
ReplicaSetConnection references to None so the monitor dies.

The monitor is still a daemon thread in Jython and PyPy.
2012-07-03 12:56:01 -07:00
behackett
d21a98aeda Fix test failure due to 2.1.2 behaviour change.
See SERVER-6226 for more information.
2012-07-03 11:06:41 -07:00
A. Jesse Jiryu Davis
c64d7cb8aa Larger timeout for slower machines 2012-07-01 22:24:33 -04:00
A. Jesse Jiryu Davis
6e53caa42d Remove dead test code 2012-07-01 22:23:56 -04:00
A. Jesse Jiryu Davis
f996068656 Fix ResourceWarning in replica set test_low_network_timeout 2012-06-29 12:03:28 -04:00
A. Jesse Jiryu Davis
43360402ce Avoid race in PyPy and Jython when thread ids are reused before thread locals are GC'ed PYTHON-353
thread.get_ident() can be recycled when a thread exits and another starts, and in PyPy / Jython we're not informed promptly that the first thread is gone. Thus the second thread may use the same request socket as the first. Replace get_ident() with a reliably unique id.
2012-06-28 14:59:52 -04:00
A. Jesse Jiryu Davis
66d48b723a BasePool shouldn't inherit from object, or Jython won't call its __del__ PYTHON-364 2012-06-26 17:37:35 -04:00
System Administrator
91814c1946 Gevent 1.0 compatibility in unittests 2012-06-26 14:53:20 -04:00
A. Jesse Jiryu Davis
6d9ecb82d0 Informative assert message if cursor used from multiple threads 2012-06-24 13:35:10 -04:00
A. Jesse Jiryu Davis
00cf0c8071 Proper cleanup after TestCollection.test_large_limit 2012-06-18 11:34:47 -05:00
Glenn Maynard
4ecbd22c19 Initialize ObjectId._inc to a random value.
This is required to prevent collisions on very large clusters.  See
https://groups.google.com/forum/?fromgroups#!topic/mongodb-user/ajgO9wUxbos
for details.  Other drivers also initialize this field to a random value.
2012-06-15 10:21:34 -07:00
A. Jesse Jiryu Davis
e1bde1bed9 More rational and reliable test_max_pool_size, especially with Gevent 2012-06-12 15:32:09 -04:00
A. Jesse Jiryu Davis
97385ca542 Fix potential race conditions in test_collection PYTHON-357 2012-06-12 15:31:59 -04:00
A. Jesse Jiryu Davis
eeef9179ec Fix connection leak in mod_wsgi 2.x and Python <= 2.6: Instead of storing SocketInfos in threadlocals, watch for thread death with a weakref callback to a generic threadlocal PYTHON-353 2012-06-12 10:05:37 -04:00
A. Jesse Jiryu Davis
58b3d646bd Debug occasionally-failing test_large_limit 2012-06-10 00:04:16 -04:00
behackett
e3f3bf23ea Skip IPv6 for 'localhost' PYTHON-356
This works around Winsock's misfeature of
re-trying connections 3 times before failing,
making localhost connections slow on Windows.
If you must use IPv6 on localhost pass ::1
as host.
2012-06-06 17:56:55 -07:00
Bernie Hackett
f4ec4be807 Avoid encoding errors with pickle.loads PYTHON-355.
This works around issues caused by applications that
use sys.setdefaultencoding to set an interpreter-wide
encoding other than ascii or utf8. This is only an
issue in python 2.x. In python 3.0 and 3.1
setdefaultencoding is a noop. It was completely
removed in python 3.2.
2012-05-30 09:56:03 -07:00
behackett
7df3540e50 Update distribute_setup.py 2012-05-01 15:38:38 -07:00
behackett
5f8765a0d7 Update trove classifiers for various python3 lists
PyPi specifically needs "Programming Language :: Python :: 3"
(not 3.1 or 3.2) to add pymongo to the "Python 3 Packages" list.
2012-05-01 15:35:51 -07:00
behackett
55d8e1163f Version -> + 2012-05-01 15:31:19 -07:00
behackett
ddf523d8ec BUMP 2.2 2012-04-30 13:36:35 -07:00
behackett
a220c237e2 Update batch_size docstring PYTHON-350 2012-04-30 12:21:24 -07:00
Bernie Hackett
3695ddb0d8 Minor install doc updates. 2012-04-30 07:50:35 -07:00
Bernie Hackett
0e026ede7e More doc cleanups. 2012-04-29 20:51:48 -07:00
Bernie Hackett
7317776574 Minor doc cleanup for Python 3. 2012-04-29 20:38:53 -07:00
A. Jesse Jiryu Davis
534073b08a Updating Gevent docs PYTHON-296 2012-04-29 21:34:05 -04:00
A. Jesse Jiryu Davis
f2cd5c6f2b Slightly refactor threading tests 2012-04-29 21:34:05 -04:00
Bernie Hackett
e83ad81522 Fix test for older mongod versions. 2012-04-29 13:10:57 -07:00
Bernie Hackett
1a0b180cd7 Avoid interpreter teardown exceptions. 2012-04-29 10:18:42 -07:00
A. Jesse Jiryu Davis
ac0ccc683a More reliable connection-pool test 2012-04-26 17:50:20 -04:00
A. Jesse Jiryu Davis
77b728ee68 Slight updates to greenlet / Gevent documentation 2012-04-26 11:02:32 -04:00
A. Jesse Jiryu Davis
a5761ff266 Skip test that fails due to SERVER-2329 2012-04-24 23:39:25 -04:00
behackett
2965128732 OSX C extension build issue clarifications. 2012-04-24 14:02:04 -07:00
behackett
cb0ffba632 Clarify python2/3 pickle issues. 2012-04-24 13:38:55 -07:00
A. Jesse Jiryu Davis
1ee89a1fe9 Fix test bug. 2012-04-24 14:55:01 -04:00