-
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] Test all plugin compatibility #6602
Comments
To test all plugins compatibility, we first created an issue to add a cluster setting to enable segment replication as default replication strategy. This PR: #6791 resolved the issue and added a new cluster setting. After adding new cluster setting next step is to create a test-manifest with segment replication enabled. So that we can run two opensearch build integ-test runs, one with segment replication enabled on 2.x branch(new segrep test-manifest) and another run segment replication disabled on 2.x branch(normal 2.7 test-manifest). Created this Issue on Opensearch-build repo to add a new test manifest for segment replication. With this PR:opensearch-project/opensearch-build#3345 merged in, we can now trigger builds with segment replication. Now we have: Results:
-> But CCR plugin is having real integ-tests failures with segment replication.
-> We need to create new issue to resolve these integ-test failures with segment replication |
@ankitkala any thoughts on the above failure in CCR plugin? |
We did verify CCR plugin tests with SegRep enabled on all indices here. We had to force docrep on ccr metadata index(link) for tests to pass. @Rishikesh1159 Can you try with the change mentioned above? |
Alternatively, I think you can force docrep for hidden indices as well(i.e. starting with |
I think we don't have a good way to filter out which indices are CCR's system/hidden indices. There can be other indices which are not CCR's hidden index and are starting with |
Thanks @ankitkala I tried what you suggested in comment. And I don't see any compatibility issues with segrep and ccr as you previously mentioned, all integtests are passing. But if we are using hidden/system indices of CCR with segrep some tests are failing, as we previously saw. So, we have to use docrep for ccr's hidden/system indices. We recently added a new condition in opensearch that checks if an index is system index or not, if it is a system index we force it to use document replication. But problem is, CCR's hidden/system indices are not recognized by opensearch as a system index here. I think the concept of system index we have in opensearch here in SystemIndices, SystemIndexDescriptor and plugins like CCR is different. So, for now we don't have a good way to make changes on opensearch in segrep as default to work with CCR. One solution here will be, we can make a change in CCR repo to strictly use docrep for all the system/hidden indices. But for long term solutions we have two options: For now with segment replication GA release in 2.7 version, will be go ahead with solution of making a change in CCR repo to strictly use docrep for all the system/hidden indices. Closing this issue as we have a solution for now. |
Leading up to GA of segment replication, we need to do a round of sanity testing with plugins.
This issue is to track that effort & results.
To do this testing we can run each repo's integTests that are provided as part of CI builds, but the tests will need to build a separate tarball with segrep enabled by default.
General steps:
./test.sh integ-test <manifest> --component ml-commons --paths opensearch=<locally generated tar folder>
The text was updated successfully, but these errors were encountered: