[SERVER-5073] replsetrestart1.js fails in 32-bit Windows Created: 24/Feb/12  Updated: 11/Jul/16  Resolved: 24/Feb/12

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 2.1.0
Fix Version/s: 2.1.1

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

32-bit Windows


Operating System: Windows
Participants:

 Description   

The replsetrestart1.js test fails in 32-bit Windows because a "shutdown" command without force does not shut down the primary within the 30 seconds we wait before forcefully terminating the process. When we terminate the process, this leaves the mongod.lock file in place and in 32-bit we don't have journaling by default, so the restart of the primary fails.

Adding a force option to the shutdown command sent by the shell makes the shutdown happen, and raising the timeout from 30 seconds to 60 seconds reduces the window for a race. In the logs of the failure, the primary is still trying to talk to the (no longer running) secondaries right up until it gets terminated.



 Comments   
Comment by auto [ 24/Feb/12 ]

Author:

{u'login': u'tadmarshall', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}

Message: SERVER-5073 fix failing test in 32-bit Windows

Use the "force" option in the Windows version's kill_wrapper()
routine (called by the StopMongoProgram() and related shell
commands) so we can shut down a replica set primary after we have
shut down the secondaries. Increase the timeout before using the
Windows TerminateProcess() API from 30 seconds to 60 seconds to
reduce the window for a race.
Branch: master
https://github.com/mongodb/mongo/commit/0d67a4740d9bb05c99f9fb2fc1be73b39e2881f8

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