ubuntu@cosmic:~$ mongo --eval "db.foo.drop()"
MongoDB shell version v3.6.3
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 3.6.3
true
ubuntu@cosmic:~$ mongorestore --oplogReplay dump/
2019-03-29T18:43:56.477+0000 preparing collections to restore from
2019-03-29T18:43:56.478+0000 reading metadata for test.foo from dump/test/foo.metadata.json
2019-03-29T18:43:56.491+0000 restoring test.foo from dump/test/foo.bson
2019-03-29T18:43:56.493+0000 restoring indexes for collection test.foo from metadata
2019-03-29T18:43:56.501+0000 finished restoring test.foo (1 document)
2019-03-29T18:43:56.501+0000 replaying oplog
2019-03-29T18:43:56.502+0000 Failed: restore error: error applying oplog: applyOps: applyOps had one or more errors applying ops
Retrying, with the cosmic updated package:
Version table:
*** 1:3.6.3-0ubuntu2.1 500
500 http://br.archive.ubuntu.com/ubuntu cosmic-proposed/universe amd64 Packages
Restore worked:
ubuntu@cosmic:~$ mongo --eval "db.foo.drop()"
MongoDB shell version v3.6.3
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 3.6.3
true
ubuntu@cosmic:~$ mongorestore --oplogReplay dump/
2019-03-29T18:45:56.022+0000 preparing collections to restore from
2019-03-29T18:45:56.023+0000 reading metadata for test.foo from dump/test/foo.metadata.json
2019-03-29T18:45:56.039+0000 restoring test.foo from dump/test/foo.bson
2019-03-29T18:45:56.042+0000 restoring indexes for collection test.foo from metadata
2019-03-29T18:45:56.051+0000 finished restoring test.foo (1 document)
2019-03-29T18:45:56.051+0000 replaying oplog
2019-03-29T18:45:56.053+0000 done
Cosmic verification.
Reproducing the bug: br.archive. ubuntu. com/ubuntu cosmic/universe amd64 Packages
Version table:
*** 1:3.6.3-0ubuntu1 500
500 http://
ubuntu@cosmic:~$ mongo --eval "db.foo.drop()" //127.0. 0.1:27017
MongoDB shell version v3.6.3
connecting to: mongodb:
MongoDB server version: 3.6.3
true
ubuntu@cosmic:~$ mongorestore --oplogReplay dump/ 29T18:43: 56.477+ 0000 preparing collections to restore from 29T18:43: 56.478+ 0000 reading metadata for test.foo from dump/test/ foo.metadata. json 29T18:43: 56.491+ 0000 restoring test.foo from dump/test/foo.bson 29T18:43: 56.493+ 0000 restoring indexes for collection test.foo from metadata 29T18:43: 56.501+ 0000 finished restoring test.foo (1 document) 29T18:43: 56.501+ 0000 replaying oplog 29T18:43: 56.502+ 0000 Failed: restore error: error applying oplog: applyOps: applyOps had one or more errors applying ops
2019-03-
2019-03-
2019-03-
2019-03-
2019-03-
2019-03-
2019-03-
Retrying, with the cosmic updated package: br.archive. ubuntu. com/ubuntu cosmic- proposed/ universe amd64 Packages
Version table:
*** 1:3.6.3-0ubuntu2.1 500
500 http://
Restore worked: //127.0. 0.1:27017 29T18:45: 56.022+ 0000 preparing collections to restore from 29T18:45: 56.023+ 0000 reading metadata for test.foo from dump/test/ foo.metadata. json 29T18:45: 56.039+ 0000 restoring test.foo from dump/test/foo.bson 29T18:45: 56.042+ 0000 restoring indexes for collection test.foo from metadata 29T18:45: 56.051+ 0000 finished restoring test.foo (1 document) 29T18:45: 56.051+ 0000 replaying oplog 29T18:45: 56.053+ 0000 done
ubuntu@cosmic:~$ mongo --eval "db.foo.drop()"
MongoDB shell version v3.6.3
connecting to: mongodb:
MongoDB server version: 3.6.3
true
ubuntu@cosmic:~$ mongorestore --oplogReplay dump/
2019-03-
2019-03-
2019-03-
2019-03-
2019-03-
2019-03-
2019-03-
Cosmic verification succeeded.