-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 3.5.2
-
Component/s: Index Maintenance
-
Fully Compatible
-
ALL
-
-
Storage 2017-03-27
The .NET driver tests send the following command to a replica set primary:
"{ \"reIndex\" : \"ReIndexOperationTests\", \"writeConcern\" : { \"w\" : 9 } }"
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:
"{ \"nIndexesWas\" : 1, \"nIndexes\" : 1, \"indexes\" : [{ \"v\" : 2, \"key\" : { \"_id\" : 1 }, \"name\" : \"_id_\", \"ns\" : \"Tests02011550.ReIndexOperationTests\" }], \"ok\" : 1.0 }"
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.
- is related to
-
DRIVERS-359 reIndex does not support writeConcern
- Closed