You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Kevin Klues (JIRA)" <ji...@apache.org> on 2016/12/07 16:52:58 UTC
[jira] [Assigned] (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:all-tabpanel ]
Kevin Klues reassigned MESOS-6726:
----------------------------------
Assignee: Kevin Klues
> 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
> Assignee: Kevin Klues
> 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)