-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Searchable snapshot version compatibility during upgrade #77007
Comments
Pinging @elastic/es-distributed (Team:Distributed) |
This is not just a searchable snapshot issue I guess. We record the master version as the version of a snapshot which isn't great or even correct. We should instead record the min-node version in the cluster to make sure we don't run into this kind of thing. |
Hmm on second thought this isn't as straight-forward as I thought. In the exact case mentioned here, we can solve the problem by setting the snapshot version to the min-node version in the cluster and it goes away. => don't we have the same problem with other ILM actions that move data across tiers in in mixed-version clusters if there is a mismatch between the versions of hot and less than hot nodes? |
Yes, moves like that would be blocked by the |
As discussed in #77007 (comment), it was decided that documentation on rolling upgrade should explicitly mention upgrading by tiers.
It has been discussed and agreed upon having rolling upgrade by tier (frozen, cold, warm then hot) mentioning in the doc is safer to ensure ILM bwc. This will be followed up by #77491 |
* Update rolling_upgrade.asciidoc As discussed in #77007 (comment), it was decided that documentation on rolling upgrade should explicitly mention upgrading by tiers. * Update docs/reference/upgrade/rolling_upgrade.asciidoc Co-authored-by: Henning Andersen <33268011+henningandersen@users.noreply.github.com> Co-authored-by: Henning Andersen <33268011+henningandersen@users.noreply.github.com>
@Leaf-Lin @DaveCTurner I helped a user today that ran into this during the upgrade from 7.16 to 7.17. |
Elasticsearch version (
bin/elasticsearch --version
): During an upgrade from 7.14.0 --> 7.15.0Plugins installed: []
JVM version (
java -version
): on ESSOS version (
uname -a
if on a Unix-like system): on ESSDescription of the problem including expected versus actual behavior:
ILM searchable snapshot actions and
_mount
action during upgrade should continue to work, yet if the master node is in a higher version than the other data nodes, users may encounter the following version compatibility issue with error message:node version [x0.y0.z0] is older than the snapshot version [x1.y1.z1]
Steps to reproduce:
There are two different ways to reproduce the red unassigned searchable index:
Prerequiste:
hot_content
nodes + 1data_frozen
node on Elastic cloud.kibana_sample_data_flights
index.At this point, I have one master in 7.15.0 and all the rest of the nodes in 7.14.0.
Method 1: via
_mount
API:The step above results a failed unassigned shard with:
If you check with
GET _cluster/allocation/explain
, you would see the 7.14.0data_frozen
node gives:Method 2. via ILM:
At this point, you can see that
partial-my_ilm_frozen_index
stays red (unassigned):gives:
Provide logs (if relevant):
The text was updated successfully, but these errors were encountered: