Skip to content
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

Merged
merged 1 commit into from
Aug 12, 2021
Merged

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented Aug 5, 2021

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
@rjernst rjernst added the :Core/Infra/Core Core issues without another label label Aug 5, 2021
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Aug 5, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@rjernst rjernst added >bug and removed Team:Core/Infra Meta label for core/infra team labels Aug 5, 2021
@rjernst rjernst requested a review from gwbrown August 5, 2021 22:14
@rjernst rjernst added the v7.14.1 label Aug 5, 2021
Copy link
Contributor

@gwbrown gwbrown left a 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.

@rjernst rjernst added the auto-backport Automatically create backport pull requests when merged label Aug 12, 2021
@rjernst rjernst merged commit 0a82466 into elastic:7.x Aug 12, 2021
@rjernst rjernst deleted the mdp30_7.x branch August 12, 2021 22:15
rjernst added a commit that referenced this pull request Aug 13, 2021
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
@rjernst rjernst mentioned this pull request Oct 11, 2021
17 tasks
rjernst added a commit to rjernst/elasticsearch that referenced this pull request Oct 15, 2021
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
@rjernst rjernst added the v8.0.0 label Oct 15, 2021
rjernst added a commit that referenced this pull request Oct 18, 2021
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged >bug :Core/Infra/Core Core issues without another label v7.14.1 v7.15.0 v8.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants