|
Currently, the test uses ReplSetTest.stopSet, but that can fail to shut down the primary if there are no electable secondaries:
d20020| 2020-02-14T21:12:06.608+0000 I STORAGE [SignalHandler] Failed to stepDown in non-command initiated shutdown path ExceededTimeLimit: No electable secondaries caught up as of 2020-02-14T21:12:06.608+0000. Please use the replSetStepDown command with the argument {force: true} to force node to step down.
|
This causes the test to hang at that line, because the shell is waiting for the primary to be shutdown as part of waitpid:
Thread 4: "js" (Thread 0x7fac52de0700 (LWP 10571))
|
#0 0x00007fac597e9f7b in waitpid () from /lib/x86_64-linux-gnu/libpthread.so.0
|
#1 0x0000564b096c92c7 in mongo::shell_utils::wait_for_pid (pid=..., block=<optimized out>, exit_code=0x7fac52dde8d8) at src/mongo/platform/process_id.h:74
|
#2 0x0000564b096c98b0 in mongo::shell_utils::WaitMongoProgram (a=owned BSONObj 16 bytes @ 0x7fac4c752d68, data=data@entry=0x0) at src/mongo/shell/shell_utils_launcher.cpp:804
|
#3 0x0000564b0989c8ce in mongo::mozjs::NativeFunctionInfo::call (cx=cx@entry=0x7fac5407b020, args=...) at src/third_party/mozjs-60/include/js/RootingAPI.h:1128
|
#4 0x0000564b0988b12b in mongo::mozjs::smUtils::call<mongo::mozjs::NativeFunctionInfo> (cx=0x7fac5407b020, argc=1, vp=<optimized out>) at src/third_party/mozjs-60/include/js/CallArgs.h:317
|
<snipped>
|
|