Skip to content

Conversation

@javanna
Copy link
Member

@javanna javanna commented Apr 23, 2019

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

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
@javanna javanna added :Search/Search Search-related issues that do not fall into other categories >deprecation v7.2.0 labels Apr 23, 2019
@javanna javanna requested a review from jimczi April 23, 2019 15:02
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

Copy link
Contributor

@jimczi jimczi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @javanna, I left one comment

// 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");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@javanna
Copy link
Member Author

javanna commented Apr 24, 2019

@jimczi I have revised the deprecation message, hopefully it is a bit clearer now.

Copy link
Contributor

@jimczi jimczi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: will be removed in the next major version ?

@javanna javanna merged commit 8a0e5f7 into elastic:7.x Apr 25, 2019
javanna added a commit that referenced this pull request May 1, 2019
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
akhil10x5 pushed a commit to akhil10x5/elasticsearch that referenced this pull request May 2, 2019
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
gurkankaymak pushed a commit to gurkankaymak/elasticsearch that referenced this pull request May 27, 2019
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>deprecation :Search/Search Search-related issues that do not fall into other categories v7.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants