-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix debug log for missing ISM config index #846
Conversation
@@ -262,6 +262,11 @@ class ManagedIndexCoordinator( | |||
*/ | |||
@OpenForTesting | |||
suspend fun sweepClusterChangedEvent(event: ClusterChangedEvent) { | |||
// If IM config doesn't exist skip | |||
if (!ismIndices.indexManagementIndexExists()) { | |||
logger.warn("[.opendistro-ism-config] config index does not exist") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a debug level log
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should I do logger.info()
instead? @eirsep
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logger.debug(
)
Signed-off-by: Ronnak Saxena <ronsax@amazon.com>
Signed-off-by: Ronnak Saxena <ronsax@amazon.com>
Signed-off-by: Ronnak Saxena <ronsax@amazon.com>
* Does not sweep if cluster doesn't contain an ISM Config Index Signed-off-by: Ronnak Saxena <ronsax@amazon.com> * fixed the warn message Signed-off-by: Ronnak Saxena <ronsax@amazon.com> * changed log from warn to debug Signed-off-by: Ronnak Saxena <ronsax@amazon.com> --------- Signed-off-by: Ronnak Saxena <ronsax@amazon.com> (cherry picked from commit 99df725)
* Does not sweep if cluster doesn't contain an ISM Config Index Signed-off-by: Ronnak Saxena <ronsax@amazon.com> * fixed the warn message Signed-off-by: Ronnak Saxena <ronsax@amazon.com> * changed log from warn to debug Signed-off-by: Ronnak Saxena <ronsax@amazon.com> --------- Signed-off-by: Ronnak Saxena <ronsax@amazon.com> (cherry picked from commit 99df725) Co-authored-by: Ronnak Saxena <63483386+ronnaksaxena@users.noreply.github.com>
More Accurate Error Message
Issue 697
Description of changes:
These would be the results of the changed output logs in different cases:
Before Change:
After Change:
CheckList:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.