[SERVER-1878] mongorestore & mongoimport should check isMaster() WAS: mongoimport reports 'imported n objects' when connected to secondary replica member - but has actually imported nothing Created: 30/Sep/10 Updated: 12/Jul/16 Resolved: 08/Oct/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | 1.7.0 |
| Fix Version/s: | 1.7.2 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Mark Kirkwood | Assignee: | Kristina Chodorow (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu 10.04 x86_64 running Mongodb 1.7.0 built from src. |
||
| Operating System: | Linux |
| Participants: |
| Description |
|
mongoimport reports 'imported n objects' when connected to secondary replica member - but has actually imported nothing. This is misleading. It should produce an error. $ mongo --port 27018 test
$ mongoimport --port 27018 -f id,val -d test -c bug \ $ mongo --port 27018 test |
| Comments |
| Comment by auto [ 08/Oct/10 ] |
|
Author: {'login': 'kchodorow', 'name': 'Kristina Chodorow', 'email': 'kristina@10gen.com'}Message: check imports are going to a master |