Page MenuHomePhabricator

MergeMappingException[Merge failed with failures {[mapper [text_bytes] has different index values]}]
Closed, DeclinedPublic

Description

Repro:

$ php updateSearchIndexConfig.php --closeOk
content index...

Infering index identifier...wiki_content_first
Index exists so validating...
        Validating number of shards...ok
        Validating number of replicas...ok
Validating analyzers...different...corrected
Validating mappings...
        Validating mapping for page type...different...failed!

Couldn't update mappings. Here is elasticsearch's error message: MergeMappingException[Merge failed with failures {[mapper [text_bytes] has different index values]}]


Version: master
Severity: normal

Details

Reference
bz61920

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:55 AM
bzimport added a project: CirrusSearch.
bzimport set Reference to bz61920.
bzimport added a subscriber: Unknown Object (MLST).

Depending on the circumstances this is either expected behavior or a bug. If you haven't pulled new Cirrus code then this is likely a bug. Then it is likely caused by an update to the mapping for text_bytes and you can't --closeOk. You'll need to --reindexAndRemoveOk --indexIdentifier now.

Or you are trying to use Elasticsearch 1.0 which we don't yet support. I'm working on that now.

I hit this last week in production. --reindexAndRemoveOk --indexIdentifier now worked around it, but a more graceful failure would be nice.

debt subscribed.

This doesn't occur any more - it was fixed previously. Declining.