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/05/12 00:34:59 UTC
[jira] [Reopened] (MESOS-2598) Slave state.json
frameworks.executors.queued_tasks wrong format?
[ https://issues.apache.org/jira/browse/MESOS-2598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Mahler reopened MESOS-2598:
------------------------------------
[~marco-mesos] Took a look, this is still an issue on master FWICT:
https://github.com/apache/mesos/blob/115db9250e096edf70da54c3f6aea18aefeb1a06/src/slave/http.cpp#L157
{code}
JSON::Object model(const TaskInfo& task)
{
JSON::Object object;
object.values["id"] = task.task_id().value();
object.values["name"] = task.name();
object.values["slave_id"] = task.slave_id().value();
object.values["resources"] = model(task.resources());
object.values["data"] = task.data();
if (task.has_command()) {
object.values["command"] = model(task.command());
}
if (task.has_executor()) {
object.values["executor_id"] = model(task.executor()); // XXX Bug here.
}
return object;
}
{code}
> Slave state.json frameworks.executors.queued_tasks wrong format?
> ----------------------------------------------------------------
>
> Key: MESOS-2598
> URL: https://issues.apache.org/jira/browse/MESOS-2598
> Project: Mesos
> Issue Type: Bug
> Components: statistics
> Affects Versions: 0.22.0
> Environment: Linux version 3.10.0-229.1.2.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC) ) #1 SMP Fri Mar 27 03:04:26 UTC 2015
> Reporter: Matthias Veit
> Priority: Minor
> Labels: newbie
>
> queued_tasks.executor_id is expected to be a string and not a complete json object. It should have the very same format as the tasks array on the same level.
> Example, directly taken from slave
> {noformat}
> ....
> "queued_tasks": [
> {
> "data": "",
> "executor_id": {
> "command": {
> "argv": [],
> "uris": [
> {
> "executable": false,
> "value": "http://downloads.foo.io/orchestra/storm-mesos/0.9.2-incubating-47-ovh.bb373df1c/storm-mesos-0.9.2-incubating.tgz"
> }
> ],
> "value": "cd storm-mesos* && python bin/storm supervisor storm.mesos.MesosSupervisor"
> },
> "data": "{\"assignmentid\":\"srv4.hw.ca1.foo.com\",\"supervisorid\":\"srv4.hw.ca1.foo.com-stage-ingestion-stats-slave-111-1428421145\"}",
> "executor_id": "stage-ingestion-stats-slave-111-1428421145",
> "framework_id": "20150401-160104-251662508-5050-2197-0002",
> "name": "",
> "resources": {
> "cpus": 0.5,
> "disk": 0,
> "mem": 1000
> }
> },
> "id": "srv4.hw.ca1.foo.com-31708",
> "name": "worker srv4.hw.ca1.foo.com:31708",
> "resources": {
> "cpus": 1,
> "disk": 0,
> "mem": 5120,
> "ports": "[31708-31708]"
> },
> "slave_id": "20150327-025553-218108076-5050-4122-S0"
> },
> ...
> ]
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)