Skip to content

Conversation

@dnhatn
Copy link
Member

@dnhatn dnhatn commented Mar 11, 2020

Using a Long alone is not strong enough for the id of search contexts
because we reset the id generator whenever a data node is restarted.
This can lead to two issues:

  1. Fetch phase can fetch documents from another index
  2. A scroll search can return documents from another index

This commit avoids these issues by adding a UUID to SearchContexId.

Backport of #53143

dnhatn added 2 commits March 11, 2020 08:37
Using a Long alone is not strong enough for the id of search contexts
because we reset the id generator whenever a data node is restarted.
This can lead to two issues:

1. Fetch phase can fetch documents from another index
2. A scroll search can return documents from another index

This commit avoids these issues by adding a UUID to SearchContexId.
@dnhatn
Copy link
Member Author

dnhatn commented Mar 11, 2020

Pushed to 7.x

@dnhatn dnhatn closed this Mar 11, 2020
@dnhatn dnhatn deleted the 7x-fix-context-id branch March 11, 2020 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant