cheriston
[root@server22 ~]# mongorestore --host 192.168.127.22:27017 --oplogReplay
2020-01-03T17:31:36.817+0800 using default 'dump' directory
2020-01-03T17:31:36.817+0800 preparing collections to restore from
2020-01-03T17:31:36.818+0800 reading metadata for test.random from dump/test/random.metadata.json
2020-01-03T17:31:36.819+0800 restoring to existing collection config.cache.chunks.test.random without dropping
2020-01-03T17:31:36.819+0800 reading metadata for config.cache.chunks.test.random from dump/config/cache.chunks.test.random.metadata.json
2020-01-03T17:31:36.819+0800 restoring config.cache.chunks.test.random from dump/config/cache.chunks.test.random.bson
2020-01-03T17:31:36.819+0800 restoring to existing collection config.cache.databases without dropping
2020-01-03T17:31:36.819+0800 reading metadata for config.cache.databases from dump/config/cache.databases.metadata.json
2020-01-03T17:31:36.819+0800 restoring to existing collection config.cache.collections without dropping
2020-01-03T17:31:36.819+0800 reading metadata for config.cache.collections from dump/config/cache.collections.metadata.json
2020-01-03T17:31:36.820+0800 restoring config.cache.databases from dump/config/cache.databases.bson
2020-01-03T17:31:36.821+0800 finished restoring test.random (0 documents, 0 failures)
2020-01-03T17:31:36.821+0800 restoring config.cache.collections from dump/config/cache.collections.bson
2020-01-03T17:31:36.821+0800 finished restoring config.cache.chunks.test.random (0 documents, 0 failures)
2020-01-03T17:31:36.822+0800 terminating read on config.cache.databases
2020-01-03T17:31:36.822+0800 finished restoring config.cache.databases (0 documents, 0 failures)
2020-01-03T17:31:36.822+0800 terminating read on config.cache.collections
panic: close of closed channel