jvarenina commented on a change in pull request #6036:
URL: https://github.com/apache/geode/pull/6036#discussion_r605597391
##########
File path:
geode-core/src/main/java/org/apache/geode/internal/cache/xmlcache/CacheXmlParser.java
##########
@@ -642,6 +660,16 @@ private void startGatewaySender(Attributes atts) {
gatewaySenderFactory.setPersistenceEnabled(Boolean.parseBoolean(enablePersistence));
}
+ // Gateway-sender state
+ String state = atts.getValue(STATE);
+ if (Objects.equals(state, GatewaySenderState.RUNNING.getState()) ||
+ Objects.equals(state, GatewaySenderState.STOPPED.getState()) ||
+ Objects.equals(state, GatewaySenderState.PAUSED.getState())) {
+
gatewaySenderFactory.setState(GatewaySenderState.valueOf(state.toUpperCase()));
+ } else {
+ gatewaySenderFactory.setState(null);
Review comment:
Yes, you are right! I will throw `InternalGemFireException`, since same
is done for other parameters (e.g. orderPolicy).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]