Skip to content

HBASE-30253 Do not add/remove peer between tests in TestBulkLoadRepli… - #8404

Merged
Apache9 merged 3 commits into
apache:masterfrom
Apache9:HBASE-30253
Jun 24, 2026
Merged

HBASE-30253 Do not add/remove peer between tests in TestBulkLoadRepli…#8404
Apache9 merged 3 commits into
apache:masterfrom
Apache9:HBASE-30253

Conversation

@Apache9

@Apache9 Apache9 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

…cation

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the TestBulkLoadReplication integration test to keep replication peers stable across test methods, avoiding re-adding/removing peers between tests which can cause previously completed bulk-load replication jobs to be resubmitted (HBASE-30253).

Changes:

  • Add the UTIL1 -> UTIL2 replication peer during @BeforeAll to fully establish the 1 <-> 2 <-> 3 topology up front.
  • Override setUpBase/tearDownBase to prevent per-test peer add/remove from the base class while still resetting BULK_LOADS_COUNT per test.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

ReplicationPeerConfig peer3Config = getPeerConfigForCluster(UTIL3);
// Setup following topology: "1 <-> 2 <-> 3", 1 -> 2 will be added by setUpBase method in parent
// class
// Setup following topology: "1 <-> 2 <-> 3"
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@Apache9
Apache9 merged commit 1517a07 into apache:master Jun 24, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants