[
https://issues.apache.org/jira/browse/MESOS-7098?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yan Xu updated MESOS-7098:
--------------------------
Description:
Mesos flags currently has an {{unknowns}} argument in the {{load}} method to
ignore unknown flags:
https://github.com/apache/mesos/blob/c2388a511c775dd6f392961b06fd7738bf051dbc/3rdparty/stout/include/stout/flags/flags.hpp#L74-L86
However to use it you can have to programmatically set it before producing a
binary. Plus it's makes all unknown flags OK.
This makes it hard to use for operators who in the case upgrading to a new
version of binary that stops supporting a removed flag.
Gflags supports a {{--undefok=flagname,flagname}} flag and we can do something
similar: https://gflags.github.io/gflags/#special
was:
Mesos flags currently has an {{unknowns}} argument in the {{load}} method to
ignore unknown flags:
https://github.com/apache/mesos/blob/c2388a511c775dd6f392961b06fd7738bf051dbc/3rdparty/stout/include/stout/flags/flags.hpp#L74-L86
However to use it you can have to programmatically set it before producing a
binary. Plus it's makes all unknown flags OK.
This makes it hard to use for operators who in the case upgrading to a new
version of binary that stops supporting a removed flag.
Gflags supports a {{--undefok=flagname,flagname}} flag and we can do something
similar.
> Added something like `--undefok` in Mesos flags
> -----------------------------------------------
>
> Key: MESOS-7098
> URL: https://issues.apache.org/jira/browse/MESOS-7098
> Project: Mesos
> Issue Type: Improvement
> Components: stout
> Reporter: Yan Xu
>
> Mesos flags currently has an {{unknowns}} argument in the {{load}} method to
> ignore unknown flags:
> https://github.com/apache/mesos/blob/c2388a511c775dd6f392961b06fd7738bf051dbc/3rdparty/stout/include/stout/flags/flags.hpp#L74-L86
> However to use it you can have to programmatically set it before producing a
> binary. Plus it's makes all unknown flags OK.
> This makes it hard to use for operators who in the case upgrading to a new
> version of binary that stops supporting a removed flag.
> Gflags supports a {{--undefok=flagname,flagname}} flag and we can do
> something similar: https://gflags.github.io/gflags/#special
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)