Commit Graph

3299 Commits

Author SHA1 Message Date
Bernie Hackett
18328a9095 BUMP 3.0 2015-04-07 15:05:22 -07:00
Bernie Hackett
ad53c1a594 Update install docs. 2015-04-07 14:56:40 -07:00
A. Jesse Jiryu Davis
7e05938452 Capitalize "Python" in changelog. 2015-04-07 16:30:02 -04:00
A. Jesse Jiryu Davis
23eaebf7b2 Note the loss of Connection and ReplicaSetConnection. 2015-04-07 16:29:25 -04:00
Bernie Hackett
5c497b9b7f Add TLS/SSL example docs. 2015-04-07 12:04:15 -07:00
A. Jesse Jiryu Davis
9690a5a2d5 PYTHON-821 - Note that the new CRUD API methods don't apply SON manipulators. 2015-04-06 13:53:51 -04:00
Bernie Hackett
c7313115b6 Merge pull request #259 from nickmilon/patch-1
Update collection.py
2015-04-05 15:57:52 -07:00
Nick Milon
d5fcf12aa0 Update collection.py
small typo in doc string
2015-04-06 00:52:59 +03:00
Bernie Hackett
16d22915ea PYTHON-874 - Support wincertstore as ca_certs fallback on Windows. 2015-04-03 13:39:11 -07:00
Bernie Hackett
fbeca92430 PYTHON-874 - Support certifi as ca_certs fallback on old pythons. 2015-04-03 09:46:18 -07:00
A. Jesse Jiryu Davis
6547e1008b PYTHON-863 - Fix heartbeatFrequencyMS.
Had slept 10.5 seconds between checks instead of 10 seconds. Introduced in
previous commit.
2015-04-02 22:35:26 -04:00
A. Jesse Jiryu Davis
fa89e4ae38 PYTHON-863 - Don't take a lock from a weakref callback. 2015-04-02 16:12:05 -04:00
A. Jesse Jiryu Davis
5648745d0b PYTHON-863 - Ref cycle in Monitor. 2015-04-02 13:42:17 -04:00
Bernie Hackett
22c16c70ed Post rc1. 2015-04-01 18:37:25 -07:00
Bernie Hackett
3dd5309378 BUMP 3.0rc1 2015-04-01 18:09:12 -07:00
Bernie Hackett
0444783a20 Update install docs. 2015-04-01 17:37:35 -07:00
Bernie Hackett
12465b9021 PYTHON-872 - Update changelog. 2015-04-01 17:31:35 -07:00
Bernie Hackett
f42422a310 PYTHON-872 - Test ConfigurationError. 2015-04-01 15:43:39 -07:00
Bernie Hackett
5dca43758e PYTHON-872 - Can't test loading system CA certs on Windows. 2015-04-01 15:43:39 -07:00
Bernie Hackett
330e6c8e04 PYTHON-872 - Add tests. 2015-04-01 15:43:39 -07:00
Bernie Hackett
365c9bad72 PYTHON-872 - Better error message on handshake failure. 2015-04-01 15:43:39 -07:00
Bernie Hackett
d396068e6a PYTHON-872 - Default to ssl.CERT_REQUIRED when ssl=True.
If ssl=True is passed as a keyword arg (or ssl=true in the URI)
but no value for ssl_cert_reqs or ssl_ca_certs has been provided,
assume ssl.CERT_REQUIRED for cert_reqs and attempt to load
system provided CA certificates. Raise ConfigurationError if
the necessary SSLContext methods don't exist.
2015-04-01 15:43:39 -07:00
A. Jesse Jiryu Davis
e786e993e6 Delete obsolete test_pool_with_fork. 2015-04-01 12:31:18 -04:00
A. Jesse Jiryu Davis
400bb19950 Fix racy tests of legacy unacknowledged writes.
Each test that writes to a collection with w=0 uses its own exclusive collection,
to avoid intermittently breaking subsequent tests.
2015-04-01 11:19:09 -04:00
A. Jesse Jiryu Davis
6865ba72ed Redundant assignment in test_crud.py. 2015-03-31 16:46:40 -04:00
A. Jesse Jiryu Davis
34bdbbe120 Reuse global test client in test_crud.py. 2015-03-31 16:45:40 -04:00
Bernie Hackett
3716b449cc PYTHON-871 - Fix encoding of defaultdict. 2015-03-27 14:35:09 -07:00
Bernie Hackett
5df17c2c63 PYTHON-818 - Remove unicode_literals future imports. 2015-03-27 10:08:11 -07:00
Bernie Hackett
76530ccd72 PYTHON-870 - Fix two unlikely reference leaks. 2015-03-26 13:00:40 -07:00
Bernie Hackett
e88764d9e0 PYTHON-869 - Use ReadPreference.PRIMARY for current_op and unlock. 2015-03-26 12:58:27 -07:00
Bernie Hackett
bfb273ddec Post rc0. 2015-03-25 14:02:41 -07:00
Bernie Hackett
8e5fdc6134 BUMP 3.0rc0 2015-03-25 13:16:50 -07:00
Bernie Hackett
aec685b374 Fix up copyright dates. 2015-03-25 11:55:02 -07:00
Bernie Hackett
7d4f916b64 Update install docs. 2015-03-25 10:58:29 -07:00
Bernie Hackett
981414da40 Define and use some constants. 2015-03-24 17:53:36 -07:00
Luke Lovett
7b5ae760a9 Close socket in test_pool_check. 2015-03-25 00:31:07 +00:00
Bernie Hackett
d2f9807cd1 PYTHON-857 - Remove MongoClient.(min|max)_wire_version.
The min_wire_version and max_wire_version attributes have
always been racy when connected to a mixed version replica set
or any sharded cluster. When connected to a mongos all you know
is the wire version of that mongos, not the shards behind it.
With mongos load balancing this problem is even worse, since
each operation could possibly be executed on a different mongo
version during an upgrade.
2015-03-24 14:38:25 -07:00
Bernie Hackett
ffbc6b995b Various doc fixes. 2015-03-24 14:28:04 -07:00
Bernie Hackett
b136092a22 PYTHON-857 - Delete test_wire_version_mongos_ha. 2015-03-24 13:27:25 -07:00
Bernie Hackett
be69d19513 PYTHON-857 - Clean up _command helper return values. 2015-03-24 13:24:02 -07:00
Bernie Hackett
725f834218 PYTHON-868 - Apply local threshold for mongos load balancing. 2015-03-24 08:43:41 -07:00
A. Jesse Jiryu Davis
2fa9231bbd PYTHON-868 - Fix secondary reads in Sharded mode. 2015-03-23 22:16:17 -04:00
Bernie Hackett
e7c5cafc07 PYTHON-865 - Fix mongos $readPreference issues. 2015-03-23 19:07:15 -07:00
Bernie Hackett
2d3f02ed38 PYTHON-857 - Fix options() for legacy server versions. 2015-03-23 14:44:35 -07:00
Bernie Hackett
4c30fae1f2 PYTHON-857 - Fix race in collection_names and options. 2015-03-23 13:39:25 -07:00
A. Jesse Jiryu Davis
8925a642ea Fix bulk result for legacy insert with write concern failure. 2015-03-21 20:49:24 -04:00
A. Jesse Jiryu Davis
edd513d3a2 Set SlaveOkay bit for list_indexes / index_information. 2015-03-21 17:28:49 -04:00
A. Jesse Jiryu Davis
a489bcf5b4 Fix test of mapreduce and read preference. 2015-03-21 17:23:47 -04:00
A. Jesse Jiryu Davis
8dd02f16ef Merge branch 'PYTHON-857-writable-max-wv'
* PYTHON-857-writable-max-wv:
  PYTHON-857 - Update C version of batch writes.
  PYTHON-857 - Fix SlaveOkay wire protocol bit for mapreduce.
  PYTHON-857 - Delete MongoClient._writable_max_wire_version().
  PYTHON-857 - Rename _get_socket_for_writes to _socket_for_writes.
  PYTHON-857 - Delete MongoClient._send_message.
  PYTHON-857 - Fix "not master" error handling.
  PYTHON-857 - Remove MongoClient.__check_gle_response.
  PYTHON-857 - Collection and Database use SocketInfo.command.
  PYTHON-857 - Complete wire-protocol race fix in Bulk API.
  PYTHON-857 - Simplify _Bulk.execute_no_results.
  PYTHON-857 - Pass socket to Collection._insert() etc.
  PYTHON-857 - Faster attribute access on SocketInfo.
  Remove MongoDB 2.5.x-specific code for retrieving an upserted _id.
  PYTHON-857 - Use SocketInfo, not MongoClient, in message.py.
  Obsolete comment about max write command size.
  PYTHON-857 - Fix server-reset logic.
  PYTHON-857 - Use client._get_socket_for_writes for write commands.
  PYTHON-857 - Use client._get_socket_for_writes for OP_UPDATE and OP_DELETE.
  PYTHON-857 - Use client._get_socket_for_writes for OP_INSERT.

Conflicts:
	pymongo/collection.py
	pymongo/helpers.py
2015-03-21 17:19:14 -04:00
A. Jesse Jiryu Davis
27874fc2ec PYTHON-857 - Update C version of batch writes.
As with the Python functions, the C implementations of _do_batched_insert and
_do_batched_write command must now take a SocketInfo, not a MongoClient, to
ensure they send the OP_INSERT or write command over the same socket used to
determine the server's wire protocol version.
2015-03-21 16:36:43 -04:00