[SERVER-8721] Secondaries with {textSearchEnabled:false} will build text indexes, but won't perform text searches Created: 25/Feb/13  Updated: 08/Mar/13  Resolved: 26/Feb/13

Status: Closed
Project: Core Server
Component/s: Replication, Text Search
Affects Version/s: 2.4.0-rc1
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: J Rassi Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

(Filing on behalf of milkie)

The procedure that we document for enabling text search on sharded/replicated clusters is to set

{textSearchEnabled:true}

on every mongos and mongod.

Consider the following failure scenario, in which the user does not follow the documented instructions:

1. User enables text search on mongos and their primaries, but forgets to enable it on their secondaries
2. User initiates a text index build via mongos (i.e. does not do a rolling index build); all members of the cluster (including secondaries) will successfully build the index
3. Much later, one of the secondaries gets promoted to primary
4. All searches will subsequently fail (since the new primary does not have text search enabled)

Suggested fix: force secondaries to fail at index build time if they do not have text search enabled.


Generated at Thu Feb 08 03:18:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.