More info
With 50k of collections, where things seem to work:
{"t":{"$date":"2022-11-13T15:08:10.075+00:00"},"s":"I", "c":"STORAGE", "id":22322, "ctx":"SignalHandler","msg":"Shutting down checkpoint thread"}
{"t":{"$date":"2022-11-13T15:08:10.075+00:00"},"s":"I", "c":"STORAGE", "id":22323, "ctx":"SignalHandler","msg":"Finished shutting down checkpoint thread"}
{"t":{"$date":"2022-11-13T15:08:10.075+00:00"},"s":"I", "c":"STORAGE", "id":4795902, "ctx":"SignalHandler","msg":"Closing WiredTiger","attr":{"closeConfig":"leak_memory=true,"}}
{"t":{"$date":"2022-11-13T15:08:10.078+00:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"SignalHandler","msg":"WiredTiger message","attr":{"message":"[1668352090:78792][1:0x7fa53e7ef700], close_ckpt: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 391, snapshot max: 391 snapshot count: 0, oldest timestamp: (1668352072, 1) , meta checkpoint timestamp: (1668352077, 1)"}}
{"t":{"$date":"2022-11-13T15:08:10.090+00:00"},"s":"I", "c":"STORAGE", "id":4795901, "ctx":"SignalHandler","msg":"WiredTiger closed","attr":{"durationMillis":15}}
{"t":{"$date":"2022-11-13T15:08:10.103+00:00"},"s":"I", "c":"STORAGE", "id":22279, "ctx":"SignalHandler","msg":">>>shutdown: removing fs lock...<<<"}
{"t":{"$date":"2022-11-13T15:08:10.103+00:00"},"s":"I", "c":"-", "id":4784931, "ctx":"SignalHandler","msg":"Dropping the scope cache for shutdown"}
{"t":{"$date":"2022-11-13T15:08:10.103+00:00"},"s":"I", "c":"FTDC", "id":4784926, "ctx":"SignalHandler","msg":"Shutting down full-time data capture"}
{"t":{"$date":"2022-11-13T15:08:10.103+00:00"},"s":"I", "c":"FTDC", "id":20626, "ctx":"SignalHandler","msg":"Shutting down full-time diagnostic data capture"}
{"t":{"$date":"2022-11-13T15:08:10.106+00:00"},"s":"I", "c":"CONTROL", "id":20565, "ctx":"SignalHandler","msg":"Now exiting"}
{"t":{"$date":"2022-11-13T15:08:10.106+00:00"},"s":"I", "c":"CONTROL", "id":23138, "ctx":"SignalHandler","msg":"Shutting down","attr":{"exitCode":0}}
With 500k collections, where things seem not work anymore:
{"t":{"$date":"2022-11-13T18:55:55.101+00:00"},"s":"I", "c":"STORAGE", "id":22323, "ctx":"SignalHandler","msg":"Finished shutting down checkpoint thread"}
{"t":{"$date":"2022-11-13T18:55:55.148+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn88","msg":"Connection ended","attr":{"remote":"10.12.3.1:22553","connectionId":88,"connectionCount":1}}
{"t":{"$date":"2022-11-13T18:55:55.233+00:00"},"s":"I", "c":"STORAGE", "id":4795902, "ctx":"SignalHandler","msg":"Closing WiredTiger","attr":{"closeConfig":"leak_memory=true,"}}
{"t":{"$date":"2022-11-13T18:55:55.959+00:00"},"s":"I", "c":"CONNPOOL", "id":22576, "ctx":"MirrorMaestro","msg":"Connecting","attr":{"hostAndPort":"34.65.82.238:27017"}}
{"t":{"$date":"2022-11-13T18:55:57.959+00:00"},"s":"I", "c":"CONNPOOL", "id":22576, "ctx":"MirrorMaestro","msg":"Connecting","attr":{"hostAndPort":"34.65.82.238:27017"}}
{"t":{"$date":"2022-11-13T18:55:59.959+00:00"},"s":"I", "c":"CONNPOOL", "id":22576, "ctx":"MirrorMaestro","msg":"Connecting","attr":{"hostAndPort":"34.65.82.238:27017"}}
{"t":{"$date":"2022-11-13T18:55:59.959+00:00"},"s":"I", "c":"CONNPOOL", "id":22576, "ctx":"MirrorMaestro","msg":"Connecting","attr":{"hostAndPort":"34.65.90.245:27017"}}
{"t":{"$date":"2022-11-13T18:56:01.959+00:00"},"s":"I", "c":"CONNPOOL", "id":22576, "ctx":"MirrorMaestro","msg":"Connecting","attr":{"hostAndPort":"34.65.90.245:27017"}}
{"t":{"$date":"2022-11-13T18:56:03.959+00:00"},"s":"I", "c":"CONNPOOL", "id":22576, "ctx":"MirrorMaestro","msg":"Connecting","attr":{"hostAndPort":"34.65.90.245:27017"}}
{"t":{"$date":"2022-11-13T18:56:05.959+00:00"},"s":"I", "c":"CONNPOOL", "id":22576, "ctx":"MirrorMaestro","msg":"Connecting","attr":{"hostAndPort":"34.65.90.245:27017"}}
{"t":{"$date":"2022-11-13T18:56:07.959+00:00"},"s":"I", "c":"CONNPOOL", "id":22576, "ctx":"MirrorMaestro","msg":"Connecting","attr":{"hostAndPort":"34.65.90.245:27017"}}
{"t":{"$date":"2022-11-13T18:56:09.462+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn159850","msg":"Connection ended","attr":{"remote":"10.12.3.1:51944","connectionId":159850,"connectionCount":0}}
{"t":{"$date":"2022-11-13T18:56:09.959+00:00"},"s":"I", "c":"CONNPOOL", "id":22576, "ctx":"MirrorMaestro","msg":"Connecting","attr":{"hostAndPort":"34.65.90.245:27017"}}
{"t":{"$date":"2022-11-13T18:56:11.959+00:00"},"s":"I", "c":"CONNPOOL", "id":22576, "ctx":"MirrorMaestro","msg":"Connecting","attr":{"hostAndPort":"34.65.90.245:27017"}}
{"t":{"$date":"2022-11-13T18:56:13.959+00:00"},"s":"I", "c":"CONNPOOL", "id":22576, "ctx":"MirrorMaestro","msg":"Connecting","attr":{"hostAndPort":"34.65.90.245:27017"}}
=> seems not able shutdown to the end