[BYDB-Replica] Add integration test for inter-cluster replication resilience
Search before asking
- [x] I had searched in the issues and found no similar feature requirement.
Description
We need to verify that BanyanDB’s global liaison remains available and routes queries correctly when one entire cluster fails. Specifically, data written in both clusters, and client queries against the global liaison, should succeed even if one cluster is down.
This issue tracks the creation of an automated integration test that:
- Brings up two independent BanyanDB clusters (A and B) with cross-cluster replication via the global liaison.
- Writes data to cluster A and B.
- Simulates a full cluster failure (cluster A or B down).
- Executes queries through the global liaison.
- Verifies query success and data correctness from the surviving cluster.
Use case
No response
Related issues
No response
Are you willing to submit a pull request to implement this on your own?
- [ ] Yes I am willing to submit a pull request on my own!
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
@wu-sheng @hanahmily I’m interested in taking this up and related work.
When implementing the integration test, consider using the existing test_replication.py framework to ensure consistency in testing style and coverage. Additionally, how do you plan to simulate the full cluster failure — will you be using a specific failure mode or just shutting down the cluster process?
@hanahmily @UfBt12qJNZKcw hey i did some digging into the test setup and the existing e2e framework uses docker-compose + yaml based tests not python so i think i can follow the same pattern for this one
ive worked on similar multi cluster docker setups before like apache/hugegraph#2952 which is a multi-node docker compose migration so this fits my stack pretty well
i can take this up if its still available
I recommand using kind k8s cluster to write the test. banyandb is k8s native, you can use helm to deploy the cluster easily.
@hanahmily before I start, a few questions to make sure I'm working against the right surface:
- Is the Liaison Groups / global liaison failover feature from 12875 already implemented on a branch? I couldn't find any liaison_group, global_liaison, or cross-cluster routing logic in the current codebase , is there a WIP branch I should be working against?
- Is the expectation that I implement both the feature (12875) and the test (13230), or should I wait for the feature to land first?
- For the kind + Helm setup — I plan to use skywalking-banyandb-helm directly (not the combined skywalking-helm chart). Does skywalking-banyandb-helm already expose values for a global liaison / two-cluster topology, or will new chart values need to be added as part of 12875?
- Should the test PR target apache/skywalking-banyandb (alongside the existing test/integration/replication/ Ginkgo suite), or a different repo?
- Is the Liaison Groups / global liaison failover feature from 12875 already implemented on a branch? I couldn't find any liaison_group, global_liaison, or cross-cluster routing logic in the current codebase , is there a WIP branch I should be working against?
No. Cross-cluster routing is not our plan. But we are still open to implementing it if anyone is interested.
- Is the expectation that I implement both the feature (12875) and the test (13230), or should I wait for the feature to land first?
Yes, you should implement the 12875, which 13230 depends on.
- For the kind + Helm setup — I plan to use skywalking-banyandb-helm directly (not the combined skywalking-helm chart). Does skywalking-banyandb-helm already expose values for a global liaison / two-cluster topology, or will new chart values need to be added as part of 12875?
No, the Helm chart will support it once the upstream repo supports it.
- Should the test PR target apache/skywalking-banyandb (alongside the existing test/integration/replication/ Ginkgo suite), or a different repo?
We use a monorepo, which contains the tests.