Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-7077

POST pdx can not update the pdx config when a server is running

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.11.0
    • management
    • None

    Description

      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

      1. update the method to be put from post, the response will be 200 when everything runs well

      Attachments

        Issue Links

          Activity

            People

              dschneider Darrel Schneider
              gyan Gang Yan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h