-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Segment Replication] NoClusterManagerNodeIT.testNoClusterManagerActionsWriteClusterManagerBlock fails with segment replication enabled #9837
Comments
This test fails with 2 other failures as well:
and
Initial problem of timed out waiting for green state was fixed by adding in the below call to the class:
This ensured that when segment replication enabled, we always choose the NRTReplicationEngine and never the MockInternalEngine for replica shards. This also avoided the NPE seen when updating the sequence ID that took place in InternalEngine's call to The other get calls fail when segment replication is enabled and a network disruption is introduced as is the case in this test. This is because by default all get calls are realtime. Realtime get calls are supported when segment replication is enabled by routing to the primary shard currently which is expected behavior. This test passes intermittently and in all the passing cases the get response is served by a primary shard. In the case it requests from replica shard (because pri is unreachable), it fails since replicas are not caught up to realtime data of primary. |
Expected behavior for segrep differs from docrep for this test so failure is expected. |
Describe the bug
Integration test
NoClusterManagerNodeIT.testNoClusterManagerActionsWriteClusterManagerBlock
fails with segment replication enabled.To Reproduce
Steps to reproduce the behavior:
-> enable segment replication.
-> run integ test
NoClusterManagerNodeIT.testNoClusterManagerActionsWriteClusterManagerBlock
REPRODUCE WITH: ./gradlew 'null' --tests "org.opensearch.cluster.NoClusterManagerNodeIT.testNoClusterManagerActionsWriteClusterManagerBlock" -Dtests.seed=8D15B79A4A88A781 -Dtests.locale=en-CA -Dtests.timezone=Africa/Addis_Ababa -Druntime.java=14
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: