You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Benjamin Mahler (JIRA)" <ji...@apache.org> on 2015/04/22 23:53:59 UTC
[jira] [Commented] (MESOS-2643) Python scheduler driver disables
implicit acknowledgments by default.
[ https://issues.apache.org/jira/browse/MESOS-2643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14507992#comment-14507992 ]
Benjamin Mahler commented on MESOS-2643:
----------------------------------------
https://reviews.apache.org/r/33452/
> Python scheduler driver disables implicit acknowledgments by default.
> ---------------------------------------------------------------------
>
> Key: MESOS-2643
> URL: https://issues.apache.org/jira/browse/MESOS-2643
> Project: Mesos
> Issue Type: Bug
> Components: python api
> Reporter: Benjamin Mahler
> Assignee: Benjamin Mahler
>
> Unfortunately, when introducing the ability to disable implicit acknowledgements, we accidentally disabled them by default for Python schedulers.
> {code}
> 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;
> }
> {code}
> The default should be to preserve backwards compatibility, by enabling implicit acknowledgments.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)