[SERVER-20794] Metadata of second mongos is out of date in jstests/sharding/shard3.js Created: 07/Oct/15  Updated: 25/Jan/17  Resolved: 07/Oct/15

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.1.9
Fix Version/s: 3.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-20690 Test with multiple mongos can fail be... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding A (10/09/15)
Participants:

 Description   

Task
Logs

Seems like the same issue that was present in jstests/sharding/shard5.js - the second mongos probably doesn't see the movePrimary:

[js_test:shard3] 2015-10-07T06:29:44.690+0000 s20015| 2015-10-07T06:29:44.689+0000 I COMMAND  [conn1] movePrimary dropping database on ip-10-144-96-213:20010, no sharded collections in test
[js_test:shard3] 2015-10-07T06:29:44.691+0000 s20015| 2015-10-07T06:29:44.690+0000 I SHARDING [conn1] about to log metadata event: { _id: "ip-10-144-96-213-2015-10-07T06:29:44.690+0000-5614bbd8fd609a730739abae", server: "ip-10-144-96-213", clientAddr: "127.0.0.1:41563", time: new Date(1444199384690), what: "movePrimary", ns: "test", details: { database: "test", from: "ip-10-144-96-213:20010", to: "shard0001:ip-10-144-96-213:20011", shardedCollections: [] } }
...
[js_test:shard3] 2015-10-07T06:29:45.356+0000 s20016| 2015-10-07T06:29:45.354+0000 D SHARDING [Balancer] found 1 shards listed on config server(s)
[js_test:shard3] 2015-10-07T06:29:45.357+0000 2015-10-07T06:29:45.354+0000 E QUERY    [thread1] Error: [3] != [0] are not equal : other A :
[js_test:shard3] 2015-10-07T06:29:45.357+0000 doassert@src/mongo/shell/assert.js:15:14
[js_test:shard3] 2015-10-07T06:29:45.357+0000 assert.eq@src/mongo/shell/assert.js:43:5
[js_test:shard3] 2015-10-07T06:29:45.357+0000 @jstests/sharding/shard3.js:36:1
[js_test:shard3] 2015-10-07T06:29:45.357+0000
[js_test:shard3] 2015-10-07T06:29:45.357+0000 failed to load: jstests/sharding/shard3.js



 Comments   
Comment by Githook User [ 07/Oct/15 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-20794 Clean up some more sharding tests and wait for movePrimary to be visible where needed
Branch: master
https://github.com/mongodb/mongo/commit/3a8fa48176bebc7067a7b7fcefb723ff1d15e116

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