[SERVER-5024] Fix shutdown method on ShardingTest to work with authentication on windows Created: 21/Feb/12  Updated: 11/Jul/16  Resolved: 30/Jan/14

Status: Closed
Project: Core Server
Component/s: Security, Shell, Testing Infrastructure
Affects Version/s: 2.2.3, 2.4.0-rc0
Fix Version/s: 2.5.5

Type: Bug Priority: Minor - P4
Reporter: Eric Milkie Assignee: Mark Benvenuto
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows


Issue Links:
Duplicate
duplicates SERVER-5651 Better implementation of Windows serv... Closed
is duplicated by SERVER-8445 ShardingTest should support auth in s... Closed
Related
Operating System: Windows
Participants:

 Description   

auth1.js fails on 32-bit Windows. This is because we attempt to shut down a server. Since we can't send a signal like we can on Linux, the shutdown code simply sends a shutdown command to the server over the wire. This doesn't work because authentication is on, and the code does not currently authenticate to send a shutdown command. The code ignores the error status and eventually times out; it then deletes the process. On 64-bit Windows, upon mongod restart the server uses the journal to recover and the test continues. On 32-bit Windows the journal is off by default, so the test fails when mongod fails to restart.



 Comments   
Comment by Spencer Brody (Inactive) [ 30/Jan/14 ]

https://github.com/mongodb/mongo/commit/39032c059a318f1c9e0f917ba4af051cd1c2420f

Comment by Eric Milkie [ 08/Jan/14 ]

All that should be left to do here is uncomment out the tests that I disabled last year.

Comment by Spencer Brody (Inactive) [ 07/Jan/14 ]

This was closed as a dupe of SERVER-5651, but SERVER-5651 has been resolved and this was not addressed, so re-opening.

Comment by Daniel Pasette (Inactive) [ 18/Nov/13 ]

See SERVER-5651

Comment by auto [ 21/Feb/12 ]

Author:

{u'login': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-5024 disable more tests for Windows
Branch: master
https://github.com/mongodb/mongo/commit/cf0b0b38f4a2d41e14765ac9d1de9844a34128da

Comment by auto [ 21/Feb/12 ]

Author:

{u'login': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-5024 disable failing test on Windows for now
Branch: master
https://github.com/mongodb/mongo/commit/5954c7f9a42372538147c0d305f14e9550ab1eff

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