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

Consider doing an internal retry if reservation and etc. operations fail due to 409 conflict.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Accepted
    • Major
    • Resolution: Unresolved
    • None
    • None
    • master

    Description

      A reservation request may return 409 Conflict:

      https://github.com/apache/mesos/blob/261d6ef497383795557aaca5dce426b4482eabea/src/master/http.cpp#L4026

      It is due to the inherent race between the master and allocator actor. As illustrated here:

      https://github.com/apache/mesos/blob/261d6ef497383795557aaca5dce426b4482eabea/src/master/allocator/mesos/hierarchical.cpp#L992-L1008

      This is not ideal and should be rare. However, it is hard for users to grasp this error. It seems to be beneficial for Mesos to retry the reservation operation internally for the user.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mzhu Meng Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: