New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
common/ceph_context: Show clear message if all features are enabled #12676
Conversation
<< cct->_experimental_features << dendl; | ||
if (!cct->_experimental_features.empty()) { | ||
std::set <std::string>::iterator it = cct->_experimental_features.begin(); | ||
if (cct->_experimental_features.size() == 1 && *it == "*") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be more consistent by putting
if (cct->_experimental_features.count("*")) {
lderr(cct) << "WARNING: all dangerous and experimental features are enabled." << dendl;
} else {
...
}
instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, thanks! will update shortly according to the suggestion!
@tchaikov updated, pls take another look at your convenience, thanks! |
if (!cct->_experimental_features.empty()) { | ||
if (cct->_experimental_features.count("*")) { | ||
lderr(cct) << "WARNING: all dangerous and experimental features are enabled." << dendl; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, could you move the else {
up to the previous line, so it looks like
} else {
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, will do, it is look better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tchaikov , updated, thanks for the review and the comments!
It's saying the following dangerous and experimental featuresare enabled while the value is "*", it's not quite clear what's "*" stands for. The patch updates the message so that it's more clear when "*" is used in place. Signed-off-by: Dave Chen <wei.d.chen@intel.com>
How can I trigger the CI to run the build again? looks like it's irrelevant with the change here. |
retest this please
yeah |
@xiexingguo , thanks for help, looks like it's the magic of "retest" keyword! |
retest this please |
retest this please
|
retest this please |
1 similar comment
retest this please |
By the way, could we provide a option to close this warn? |
@liuchang0812 sound like a good idea, I will take a look at this, thanks! |
It's saying the following dangerous and experimental featuresare enabled
while the value is "*", it's not quite clear what's "*" stands for.
The patch update the message so that it's more clear when "*" is used in
place.
Signed-off-by: Dave Chen wei.d.chen@intel.com