Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-8742

Agent resource provider config API calls should be idempotent.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 1.5.1, 1.6.0
    • None

    Description

      There are some issues w.r.t. using the current agent resource provider config API calls:

      1. UPDATE_RESOURCE_PROVIDER_CONFIG: If the caller fail to receive the HTTP response code, there is no way to retry the operation without triggering an RP restart.
      2. REMOVE_RESOURCE_PROVIDER_CONFIG: If the caller fail to receive the HTTP response code, a retry will return a 404 Not Found. But due to MESOS-7697, there is no way for the caller to know if the 404 is due to a previous successful config removal or not.

      To address these issues, we should make these calls idempotent, such that they return 200 OK when the caller retry. It would be nice if ADD_RESOURCE_PROVIDER_CONFIG is also idempotent for consistency.

      Attachments

        Issue Links

          Activity

            People

              chhsia0 Chun-Hung Hsiao
              chhsia0 Chun-Hung Hsiao
              Jie Yu Jie Yu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: