mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[es] ignore version qualifiers (#33877)
This commit is contained in:
parent
6a9b9d41e2
commit
404c2c2fb8
1 changed files with 4 additions and 5 deletions
|
@ -38,7 +38,6 @@ const lastWarnedNodesForServer = new WeakMap();
|
|||
|
||||
export function ensureEsVersion(server, kibanaVersion) {
|
||||
const { callWithInternalUser } = server.plugins.elasticsearch.getCluster('admin');
|
||||
const isProd = server.config().get('env.prod');
|
||||
|
||||
server.logWithMetadata(['plugin', 'debug'], 'Checking Elasticsearch version');
|
||||
return callWithInternalUser('nodes.info', {
|
||||
|
@ -63,11 +62,11 @@ export function ensureEsVersion(server, kibanaVersion) {
|
|||
|
||||
// It's acceptable if ES and Kibana versions are not the same so long as
|
||||
// they are not incompatible, but we should warn about it
|
||||
// In development we ignore, this can be expected when testing against snapshots
|
||||
// or across version qualifiers
|
||||
const exactMisMatch = esNode.version !== kibanaVersion;
|
||||
|
||||
// Ignore version qualifiers
|
||||
// https://github.com/elastic/elasticsearch/issues/36859
|
||||
const looseMismatch = coerce(esNode.version).version !== coerce(kibanaVersion).version;
|
||||
if (isProd && exactMisMatch || looseMismatch) {
|
||||
if (looseMismatch) {
|
||||
warningNodes.push(esNode);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue