From 60450a38c4c4e02f3f8bc776c2df7da47fd9751e Mon Sep 17 00:00:00 2001 From: Robin Clarke Date: Wed, 9 Nov 2016 18:28:51 +0100 Subject: [PATCH] Clearer log messages in bootstrap checks This commit clarifies some log messages for the bootstrap checks. The message is that the user has limits set that are below the minimums that Elasticsearch requires. Relates #21423 --- .../java/org/elasticsearch/bootstrap/BootstrapCheck.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/org/elasticsearch/bootstrap/BootstrapCheck.java b/core/src/main/java/org/elasticsearch/bootstrap/BootstrapCheck.java index 7ddeb8981ba..06c334fd42a 100644 --- a/core/src/main/java/org/elasticsearch/bootstrap/BootstrapCheck.java +++ b/core/src/main/java/org/elasticsearch/bootstrap/BootstrapCheck.java @@ -261,7 +261,7 @@ final class BootstrapCheck { public final String errorMessage() { return String.format( Locale.ROOT, - "max file descriptors [%d] for elasticsearch process likely too low, increase to at least [%d]", + "max file descriptors [%d] for elasticsearch process is too low, increase to at least [%d]", getMaxFileDescriptorCount(), limit ); @@ -313,7 +313,7 @@ final class BootstrapCheck { public String errorMessage() { return String.format( Locale.ROOT, - "max number of threads [%d] for user [%s] likely too low, increase to at least [%d]", + "max number of threads [%d] for user [%s] is too low, increase to at least [%d]", getMaxNumberOfThreads(), BootstrapInfo.getSystemProperties().get("user.name"), maxNumberOfThreadsThreshold); @@ -337,7 +337,7 @@ final class BootstrapCheck { public String errorMessage() { return String.format( Locale.ROOT, - "max size virtual memory [%d] for user [%s] likely too low, increase to [unlimited]", + "max size virtual memory [%d] for user [%s] is too low, increase to [unlimited]", getMaxSizeVirtualMemory(), BootstrapInfo.getSystemProperties().get("user.name")); } @@ -367,7 +367,7 @@ final class BootstrapCheck { public String errorMessage() { return String.format( Locale.ROOT, - "max virtual memory areas vm.max_map_count [%d] likely too low, increase to at least [%d]", + "max virtual memory areas vm.max_map_count [%d] is too low, increase to at least [%d]", getMaxMapCount(), limit); }