Repository navigation
Conversation
…re (apache#8517) - Changes were partially generated by Claude Opus 4.6
taklwu
left a comment
There was a problem hiding this comment.
the changes have been reviewed in https://github.com/apache/hbase/tree/HBASE-30087
although the dev email has been asking if we should have nightly migrated to github action, IMO we could have a separate story / JIRA for evaluation.
Took a closer look after my earlier approval. The overall approach is solid: running each cluster in its own container is a reasonable way around the static Before merge
Can be follow-ups
Happy to re-approve once 1–3 are sorted. The rest could go into a follow-up JIRA if you'd rather not hold this up. |
8c90592 to
9dccd4a
Compare
Change-Id: If508af14422b8eca407eaf8a517574f494283106
|
Hey @anmolnar, I made some changes based on your review. I addressed the 3 major "Before merge" points, as well as the minor points in the "Smaller robustness items" and "Nits" sections. Some notes on the changes:
|
Thanks @kgeisz, this looks much better. Moving the configs to a scratch dir and naming everything from
Items 1 and 2 are the ones I'd want fixed in this PR. The rest, plus the earlier follow-ups (single-stage Dockerfile and |
Change-Id: I4004e40adf1a67ac991e6b135146e17a64410e39
|
Hey @anmolnar, I have addressed the first three points in your most recent review For 1 and 2, I addressed them as suggested - Kill For 3, I chose to keep the I will make a Jira ticket and address the other comments in another PR. |
https://issues.apache.org/jira/browse/HBASE-30087
AI Usage
Some changes were generated using Claude Opus 4.6.
Summary
HBase's Read-Replica feature was merged into
masterin PR #8044. This pull request adds Jenkins integration tests for Read-Replica.The typical HBase mini-cluster integration test framework cannot be used to test the Read-Replica feature because each cluster in a read-replica setup must have a unique meta table name. These mini-clusters run in the same JVM and end up sharing the same static
META_TABLE_NAMEvariable. (PR #7730 is an open pull request to make the meta table name non-static.)Instead, these integration tests use two Docker containers running HBase that are part of a read-replica setup. An HBase Docker client uses Python to send HBase commands to the HBase shell within each container. This allows us to run each HBase cluster in its own isolated JVM.
The Read-Replica integration tests reside in
dev-support/read-replica. The tests have their ownJenkinsfilethat runs thehbase_nightly_read_replica_test.shdriver script, which does the following:dev-support/docker/Dockerfileand starts this container. The container helps with portability for running tests either locally or in Jenkins.Once the test environment container is up and running, the driver script runs
run_read_replica_integration_tests.shinside of this container, which does the following:docker compose. These containers are run alongside the test env container by bind-mounting the host's Docker socket (a Docker-outside-of-Docker (DooD) setup)pytestto run several integration testsThese integration tests have been run in Jenkins against this feature branch (HBASE-30087). We now would like to merge this feature branch to the master so the Read-Replica feature can continue to be tested against new changes to HBase.
Results Examples
Previous runs against the HBASE-30087 branch, including successful runs, can be found here:
https://ci-hbase.apache.org/job/HBase-Read-Replica-Tests/job/HBASE-30087/
Here is an example of a console report from a successful test run:
Here is an example of a failed run. When a test fails, the test's logs are linked along with the HBase logs from each read-replica Docker container: