Page MenuHomePhabricator

CirrusSearch: updateSearchIndex.php should remove any index with the same name as the alias that it wants when passed --rebuild
Closed, ResolvedPublic

Description

CirrusSearch: updateSearchIndex.php should remove any index with the same name as the alias that it wants when passed --rebuild. Because we deploy CirrusSearch for the first time to wikis without turning off search updates we sometimes see Elasticsearch autocreate a search index at the alias location. This change will allow us to build the search index in the right location and grab the alias. Since we'll be building the index from scratch anyway we don't need the updates that created the alias-named index in the first place.


Version: unspecified
Severity: normal

Details

Reference
bz54481

Event Timeline

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

Lowering priority as we have a solution that will prevent this from happening in the first place: build the index before enabling the plugin on the web servers.