-
Notifications
You must be signed in to change notification settings - Fork 76
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
Fixed single shard pagination issue of from #1140
Fixed single shard pagination issue of from #1140
Conversation
8d553ae
to
2a6afe2
Compare
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.
overall looks good, please address my comment and I'll aprove
src/main/java/org/opensearch/neuralsearch/processor/NormalizationProcessorWorkflow.java
Show resolved
Hide resolved
Signed-off-by: Owais <[email protected]>
2a6afe2
to
709a53f
Compare
BWC tests are constantly failing, need to make a proper deep dive before we can approve this PR
@owaiskazi19 can you please check the failing BWC? It doesn't relate to latest core wobbles between lucene 9 and 10, and I've restarted it several times, so it's not a flaky test |
LGTM once CI is passing |
I see BatchIngestionIT are failing constantly. |
Rolling upgrade BWC tests are passing for me on local
|
Logged the bug #1142 |
@martin-gaievski I think we can merge this PR contains changes which are unrelated to BatchIngestionIT. |
To double confirm ran the failing test separately
|
Makes sense, let's see if the issue with BWC is there for 2.x/2.19 branch |
c6b8ac4
into
opensearch-project:main
Signed-off-by: Owais <[email protected]> (cherry picked from commit c6b8ac4)
Signed-off-by: Owais <[email protected]> (cherry picked from commit c6b8ac4) Co-authored-by: Owais Kazi <[email protected]>
Description
For the initial searchRequest, it creates a default search context which sets the value of from to 0 if it's -1. That's not the case with SearchPhasedContext, that's why need to explicitly set to 0 for the single shard case
Ref: https://github.com/opensearch-project/OpenSearch/blob/2.18/server/src/main/java/org/opensearch/search/DefaultSearchContext.java#L288 and #1139
Related Issues
Resolves #1139
Check List
--signoff
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.