[ https://issues.apache.org/jira/browse/GEODE-5206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16476424#comment-16476424 ]
ASF subversion and git services commented on GEODE-5206: -------------------------------------------------------- Commit 75413624215282011ee1a6d4bd96bb6c05f659b2 in geode's branch refs/heads/develop from [~jens.deppe] [ https://gitbox.apache.org/repos/asf?p=geode.git;h=7541362 ] GEODE-5206: Add an 'ignoreFailure' flag to CliFunctionResult (#1957) - The intention of this is to avoid needing to pass 'skip-if-exists' or 'if-not-exists' flags to any command function. The function should set this flag if it determines that the construct it is dealing with either already exists or does not exist depending on the action. The calling command will then be able to use this information do display and set status appropriately. - Collapse the state of successful and ignoreable into a single enum - OK, ERROR or IGNORED. > Add an 'ignoreFailure' flag to CliFunctionResult > ------------------------------------------------ > > Key: GEODE-5206 > URL: https://issues.apache.org/jira/browse/GEODE-5206 > Project: Geode > Issue Type: Improvement > Components: gfsh > Reporter: Jens Deppe > Priority: Major > Labels: pull-request-available > Time Spent: 1h 20m > Remaining Estimate: 0h > > Various commands have the ability to be idempotent with a > {{--skip-if-exists}} (typically creation) or {{\-\-if-exists}} (typically > deletion). This flag is passed to the function performing the actual work. > With new cluster config POJOs we want to have the functions *only* accept the > POJO as an argument. To that end the function should be able to set this new > flag if the action fails because of a missing or already existing component. > It will then be up to the command to process the returned > {{CliFunctionResult}} to determine what to present to the user. -- This message was sent by Atlassian JIRA (v7.6.3#76005)