[Ingest Manager] Guard against empty stream.datasource and namespace#18769
[Ingest Manager] Guard against empty stream.datasource and namespace#18769michalpristas merged 5 commits intoelastic:masterfrom
Conversation
|
Pinging @elastic/ingest-management (Team:Ingest Management) |
| dataset: dsds | ||
| index: mytype-dsds-nsns | ||
| - name: All specified with empty strings | ||
| namespace: "" |
There was a problem hiding this comment.
Shouldn't the expected now be default?
There was a problem hiding this comment.
this is test for injecting index, it does not change existing values.
we either generate index based on these values or we're adding add_fields processor with correct values
There was a problem hiding this comment.
we need both. values and index must match.
In a follow up we can discuss, if we should even error if it is "".
There was a problem hiding this comment.
@michalpristas I also thought the result should be default?
There was a problem hiding this comment.
i think we can fix it but outside of injectIndex rule, what this should do is injecting index and not modifying anything on top of that.
| - Correctly report platform and family. {issue}18665[18665] | ||
| - Clean action store after enrolling to new configuration {pull}18656[18656] | ||
| [Ingest Manager] Avoid watching monitor logs {pull}18723[18723] | ||
| - Avoid watching monitor logs {pull}18723[18723] |
There was a problem hiding this comment.
no i'm just fixing format of previous one
ph
left a comment
There was a problem hiding this comment.
LGTM, test look complete and easy to remove.
…lastic#18769) [Ingest Manager] Guard against empty stream.datasource and namespace (elastic#18769)
…lastic#18769) [Ingest Manager] Guard against empty stream.datasource and namespace (elastic#18769)
What does this PR do?
This PR fallbacks to default values if namespace or datasource is an empty string
Why is it important?
Empty string is not a valid value
Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.