-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Catalog and Routing
With the balancer performing random move operations for unsharded collections, we could see an error that hints at an issue related to moving collections with certain collations:
[Balancer] "Error while doing balance","attr":{"error":{"code":8959500,"codeName":"Location8959500","errmsg":"An unexpected error occured while moving a random unsharded collection, from: shard-rs0, to: shard-rs1, nss: collation_js.collation_en2, error: CannotCreateIndex: Command request failed on source shard. :: caused by :: Recipient shard shard-rs0 reached an unrecoverable error :: caused by :: Error in specification { v: 2, key: { _fts: \"text\", _ftsx: 1 }, name: \"a_text\", weights: { a: 1 }, default_language: \"english\", language_override: \"language\", textIndexVersion: 3, collation: { locale: \"en\", caseLevel: false, caseFirst: \"off\", strength: 3, numericOrdering: false, alternate: \"non-ignorable\", maxVariable: \"punct\", normalization: false, backwards: false, version: \"57.1\" } } :: caused by :: Index type 'text' does not support collation: { locale: \"en\", caseLevel: false, caseFirst: \"off\", strength: 3, numericOrdering: false, alternate: \"non-ignorable\", maxVariable: \"punct\", normalization: false, backwards: false, version: \"57.1\" }"}
[EDIT] SERVER-89744 should have solved that, so this ticket should simply be about excluding CannotCreateIndex from the list of accepted errors.