[SERVER-7636] Do not use cached connection when read preference changes Created: 12/Nov/12  Updated: 11/Jul/16  Resolved: 14/Feb/13

Status: Closed
Project: Core Server
Component/s: Internal Client
Affects Version/s: 2.3.1
Fix Version/s: 2.4.0-rc1

Type: Task Priority: Major - P3
Reporter: Randolph Tan Assignee: Randolph Tan
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by RUBY-475 Changing read preference should unpin... Closed
is depended on by DRIVERS-21 Unpin member when read preference cha... Closed
is depended on by PYTHON-431 Unpin member when read preference cha... Closed
Participants:

 Description   

Current behavior - last used connection can still be used as long as they are compatible.
New behavior - last used connection can only be used if the read preference setting matches exactly.



 Comments   
Comment by auto [ 14/Feb/13 ]

Author:

{u'date': u'2013-02-14T18:50:45Z', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-7636 Do not use cached connection when read preference changes

Fixed tests that was accessing invalidated BSON internal buffer data.
Branch: master
https://github.com/mongodb/mongo/commit/d710a22595c2a7ce9f393f87ea6a85b3e95a056d

Comment by Eric Milkie [ 14/Feb/13 ]

I believe this broke dbclient_rs_test in debug mode:

https://bamboo.10gen.com/browse/MONGODB-COMMITLINUX64DEBUG-JOB1-109/log

Comment by auto [ 13/Feb/13 ]

Author:

{u'date': u'2013-02-07T18:34:44Z', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-7636 Do not use cached connection when read preference changes
Branch: master
https://github.com/mongodb/mongo/commit/ae2256441b1c96768b270ee6a866d9669d4b15ec

Generated at Thu Feb 08 03:15:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.