[DOCS-9027] mongoimport does not report all failures Created: 28/Sep/16  Updated: 30/Oct/23  Resolved: 13/Dec/17

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Critical - P2
Reporter: Emily Hall Assignee: Allison Reinheimer Moore
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-7329 mongoimport does not report all failures Closed
Participants:
Days since reply: 7 years, 20 weeks ago

 Description   

in this example server is a --configsvr so it won't accept data on a non-config database.

~/main $ ./mongoimport -h localhost --port 27019  -c foo < data.json
connected to: localhost:27019
Thu Oct 11 11:07:06 imported 1 objects
 
~/main $ ./mongo --port 27019
MongoDB shell version: 2.3.0-pre-
connecting to: 127.0.0.1:27019/test
configsvr> show dbs
local	(empty)
test	(empty)
configsvr> use test
switched to db test
configsvr> db.foo.count()
0
configsvr> show collections
configsvr>

In addition to the above which is pretty bad, i recommend we also call getlasterror with w:majority or w:all before terminating.


Generated at Thu Feb 08 07:57:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.