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

Python scheduler driver disables implicit acknowledgments by default.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.22.1
    • python api
    • None

    Description

      Unfortunately, when introducing the ability to disable implicit acknowledgements, we accidentally disabled them by default for Python schedulers.

      int MesosSchedulerDriverImpl_init(MesosSchedulerDriverImpl* self,
                                        PyObject* args,
                                        PyObject* kwds)
      {
        // Note: We use an integer for 'implicitAcknoweldgements' because
        // it is the recommended way to pass booleans through CPython.
        PyObject* schedulerObj = NULL;
        PyObject* frameworkObj = NULL;
        const char* master;
        int implicitAcknowledgements; // XXX Should be set to 1 by default!
        PyObject* credentialObj = NULL;
      
        if (!PyArg_ParseTuple(
            args,
            "OOs|iO",
            &schedulerObj,
            &frameworkObj,
            &master,
            &implicitAcknowledgements,
            &credentialObj)) {
          return -1;
        }
      

      The default should be to preserve backwards compatibility, by enabling implicit acknowledgments.

      Attachments

        Issue Links

          Activity

            People

              bmahler Benjamin Mahler
              bmahler Benjamin Mahler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: