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 Bannier (JIRA)" <ji...@apache.org> on 2016/12/07 16:25:59 UTC

[jira] [Commented] (MESOS-6726) IOSwitchboardServerFlags adds flags for non-optional fields w/o providing a default value

    [ https://issues.apache.org/jira/browse/MESOS-6726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15729162#comment-15729162 ] 

Benjamin Bannier commented on MESOS-6726:
-----------------------------------------

[~klueska]: Could you find some time to address these?

> IOSwitchboardServerFlags adds flags for non-optional fields w/o providing a default value
> -----------------------------------------------------------------------------------------
>
>                 Key: MESOS-6726
>                 URL: https://issues.apache.org/jira/browse/MESOS-6726
>             Project: Mesos
>          Issue Type: Bug
>            Reporter: Benjamin Bannier
>              Labels: tech-debt
>
> The class {{IOSwitchboardFlags}} contains a number of members of non-{{Option}}, fundamental type (i.e., types which do not have constructors). As customary for a {{Flags}} class, these fields are not initialized since usually the initialization is done by the calling the correct overload of {{FlagsBase::add}} taking a default value.
> The class {{IOSwitchbardFlags}} calls an {{add}} overload acting on a non-{{Option}} member which does not take the default value. This can lead to the members containing garbage values.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)