mirror of https://github.com/apache/lucene.git
SOLR-13366: Clarify 'Invalid stage name' warning logging in AutoScalingConfig
This commit is contained in:
parent
6c62fbf25f
commit
fe1a109476
|
@ -246,6 +246,8 @@ Other Changes
|
||||||
|
|
||||||
* SOLR-12809: Document recommended Java/Solr combinations (Erick Erickson, Jan Høydahl et.al.)
|
* 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 ==================
|
================== 8.0.0 ==================
|
||||||
|
|
||||||
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.
|
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.
|
||||||
|
|
|
@ -155,7 +155,7 @@ trigger named `foo`):
|
||||||
{
|
{
|
||||||
"name" : "foo.system",
|
"name" : "foo.system",
|
||||||
"trigger" : "solr.SystemLogListener",
|
"trigger" : "solr.SystemLogListener",
|
||||||
"stage" : ["WAITING", "STARTED", "ABORTED", "SUCCEEDED", "FAILED", "BEFORE_ACTION", "AFTER_ACTION"]
|
"stage" : ["STARTED", "ABORTED", "SUCCEEDED", "FAILED", "BEFORE_ACTION", "AFTER_ACTION"]
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,8 @@ public class AutoScalingConfig implements MapWriter {
|
||||||
TriggerEventProcessorStage stage = TriggerEventProcessorStage.valueOf(String.valueOf(stageName).toUpperCase(Locale.ROOT));
|
TriggerEventProcessorStage stage = TriggerEventProcessorStage.valueOf(String.valueOf(stageName).toUpperCase(Locale.ROOT));
|
||||||
stages.add(stage);
|
stages.add(stage);
|
||||||
} catch (Exception e) {
|
} 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);
|
listenerClass = (String)this.properties.get(AutoScalingParams.CLASS);
|
||||||
|
|
Loading…
Reference in New Issue