[BUG][Segment Replication] Support realtime reads with TermVector Requests for segrep enabled indices #9563
Labels
bug
Something isn't working
Indexing:Replication
Issues and PRs related to core replication framework eg segrep
Describe the bug
Currently with segment replication enabled reads with VectorTerm requests give incorrect results if the search request goes to replica shard before it has caught up with primary.
Integration tests in GetTermvectorsIT.java fail with segment replication enabled
To Reproduce
-> Enable segment replication
-> Run GetTermvectorsIT.java
REPRODUCE WITH: ./gradlew ':server:internalClusterTest' --tests "org.opensearch.action.termvectors.GetTermVectorsIT.testRandomSingleTermVectors" -Dtests.seed=F873E5CD32208FA6 -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=pt-BR -Dtests.timezone=America/Rainy_River -Druntime.java=20
Expected behavior
A clear and concise description of what you expected to happen.
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: