-
Notifications
You must be signed in to change notification settings - Fork 62
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
[ML] Parse JSON format config updates #1682
[ML] Parse JSON format config updates #1682
Conversation
Expect configuration update requests to be received in JSON formatted strings. Remove support for old, ini file parsing.
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.
LGTM
The only two comments are minor nits
lib/api/CConfigUpdater.cc
Outdated
LOG_ERROR(<< "An error occurred while parsing pattern set from JSON: " + | ||
std::string(rapidjson::GetParseError_En(doc.GetParseError()))); |
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.
LOG_ERROR(<< "An error occurred while parsing pattern set from JSON: " + | |
std::string(rapidjson::GetParseError_En(doc.GetParseError()))); | |
LOG_ERROR(<< "An error occurred while parsing pattern set from JSON: " | |
<< rapidjson::GetParseError_En(doc.GetParseError())); |
include/api/CConfigUpdater.h
Outdated
@@ -24,13 +24,13 @@ namespace api { | |||
//! update, a control message is being sent with the requested | |||
//! configuration changes. This class is responsible for parsing | |||
//! text with the requested configuration changes and apply them. | |||
//! The changes are expected in an ini type of syntax. | |||
//! The changes are expected in an JSON formatted syntax. |
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.
//! The changes are expected in an JSON formatted syntax. | |
//! The changes are expected in a JSON document. |
* Expect configuration update requests to be received in JSON formatted strings. * Remove support for old, ini file parsing. Relates elastic/elasticsearch#67721, elastic#1253
* Expect configuration update requests to be received in JSON formatted strings. * Remove support for old, ini file parsing. Relates elastic/elasticsearch#67721, #1253 Backports #1682
Expect configuration update requests to be received in JSON formatted
strings. Remove support for old, ini file parsing.
Relates elastic/elasticsearch#67721, #1253