SOLR-13366: Clarify 'Invalid stage name' warning logging in AutoScalingConfig

This commit is contained in:
Christine Poerschke 2019-04-12 16:01:55 +01:00
parent 6c62fbf25f
commit fe1a109476
3 changed files with 5 additions and 2 deletions

View File

@ -246,6 +246,8 @@ Other Changes
* SOLR-12809: Document recommended Java/Solr combinations (Erick Erickson, Jan Høydahl et.al.)
* SOLR-13366: Clarify 'Invalid stage name' warning logging in AutoScalingConfig (Christine Poerschke)
================== 8.0.0 ==================
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.

View File

@ -155,7 +155,7 @@ trigger named `foo`):
{
"name" : "foo.system",
"trigger" : "solr.SystemLogListener",
"stage" : ["WAITING", "STARTED", "ABORTED", "SUCCEEDED", "FAILED", "BEFORE_ACTION", "AFTER_ACTION"]
"stage" : ["STARTED", "ABORTED", "SUCCEEDED", "FAILED", "BEFORE_ACTION", "AFTER_ACTION"]
}
----

View File

@ -81,7 +81,8 @@ public class AutoScalingConfig implements MapWriter {
TriggerEventProcessorStage stage = TriggerEventProcessorStage.valueOf(String.valueOf(stageName).toUpperCase(Locale.ROOT));
stages.add(stage);
} catch (Exception e) {
log.warn("Invalid stage name '" + name + "' in listener config, skipping: " + properties);
log.warn("Invalid stage name '{}' for '{}' in listener config, skipping it in: {}",
stageName, name, properties);
}
}
listenerClass = (String)this.properties.get(AutoScalingParams.CLASS);