[
https://issues.apache.org/jira/browse/GEODE-7077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16928124#comment-16928124
]
ASF subversion and git services commented on GEODE-7077:
--------------------------------------------------------
Commit 5979d81fc3e4eb0c4350af89a4da5735f9e34c04 in geode's branch
refs/heads/develop from Jinmei Liao
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=5979d81 ]
GEODE-7077: fix bug for creating pdx type at the 2nd time with no ser… (#4043)
Co-authored-by: Darrel Schneider <[email protected]>
> POST pdx can not update the pdx config when a server is running
> ---------------------------------------------------------------
>
> Key: GEODE-7077
> URL: https://issues.apache.org/jira/browse/GEODE-7077
> Project: Geode
> Issue Type: Improvement
> Components: management
> Reporter: Gang Yan
> Assignee: Darrel Schneider
> Priority: Major
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> For REST API V2 for management,
> I had one locator and one server. I did a post pdx and it worked. I then
> tried doing it again and it failed like so:
> 409 Error: Conflict
> {
> "statusCode": "ENTITY_EXISTS",
> "statusMessage": "Pdx 'PDX' already exists on member(s) server1."
> }
> Note that "409" is not documented in swagger.
> I would expect to be able to update the pdx config with the same type of
> message I get on a create (that if a server is running it needs to be
> restarted).
> If I stopped server1 then the POST worked with a 201:
> {
> "statusCode": "OK",
> "statusMessage": "Successfully updated configuration for cluster.",
> "uri": "/management/experimental/configurations/pdx"
> }
> I think POST pdx create and update should be consistent with each other. They
> should both either force you to stop a running server before you can do the
> op, or they should both support being done when a server is running.
> *TODO*
> # update the method to be put from post, the response will be 200 when
> everything runs well
--
This message was sent by Atlassian Jira
(v8.3.2#803003)