[SERVER-27891] reIndex command ignores writeConcern Created: 01/Feb/17 Updated: 05/Apr/17 Resolved: 03/Mar/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Index Maintenance |
| Affects Version/s: | 3.5.2 |
| Fix Version/s: | 3.5.4 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Robert Stam | Assignee: | Maria van Keulen |
| Resolution: | Done | Votes: | 0 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||||||
| Steps To Reproduce: | Using an older version of the shell (one that doesn't use OP_COMMAND?):
|
||||||||||||||||||||||||||||||
| Sprint: | Storage 2017-03-27 | ||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||
| Description |
|
The .NET driver tests send the following command to a replica set primary:
It is expecting an error back because { w : 9 } is not valid for a replica set with 3 nodes. The response back from the server is:
This is probably an issue of which code path is being used in the server. If you try to reproduce this using the current shell you get the expected error. If you use an older shell you don't get the expected error. The .NET driver and older shells don't use OP_COMMAND, so the difference probably lies in that. |
| Comments |
| Comment by Bernie Hackett [ 02/Mar/17 ] | ||||||||||||||||||||||
|
We're trying to figure out what drivers this change affects. It is a breaking change after all. | ||||||||||||||||||||||
| Comment by Githook User [ 02/Mar/17 ] | ||||||||||||||||||||||
|
Author: {u'username': u'mvankeulen94', u'name': u'Maria van Keulen', u'email': u'maria@mongodb.com'}Message: | ||||||||||||||||||||||
| Comment by Bernie Hackett [ 02/Mar/17 ] | ||||||||||||||||||||||
|
Following
| ||||||||||||||||||||||
| Comment by Githook User [ 27/Feb/17 ] | ||||||||||||||||||||||
|
Author: {u'username': u'mvankeulen94', u'name': u'Maria van Keulen', u'email': u'maria@mongodb.com'}Message: | ||||||||||||||||||||||
| Comment by Eric Milkie [ 01/Feb/17 ] | ||||||||||||||||||||||
|
Ah, I see. This is a mistake in the implementation for CmdReIndex.. it has supportsWriteConcern set to "true". | ||||||||||||||||||||||
| Comment by Robert Stam [ 01/Feb/17 ] | ||||||||||||||||||||||
|
Not always... here's a repro using 3.5.2 for the shell and the server:
| ||||||||||||||||||||||
| Comment by Eric Milkie [ 01/Feb/17 ] | ||||||||||||||||||||||
|
I suspect the reIndex command probably ignores all parameters it doesn't understand? |