[jira] [Updated] (MESOS-5565) Add logging when Offer::Operation::Launch message has no tasks.
[ https://issues.apache.org/jira/browse/MESOS-5565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anand Mazumdar updated MESOS-5565: -- Shepherd: Anand Mazumdar > Add logging when Offer::Operation::Launch message has no tasks. > --- > > Key: MESOS-5565 > URL: https://issues.apache.org/jira/browse/MESOS-5565 > Project: Mesos > Issue Type: Improvement >Reporter: Anand Mazumdar >Assignee: José Guilherme Vanz >Priority: Minor > Labels: newbie > > Currently, when a {{Offer::Accept::Launch}} message has no tasks specified, > Mesos would treat such requests as implicitly declining all offers. This can > be very counter-intuitive for framework developers since we do not have any > logging on the Master around this behavior. It would be good to add some > logging on the master to apprise the framework developers that all the offers > have been implicitly declined. > {code} > if (operation.type() == Offer::Operation::LAUNCH) { > if (operation.launch().task_infos().size() > 0) { > ++metrics->messages_launch_tasks; > } else { > ++metrics->messages_decline_offers; > } > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (MESOS-5565) Add logging when Offer::Operation::Launch message has no tasks.
[ https://issues.apache.org/jira/browse/MESOS-5565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Klaus Ma updated MESOS-5565: Assignee: (was: Klaus Ma) > Add logging when Offer::Operation::Launch message has no tasks. > --- > > Key: MESOS-5565 > URL: https://issues.apache.org/jira/browse/MESOS-5565 > Project: Mesos > Issue Type: Improvement >Reporter: Anand Mazumdar >Priority: Minor > Labels: newbie > > Currently, when a {{Offer::Accept::Launch}} message has no tasks specified, > Mesos would treat such requests as implicitly declining all offers. This can > be very counter-intuitive for framework developers since we do not have any > logging on the Master around this behavior. It would be good to add some > logging on the master to apprise the framework developers that all the offers > have been implicitly declined. > {code} > if (operation.type() == Offer::Operation::LAUNCH) { > if (operation.launch().task_infos().size() > 0) { > ++metrics->messages_launch_tasks; > } else { > ++metrics->messages_decline_offers; > } > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (MESOS-5565) Add logging when Offer::Operation::Launch message has no tasks.
[ https://issues.apache.org/jira/browse/MESOS-5565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Klaus Ma updated MESOS-5565: Fix Version/s: (was: 1.0.0) > Add logging when Offer::Operation::Launch message has no tasks. > --- > > Key: MESOS-5565 > URL: https://issues.apache.org/jira/browse/MESOS-5565 > Project: Mesos > Issue Type: Improvement >Reporter: Anand Mazumdar >Assignee: Klaus Ma >Priority: Minor > Labels: newbie > > Currently, when a {{Offer::Accept::Launch}} message has no tasks specified, > Mesos would treat such requests as implicitly declining all offers. This can > be very counter-intuitive for framework developers since we do not have any > logging on the Master around this behavior. It would be good to add some > logging on the master to apprise the framework developers that all the offers > have been implicitly declined. > {code} > if (operation.type() == Offer::Operation::LAUNCH) { > if (operation.launch().task_infos().size() > 0) { > ++metrics->messages_launch_tasks; > } else { > ++metrics->messages_decline_offers; > } > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (MESOS-5565) Add logging when Offer::Operation::Launch message has no tasks.
[ https://issues.apache.org/jira/browse/MESOS-5565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vinod Kone updated MESOS-5565: -- Fix Version/s: 1.0.0 > Add logging when Offer::Operation::Launch message has no tasks. > --- > > Key: MESOS-5565 > URL: https://issues.apache.org/jira/browse/MESOS-5565 > Project: Mesos > Issue Type: Improvement >Reporter: Anand Mazumdar >Priority: Minor > Labels: newbie > Fix For: 1.0.0 > > > Currently, when a {{Offer::Accept::Launch}} message has no tasks specified, > Mesos would treat such requests as implicitly declining all offers. This can > be very counter-intuitive for framework developers since we do not have any > logging on the Master around this behavior. It would be good to add some > logging on the master to apprise the framework developers that all the offers > have been implicitly declined. > {code} > if (operation.type() == Offer::Operation::LAUNCH) { > if (operation.launch().task_infos().size() > 0) { > ++metrics->messages_launch_tasks; > } else { > ++metrics->messages_decline_offers; > } > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)