[SERVER-6834] jstests/sharding/read_pref.js fails sometimes Created: 23/Aug/12  Updated: 11/Jul/16  Resolved: 30/Aug/12

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 2.2.1, 2.3.0

Type: Bug Priority: Major - P3
Reporter: Tad Marshall Assignee: Tad Marshall
Resolution: Done Votes: 0
Labels: buildbot
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Failure seen in Windows x64


Attachments: HTML File Build Logs - 2012-08-22 03 21 Windows 64-bit - #4982 - read_pref.html    
Operating System: ALL
Participants:

 Description   

Buildbot sharding suite: http://buildlogs.mongodb.org/build/50345026d2a60f449d00091a/test/5034ade0d2a60f2e22000e7c/

jstests/sharding/read_pref.js stops 4 out of 5 nodes in a replica set, leaving just a secondary running. But it tests that it has reached this state by looking at the state of only one of the nodes that it has stopped (and the one it left running), so the test for 'readPref( "nearest" )' may try to use a secondary that has been stopped. The test should wait until mongos sees all stopped nodes as down before testing "nearest".



 Comments   
Comment by auto [ 12/Sep/12 ]

Author:

{u'date': u'2012-08-23T07:42:21-07:00', u'email': u'tad@10gen.com', u'name': u'Tad Marshall'}

Message: SERVER-6834 wait for all stopped nodes to be down in test

Wait for all the nodes that we stopped to be seen as

{ ok : false }

before proceeding to the next part of the test.
Branch: v2.2
https://github.com/mongodb/mongo/commit/0fb9a7a745affefed607c4a779e540d7f8a6c38c

Comment by Tad Marshall [ 30/Aug/12 ]

Backport to 2.2 branch would make the test reliable there.

Comment by auto [ 30/Aug/12 ]

Author:

{u'date': u'2012-08-23T07:42:21-07:00', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}

Message: SERVER-6834 wait for all stopped nodes to be down in test

Wait for all the nodes that we stopped to be seen as

{ ok : false }

before proceeding to the next part of the test.
Branch: master
https://github.com/mongodb/mongo/commit/4eb7f6c764c4dde05211fdfa33027d14038338ff

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