[ https://issues.apache.org/jira/browse/GEODE-4959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16426266#comment-16426266 ]
Patrick Rhomberg commented on GEODE-4959: ----------------------------------------- I think the best solution, as far as stability and consistency with other commands, would be to add a {{--skip-if-exists}} option to this command. If a gateway receiver does exist but the option is provided, the output table will note that that state. If it is not provided, then an exception will be thrown to gfsh. > Attempt to create multiple gw receivers results an error on gfsh console. > ------------------------------------------------------------------------- > > Key: GEODE-4959 > URL: https://issues.apache.org/jira/browse/GEODE-4959 > Project: Geode > Issue Type: Bug > Components: docs, gfsh > Reporter: Sai Boorlagadda > Assignee: Patrick Rhomberg > Priority: Major > > {{There are several issues with create gateway-receiver command.}} > 1) Starting 1.4.0, with GEODE-3987 there is an enforcement of one gwr per > node in the xsd. So when user attempts to create multiple gwr show a better > error message then showing "*ERROR: java.lang.IllegalStateException*". > {noformat} > gfsh>start server --locators=localhost[10334] > Starting a Geode Server in > /Users/sboorlagadda/workspace/debug/geode/apache-geode-1.4.0/bin/walk-proud-feet... > ... > Server in > /Users/sboorlagadda/workspace/debug/geode/apache-geode-1.4.0/bin/walk-proud-feet > on sais-mbp-2.netgear.com[40404] as walk-proud-feet is currently online. > Process ID: 35197 > Uptime: 4 seconds > Geode Version: 1.4.0 > Java Version: 1.8.0_151 > Log File: > /Users/sboorlagadda/workspace/debug/geode/apache-geode-1.4.0/bin/walk-proud-feet/walk-proud-feet.log > JVM Arguments: -Dgemfire.locators=localhost[10334] > -Dgemfire.start-dev-rest-api=false -Dgemfire.use-cluster-configuration=true > -XX:OnOutOfMemoryError=kill -KILL %p > -Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true > -Dsun.rmi.dgc.server.gcInterval=9223372036854775806 > Class-Path: > /Users/sboorlagadda/workspace/debug/geode/apache-geode-1.4.0/lib/geode-core-1.4.0.jar:/Users/sboorlagadda/workspace/debug/geode/apache-geode-1.4.0/lib/geode-dependencies.jar > gfsh>create gateway-receiver > Member | Status > --------------- | > --------------------------------------------------------------------------------------- > walk-proud-feet | GatewayReceiver created on member "walk-proud-feet" and > will listen on the port "5,221" > gfsh>create gateway-receiver > Member | Status > --------------- | > ----------------------------------------------------------------------------------------- > walk-proud-feet | ERROR: java.lang.IllegalStateException: A Gateway Receiver > already exists on this member.{noformat} > 2) create gwr command should enforce only one gwr can be created as with > GEODE-3987, xsd supports only one. > 3) create gwr command is storing the gwr in cluster config when created with > --member option. > As there is no enforcement until 1.3 and with above stated issues with gfsh, > it could happen that some one could end up a cluster with multiple gwr > created in cluster configuration and could prevent them to upgrade to 1.4. -- This message was sent by Atlassian JIRA (v7.6.3#76005)