[SERVER-17826] Ignore ismaster exceptions in initial_sync_unsupported_auth_schema.js test Created: 31/Mar/15  Updated: 18/Sep/15  Resolved: 31/Mar/15

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

Type: Task Priority: Major - P3
Reporter: Kamran K. Assignee: Kamran K.
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-17998 Ignore socket exceptions in initial_s... Closed
is related to SERVER-17808 Ensure availability in initial_sync_u... Closed
is related to SERVER-17671 Refuse to complete initial sync from ... Closed
Backwards Compatibility: Fully Compatible
Backport Completed:
Participants:
Linked BF Score: 0

 Description   

The regression test for SERVER-17671 (initial_sync_unsupported_auth_schema.js) is still causing intermittent failures, even after the fix from SERVER-17808.

The issue is that calling ReplSetTest.reInitiate causes ismaster commands to be run on each secondary. If a secondary has already aborted due to the invalid auth schema, the reInitiate call will throw an exception:

2015-03-31T01:36:32.212+0000 E QUERY    Error: error doing query: failed
    at DBQuery._exec (src/mongo/shell/query.js:94:40)
    at DBQuery.hasNext (src/mongo/shell/query.js:246:10)
    at DBCollection.findOne (src/mongo/shell/collection.js:188:19)
    at DB.runCommand (src/mongo/shell/db.js:58:41)
    at src/mongo/shell/replsettest.js:358:55
    at Function.assert.soon (src/mongo/shell/assert.js:183:17)
    at ReplSetTest.awaitSecondaryNodes (src/mongo/shell/replsettest.js:351:10)
    at ReplSetTest.initiate (src/mongo/shell/replsettest.js:460:10)
    at ReplSetTest.reInitiate (src/mongo/shell/replsettest.js:476:10)



 Comments   
Comment by Githook User [ 31/Mar/15 ]

Author:

{u'username': u'kkmongo', u'name': u'Kamran Khan', u'email': u'kamran.khan@mongodb.com'}

Message: SERVER-17826 Ignore ismaster errors in initial_sync_unsupported_auth_schema.js

reInitiate can throw because it causes an ismaster command to be run on each
secondary. These exceptions can cause intermittent test failures if the
newly added secondary aborts before the ismaster command is run on it.

Closes #945.

Signed-off-by: Ramon Fernandez <ramon.fernandez@mongodb.com>
(cherry picked from commit 0ffc0e9294f673d6d86bfcf531d57efa9b2d6966)
Branch: v3.0
https://github.com/mongodb/mongo/commit/2f624527b8263564477a95e25ade7d3afe3dbf83

Comment by Githook User [ 31/Mar/15 ]

Author:

{u'username': u'kkmongo', u'name': u'Kamran Khan', u'email': u'kamran.khan@mongodb.com'}

Message: SERVER-17826 Ignore ismaster errors in initial_sync_unsupported_auth_schema.js

reInitiate can throw because it causes an ismaster command to be run on each
secondary. These exceptions can cause intermittent test failures if the
newly added secondary aborts before the ismaster command is run on it.

Closes #945.

Signed-off-by: Ramon Fernandez <ramon.fernandez@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/0ffc0e9294f673d6d86bfcf531d57efa9b2d6966

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