Deprecate support for first line empty in msearch API#41442
Deprecate support for first line empty in msearch API#41442javanna merged 3 commits intoelastic:7.xfrom
Conversation
In order to support for empty action metadata in the first msearch item, we need to remove support for prepending msearch request body with an empty line, which prevents us from parsing the empty line as action metadata for the first search item. Relates to elastic#41011
|
Pinging @elastic/es-search |
| // support first line with \n | ||
| if (nextMarker == 0) { | ||
| from = nextMarker + 1; | ||
| deprecationLogger.deprecated("support for empty first line in msearch API is deprecated and will be removed"); |
There was a problem hiding this comment.
I wonder if this is not misleading. In this version the first line is just ignored while in master we'll consider it as an empty action so I think that the message here should be more explicit.
There was a problem hiding this comment.
I agree it is misleading. yet I believe it will be regardless of the message that we come up with, because it is a weird change. we want to drop supporting an empty first line in case it does not represent an empty action metadata line, while we want to be able to support empty lines for action metadata lines in the first row
|
@jimczi I have revised the deprecation message, hopefully it is a bit clearer now. |
jimczi
left a comment
There was a problem hiding this comment.
Thanks for updating, LGTM
| if (nextMarker == 0) { | ||
| from = nextMarker + 1; | ||
| deprecationLogger.deprecated("support for empty first line before any action metadata in msearch API is deprecated and " + | ||
| "will be removed"); |
There was a problem hiding this comment.
nit: will be removed in the next major version ?
With #41442 we have deprecated support for empty line before any action metadata in msearch API. With this commit we remove support for such empty line, in place of parsing it as empty action metadata, which was previously not supported although the following items could have an empty line representing their corresponding action metadata. This way we make all times equal. Relates to #39841
With elastic#41442 we have deprecated support for empty line before any action metadata in msearch API. With this commit we remove support for such empty line, in place of parsing it as empty action metadata, which was previously not supported although the following items could have an empty line representing their corresponding action metadata. This way we make all times equal. Relates to elastic#39841
With elastic#41442 we have deprecated support for empty line before any action metadata in msearch API. With this commit we remove support for such empty line, in place of parsing it as empty action metadata, which was previously not supported although the following items could have an empty line representing their corresponding action metadata. This way we make all times equal. Relates to elastic#39841
In order to support for empty action metadata in the first msearch item,
we need to remove support for prepending msearch request body with an
empty line, which prevents us from parsing the empty line as action
metadata for the first search item.
Relates to #41011