mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Added explicit version checks fo 1.0.0.Beta1,2 as they are not compatible but pass the <0.90.9 test.
This commit is contained in:
parent
081c32edf9
commit
a5a22018f2
1 changed files with 8 additions and 2 deletions
|
@ -38,12 +38,18 @@ public class Plugin extends AbstractPlugin {
|
|||
|
||||
// copied here because we can't depend on it available
|
||||
public static final int V_0_90_9_ID = /*00*/900999;
|
||||
public static final int V_1_0_0_Beta1_ID = 1000001;
|
||||
public static final int V_1_0_0_Beta2_ID = 1000002;
|
||||
|
||||
|
||||
public final boolean enabled;
|
||||
|
||||
public Plugin() {
|
||||
if (Version.CURRENT.id < V_0_90_9_ID) {
|
||||
logger.warn("Elasticsearch version [{}] is too old. Marvel is disabled (requires version 0.90.9 or higher)", Version.CURRENT);
|
||||
if (Version.CURRENT.id == V_1_0_0_Beta1_ID || Version.CURRENT.id == V_1_0_0_Beta2_ID) {
|
||||
logger.warn("Elasticsearch version [{}] is incompatible with Marvel. Please upgrade to version 1.0.0.RC1 or higher.", Version.CURRENT);
|
||||
enabled = false;
|
||||
} else if (Version.CURRENT.id < V_0_90_9_ID) {
|
||||
logger.warn("Elasticsearch version [{}] is too old. Marvel is disabled (requires version 0.90.9 or higher).", Version.CURRENT);
|
||||
enabled = false;
|
||||
} else {
|
||||
enabled = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue