While duplicating collection, process runs forever

Chessbase India shared this problem 5 years ago
Cannot Reproduce

1. Connected to SSH MongoDb and cloning, and everything else was working fine.

2. Then suddenly, I tried creating a collection copy by using the "Duplicate Collection" menu.

3. Now process runs forever and never completes.

4. Tried restarting MongoDb, other MongoDb on a different servers and still same behavior.

5. Tried uninstalling and reinstalling the latest, but same.

Please help ASAP.


-------------

Auto-generated code:

const BATCH_SIZE = 2000;


let srcConnection = "GO4HOSTING-CBIN-PROD";

let srcDb = "cbin";

let dstConnection = "GO4HOSTING-CBIN-PROD";

let dstDb = "cbin";

Response and stuck there after:

#script:26:13 +0.914s

Copy docs from GO4HOSTING-CBIN-PROD:cbin:news to GO4HOSTING-CBIN-PROD:cbin:v2_news start...

#script:26:13 +0.914s

Copy docs from GO4HOSTING-CBIN-PROD:cbin:news to GO4HOSTING-CBIN-PROD:cbin:v2_news start...

Replies (1)

photo
1

When it is unresponsive, please use db.currentOp() and db.killOp() methods to help you quickly find and terminate long-running queries, updates, deletes, etc.

Leave a Comment
 
Attach a file