OpenSearch/docs/reference/commands
David Turner 7abeaba8bb Prevent in-place downgrades and invalid upgrades (#41731)
Downgrading an Elasticsearch node to an earlier version is unsupported, because
we do not make any attempt to guarantee that a node can read any of the on-disk
data written by a future version. Yet today we do not actively prevent
downgrades, and sometimes users will attempt to roll back a failed upgrade with
an in-place downgrade and get into an unrecoverable state.

This change adds the current version of the node to the node metadata file, and
checks the version found in this file against the current version at startup.
If the node cannot be sure of its ability to read the on-disk data then it
refuses to start, preserving any on-disk data in its upgraded state.

This change also adds a command-line tool to overwrite the node metadata file
without performing any version checks, to unsafely bypass these checks and
recover the historical and lenient behaviour.
2019-05-21 08:04:30 +01:00
..
certgen.asciidoc [DOCS] Escape depcreated[] note for Asciidoctor migration (#41608) 2019-04-30 15:19:43 -04:00
certutil.asciidoc Improve certutil --pass documentation about empty password (#40574) 2019-03-29 10:11:00 +11:00
index.asciidoc Add elasticsearch-node tool docs (#37812) 2019-03-12 12:47:10 +01:00
migrate-tool.asciidoc Deprecate the native realm migration tool (#42142) 2019-05-16 09:52:31 -04:00
node-tool.asciidoc Prevent in-place downgrades and invalid upgrades (#41731) 2019-05-21 08:04:30 +01:00
saml-metadata.asciidoc [DOCS] Fixes command page titles 2018-08-28 14:34:39 -07:00
setup-passwords.asciidoc [DOCS] Adds link to list of built-in users (#39529) 2019-03-01 10:32:49 -08:00
shard-tool.asciidoc add elasticsearch-shard tool (#32281) 2018-09-19 10:28:22 +02:00
syskeygen.asciidoc
users-command.asciidoc [DOCS] Fixes command page titles 2018-08-28 14:34:39 -07:00