-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Fix path.data as comma separated string #76202
Conversation
For multiple data paths, there are several allowed varieties of specifcying the paths. The yaml list forms, both single and multi line, are allowed, but another form is a string containing commas that is parsed as a list. This latter form was broken recently by the refactoring of path.data parsing to emit deprecation warnings for MDP. This commit fixes the comma separated string case and adds a test. closes elastic#76181
Pinging @elastic/es-core-infra (Team:Core/Infra) |
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.
It occurs to me that with this change (and, presumably, the previous behavior) we can't handle data paths with commas in the name like /var/stuff/elastic,search
, despite that being a perfectly valid path on at least MacOS and Linux (not sure about Windows). Not that I've ever actually seen a path like that in practice.
For multiple data paths, there are several allowed varieties of specifcying the paths. The yaml list forms, both single and multi line, are allowed, but another form is a string containing commas that is parsed as a list. This latter form was broken recently by the refactoring of path.data parsing to emit deprecation warnings for MDP. This commit fixes the comma separated string case and adds a test. closes #76181
For multiple data paths, there are several allowed varieties of specifcying the paths. The yaml list forms, both single and multi line, are allowed, but another form is a string containing commas that is parsed as a list. This latter form was broken recently by the refactoring of path.data parsing to emit deprecation warnings for MDP. This commit fixes the comma separated string case and adds a test. closes elastic#76181
For multiple data paths, there are several allowed varieties of specifcying the paths. The yaml list forms, both single and multi line, are allowed, but another form is a string containing commas that is parsed as a list. This latter form was broken recently by the refactoring of path.data parsing to emit deprecation warnings for MDP. This commit fixes the comma separated string case and adds a test. closes #76181
For multiple data paths, there are several allowed varieties of
specifcying the paths. The yaml list forms, both single and multi line,
are allowed, but another form is a string containing commas that is
parsed as a list. This latter form was broken recently by the
refactoring of path.data parsing to emit deprecation warnings for MDP.
This commit fixes the comma separated string case and adds a test.
closes #76181