From a9db272d7780a9cb0f20e801f3c086065e36e925 Mon Sep 17 00:00:00 2001 From: Jake Landis Date: Mon, 2 Oct 2023 09:51:10 -0500 Subject: [PATCH] remove security parts from this PR --- .../security/authc/support/mapper/NativeRoleMappingStore.java | 3 ++- .../xpack/security/support/SecurityIndexManager.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/support/mapper/NativeRoleMappingStore.java b/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/support/mapper/NativeRoleMappingStore.java index 348c1e5e6e36a..7fff5e646b2a4 100644 --- a/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/support/mapper/NativeRoleMappingStore.java +++ b/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/support/mapper/NativeRoleMappingStore.java @@ -296,9 +296,10 @@ private void getMappings(ActionListener> listener) { if (securityIndex.isAvailable()) { loadMappings(listener); } else { + logger.info("The security index is not yet available - no role mappings can be loaded"); if (logger.isDebugEnabled()) { logger.debug( - "The security index is not yet available - no role mappings can be loaded. index [{}] [exists: {}] [available: {}]", + "Security Index [{}] [exists: {}] [available: {}]", SECURITY_MAIN_ALIAS, securityIndex.indexExists(), securityIndex.isAvailable() diff --git a/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/support/SecurityIndexManager.java b/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/support/SecurityIndexManager.java index 1de6ce7eed4fd..048dd2fd7a925 100644 --- a/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/support/SecurityIndexManager.java +++ b/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/support/SecurityIndexManager.java @@ -137,7 +137,7 @@ public ElasticsearchException getUnavailableReason() { } else if (state.indexExists()) { return new UnavailableShardsException( null, - "index [" + state.concreteIndexName + "] exists but at least one shard is unavailable" + "at least one primary shard for the index [" + state.concreteIndexName + "] is unavailable" ); } else { return new IndexNotFoundException(state.concreteIndexName);