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/06 11:11:26 UTC

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

Benjamin Bannier created MESOS-6726:
---------------------------------------

             Summary: 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


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)