-
Notifications
You must be signed in to change notification settings - Fork 25.3k
NPE on batched query execution when the request is part of PIT with alias filters #128552
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
NPE on batched query execution when the request is part of PIT with alias filters #128552
Conversation
Hi @drempapis, I've created a changelog YAML for you. |
…/elasticsearch into fix/batch_query_pit_with_alias
Pinging @elastic/es-search-foundations (Team:Search Foundations) |
…/elasticsearch into fix/batch_query_pit_with_alias
server/src/internalClusterTest/java/org/elasticsearch/action/search/PointInTimeIT.java
Outdated
Show resolved
Hide resolved
public void testIndexWithAlias() { | ||
String indexName = "index_1"; | ||
String alias = "alias_1"; | ||
assertAcked(indicesAdmin().prepareCreate(indexName).setSettings(indexSettings(10, 0)).addAlias(new Alias(alias))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did this test fail without the fix? I was unclear on whether we need to add a filter to the alias, or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the filter is required. I inadvertently committed a version that did not include the filtering logic. Updating with some enhancements
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a couple of comments on the test, the fix makes sense to me. LGTM, no need for another round once the comments are addressed.
As in the description of the issue (#128270)
In this work, the
namedWriteableRegistry
is propagated to theisPartOfPIT
method to facilitate context retrieval.