Skip to content
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

LuceneOptimizedStoredFieldsFormatTest > testNumericField cannot find stored fields sometimes #2810

Open
ScottDugas opened this issue Jul 8, 2024 · 2 comments
Labels
test failure A test is failing at least some of the time

Comments

@ScottDugas
Copy link
Contributor

This happens sometimes (with the same seed):

LuceneOptimizedStoredFieldsFormatTest > testNumericField FAILED
    com.apple.foundationdb.record.RecordCoreStorageException: Could not find stored fields
        at __randomizedtesting.SeedInfo.seed([C185081D42F0F43C:91AB1306856D114E]:0)
        at app//com.apple.foundationdb.record.lucene.directory.FDBDirectory.readStoredFields(FDBDirectory.java:539)
        at app//com.apple.foundationdb.record.lucene.codec.LuceneOptimizedStoredFieldsReader.visitDocument(LuceneOptimizedStoredFieldsReader.java:76)
        at app//org.apache.lucene.index.CodecReader.document(CodecReader.java:84)
        at app//org.apache.lucene.index.IndexReader.document(IndexReader.java:352)
        at app//org.apache.lucene.index.BaseStoredFieldsFormatTestCase.testNumericField(BaseStoredFieldsFormatTestCase.java:297)
        at app//com.apple.foundationdb.record.lucene.codec.LuceneOptimizedStoredFieldsFormatTest.testNumericField(LuceneOptimizedStoredFieldsFormatTest.java:88)
@ScottDugas ScottDugas added the test failure A test is failing at least some of the time label Jul 8, 2024
@ScottDugas
Copy link
Contributor Author

To be clear, I have tested locally, and this test passes with that seed, so there is something non-deterministic about the test.

@ScottDugas
Copy link
Contributor Author

I did reproduce this locally by adding a custom MethodRule that repeated the test a bunch of times.
It looks like sometimes it closes the writer and merges the files, and later tries to read the files. I'm not sure why it is inconsistently deleting the files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test failure A test is failing at least some of the time
Projects
None yet
Development

No branches or pull requests

1 participant