-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Fix leafSorter optimization for ReadOnlyEngine and NRTReplicationEngine #18639
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
Conversation
|
❌ Gradle check result for 589d285: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #18639 +/- ##
============================================
- Coverage 72.78% 72.77% -0.01%
+ Complexity 68544 68502 -42
============================================
Files 5567 5569 +2
Lines 314911 314937 +26
Branches 45684 45685 +1
============================================
- Hits 229201 229189 -12
- Misses 67092 67143 +51
+ Partials 18618 18605 -13 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@msfroh - Could you please review it?. |
|
❌ Gradle check result for 7b394f8: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for 25e79de: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for 07de023: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
server/src/test/java/org/opensearch/index/engine/LeafSorterOptimizationTests.java
Outdated
Show resolved
Hide resolved
|
❕ Gradle check result for e32bc6b: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
server/src/test/java/org/opensearch/index/engine/LeafSorterOptimizationTests.java
Outdated
Show resolved
Hide resolved
|
❌ Gradle check result for 20f7527: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
server/src/test/java/org/opensearch/index/engine/LeafSorterOptimizationTests.java
Outdated
Show resolved
Hide resolved
|
❌ Gradle check result for 7a03880: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for 5fdca4d: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for 16c2978: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for 3d87ec3: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Sriram Ganesh <[email protected]>
Signed-off-by: Sriram Ganesh <[email protected]>
Signed-off-by: Sriram Ganesh <[email protected]>
Signed-off-by: Sriram Ganesh <[email protected]>
msfroh
left a comment
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.
Looks good! Thanks for sticking it out with this one @rgsriram!
…ne (opensearch-project#18639) --------- Signed-off-by: Sriram Ganesh <[email protected]>
…ne (opensearch-project#18639) --------- Signed-off-by: Sriram Ganesh <[email protected]>
Description
Timestamp sort optimisations (leafSorter) were not working consistently across all engine types. While InternalEngine (primary shards) correctly applied leafSorter, other engine types like ReadOnlyEngine (searchable snapshots) and NRTReplicationEngine (segment replication) were not passing leafSorter when opening DirectoryReader instances.
This caused inconsistent performance for time-series workloads:
Solution
Apply leafSorter optimisation consistently across all engine types by ensuring
DirectoryReader.open()calls include the leafSorter parameter.Related Issues
Resolves #[Issue number to be closed when this PR is merged]
#17579
Check List
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.