You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Bernd Mathiske (JIRA)" <ji...@apache.org> on 2014/11/04 11:58:33 UTC
[jira] [Commented] (MESOS-2038) Remove dead code in Slave::_runTask
[ https://issues.apache.org/jira/browse/MESOS-2038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14195993#comment-14195993 ]
Bernd Mathiske commented on MESOS-2038:
---------------------------------------
https://reviews.apache.org/r/27567/
> Remove dead code in Slave::_runTask
> -----------------------------------
>
> Key: MESOS-2038
> URL: https://issues.apache.org/jira/browse/MESOS-2038
> Project: Mesos
> Issue Type: Improvement
> Components: slave
> Affects Versions: 0.21.0
> Reporter: Bernd Mathiske
> Assignee: Bernd Mathiske
> Priority: Trivial
> Labels: newbie
> Fix For: 0.22.0
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> In the course of fixing MESOS-947, it has been overlooked by me that the code in question became dead code. Coverty caught this.
> At the top of _runTask(), there is now a test whether framework is NULL and in each case it ever is before reaching the code in question (see below) there is a local exit from the method. So we should be able to remove this code without effect:
> - if (framework == NULL) {
> - framework = new Framework(this, frameworkId, frameworkInfo, pid);
> - frameworks[frameworkId] = framework;
> - }
> -
> - CHECK_NOTNULL(framework);
> -
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)