Adding integration of derived source feature across diff paths#18054
Conversation
|
❌ Gradle check result for 116f32e: 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? |
116f32e to
1d5e1aa
Compare
|
❌ Gradle check result for 1d5e1aa: 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? |
1d5e1aa to
2cf97a1
Compare
|
❕ Gradle check result for 2cf97a1: 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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #18054 +/- ##
============================================
+ Coverage 72.52% 72.72% +0.20%
- Complexity 67509 67731 +222
============================================
Files 5496 5499 +3
Lines 311467 311781 +314
Branches 45253 45257 +4
============================================
+ Hits 225891 226755 +864
+ Misses 67180 66581 -599
- Partials 18396 18445 +49 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
190ea02
into
opensearch-project:main
| randomWriter.commit(); | ||
|
|
||
| DirectoryReader randomDirectoryReader = DirectoryReader.open(randomWriter); | ||
| LeafReader randomLeafReader = randomDirectoryReader.leaves().get(0).reader(); |
There was a problem hiding this comment.
@tanik98 This part of the test only works if you can guarantee that you're merged down to a single segment.
Since you have a random IndexWriterConfig, sometimes it will flush in the middle of adding docs.
There was a problem hiding this comment.
Test failure:
Suite: Test class org.opensearch.common.lucene.index.DerivedSourceLeafReaderTests
1> [2025-06-10T16:49:21,747][INFO ][o.o.c.l.i.DerivedSourceLeafReaderTests] [testGetSequentialStoredFieldsReaderWithInvalidReader] before test
1> [2025-06-10T16:49:21,748][INFO ][o.o.c.l.i.DerivedSourceLeafReaderTests] [testGetSequentialStoredFieldsReaderWithInvalidReader] after test
1> [2025-06-10T16:49:21,758][INFO ][o.o.c.l.i.DerivedSourceLeafReaderTests] [testWithRandomDocuments] before test
1> [2025-06-10T16:49:21,761][INFO ][o.o.c.l.i.DerivedSourceLeafReaderTests] [testWithRandomDocuments] after test
2> REPRODUCE WITH: ./gradlew ':server:test' --tests "org.opensearch.common.lucene.index.DerivedSourceLeafReaderTests.testWithRandomDocuments" -Dtests.seed=7EFEA17C239307B5 -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=ff-Adlm-SN -Dtests.timezone=America/Cayenne -Druntime.java=21
2> java.lang.IndexOutOfBoundsException: Index 8 out of bounds for length 8
at __randomizedtesting.SeedInfo.seed([7EFEA17C239307B5:480F885B0D6542F4]:0)
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302)
at java.base/java.util.Objects.checkIndex(Objects.java:385)
at org.apache.lucene.index.CodecReader$1.document(CodecReader.java:100)
at org.opensearch.common.lucene.index.DerivedSourceStoredFieldsReader$DerivedSourceStoredFields.document(DerivedSourceStoredFieldsReader.java:108)
at org.opensearch.common.lucene.index.DerivedSourceLeafReaderTests.testWithRandomDocuments(DerivedSourceLeafReaderTests.java:184)
1> [2025-06-10T16:49:21,775][INFO ][o.o.c.l.i.DerivedSourceLeafReaderTests] [testGetCoreAndReaderCacheHelper] before test
1> [2025-06-10T16:49:21,775][INFO ][o.o.c.l.i.DerivedSourceLeafReaderTests] [testGetCoreAndReaderCacheHelper] after test
1> [2025-06-10T16:49:21,779][INFO ][o.o.c.l.i.DerivedSourceLeafReaderTests] [testStoredFields] before test
1> [2025-06-10T16:49:21,780][INFO ][o.o.c.l.i.DerivedSourceLeafReaderTests] [testStoredFields] after test
1> [2025-06-10T16:49:21,783][INFO ][o.o.c.l.i.DerivedSourceLeafReaderTests] [testGetSequentialStoredFieldsReaderWithSequentialReader] before test
1> [2025-06-10T16:49:21,784][INFO ][o.o.c.l.i.DerivedSourceLeafReaderTests] [testGetSequentialStoredFieldsReaderWithSequentialReader] after test
1> [2025-06-10T16:49:21,787][INFO ][o.o.c.l.i.DerivedSourceLeafReaderTests] [testGetSequentialStoredFieldsReaderWithCodecReader] before test
1> [2025-06-10T16:49:21,788][INFO ][o.o.c.l.i.DerivedSourceLeafReaderTests] [testGetSequentialStoredFieldsReaderWithCodecReader] after test
There was a problem hiding this comment.
thanks @msfroh for pointers.
I think we could have a bit more careful merging the changes when second last build failed with these flaky tests - #18054 (comment)
created #18485
There was a problem hiding this comment.
@msfroh @rishabhmaurya Any reason not to revert this commit in the meantime while the test failure is investigated?
Edit: looks like a fix is ready: #18493
There was a problem hiding this comment.
It should help, we can merge and try it out. Please help with the review on #18493.
…earch-project#18054) * Adding integration of derived source feature across diff paths * Using index setting instead of mapping field in _source * Modifying IT to include all the supported field type for derived source Signed-off-by: Tanik Pansuriya <panbhai@amazon.com>
opensearch-project#18054)" This reverts commit 190ea02. Signed-off-by: Andrew Ross <andrross@amazon.com>
opensearch-project#18054)" This reverts commit 190ea02. Signed-off-by: Andrew Ross <andrross@amazon.com>
opensearch-project#18054)" This reverts commit 190ea02. Signed-off-by: Andrew Ross <andrross@amazon.com>
…earch-project#18054) * Adding integration of derived source feature across diff paths * Using index setting instead of mapping field in _source * Modifying IT to include all the supported field type for derived source Signed-off-by: Tanik Pansuriya <panbhai@amazon.com>
…earch-project#18054) * Adding integration of derived source feature across diff paths * Using index setting instead of mapping field in _source * Modifying IT to include all the supported field type for derived source Signed-off-by: Tanik Pansuriya <panbhai@amazon.com> Signed-off-by: TJ Neuenfeldt <tjneu@amazon.com>
opensearch-project#18054)" (opensearch-project#18543) This reverts commit 190ea02. Signed-off-by: Andrew Ross <andrross@amazon.com>Signed-off-by: TJ Neuenfeldt <tjneu@amazon.com>
…earch-project#18054) * Adding integration of derived source feature across diff paths * Using index setting instead of mapping field in _source * Modifying IT to include all the supported field type for derived source Signed-off-by: Tanik Pansuriya <panbhai@amazon.com>
opensearch-project#18054)" (opensearch-project#18543) This reverts commit 190ea02. Signed-off-by: Andrew Ross <andrross@amazon.com>
…earch-project#18054) * Adding integration of derived source feature across diff paths * Using index setting instead of mapping field in _source * Modifying IT to include all the supported field type for derived source Signed-off-by: Tanik Pansuriya <panbhai@amazon.com>
…earch-project#18054) * Adding integration of derived source feature across diff paths * Using index setting instead of mapping field in _source * Modifying IT to include all the supported field type for derived source Signed-off-by: Tanik Pansuriya <panbhai@amazon.com>
…earch-project#18054) * Adding integration of derived source feature across diff paths * Using index setting instead of mapping field in _source * Modifying IT to include all the supported field type for derived source Signed-off-by: Tanik Pansuriya <panbhai@amazon.com>
…earch-project#18054) * Adding integration of derived source feature across diff paths * Using index setting instead of mapping field in _source * Modifying IT to include all the supported field type for derived source Signed-off-by: Tanik Pansuriya <panbhai@amazon.com>
opensearch-project#18054)" (opensearch-project#18543) This reverts commit 190ea02. Signed-off-by: Andrew Ross <andrross@amazon.com>
Description
Considerations:
This PR is a continuation of #17759
Related Issues
Resolves #17073
Part of feature #9568
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.