[SERVER-28856] mongodb 3.4.3 is not creating indexes. It is giving Error in description Created: 19/Apr/17  Updated: 27/Oct/23  Resolved: 19/Apr/17

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 3.4.3
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: Shankar Morwal Assignee: Kelsey Schubert
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

MongoError: The field 'safe' is not valid for an index specification.
Specification: { ns: "iseeit.deals", key:

{ name.displayValue: 1 }

,
name: "name.displayValue_1", background: true, safe: null, unique: false
Also mongo installation is not running from service. sudo service mongo start



 Comments   
Comment by Kelsey Schubert [ 19/Apr/17 ]

Hi shankar,

The safe field is not a valid index option. In MongoDB 3.4, we validate index specifications to protect against mistyped commands (SERVER-769).

Please note that SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-users group.

Kind regards,
Thomas

Generated at Thu Feb 08 04:19:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.