migrations Actions.readWithPit must use allow_partial_search_results=false #136271
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Migrations
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
REINDEX_SOURCE_TO_TEMP_READ
andOUTDATED_DOCUMENTS_SEARCH_READ
uses Actions.readWithPit to page through all the documents in an index. However, readWithPit doesn't setallow_partial_search_results
so it defaults to true. This means the search will successfully complete with partial results if one of the shards aren't available. When upgrading Kibana from an previous version this could lead to data loss.Because we always go through the
WAIT_FOR_YELLOW_SOURCE
step first, it's unlikely that the source index's shards aren't available, but this isn't a guarantee.This potentially impacts all versions since 7.14 (#97222)
The text was updated successfully, but these errors were encountered: