Skip to content

HBASE-29620 Refactor TestRSGroupsKillRS - #8623

Open
Sigma-Ma wants to merge 1 commit into
apache:masterfrom
Sigma-Ma:HBASE-29620-refactor-TestRSGroupsKillRS
Open

HBASE-29620 Refactor TestRSGroupsKillRS#8623
Sigma-Ma wants to merge 1 commit into
apache:masterfrom
Sigma-Ma:HBASE-29620-refactor-TestRSGroupsKillRS

Conversation

@Sigma-Ma

@Sigma-Ma Sigma-Ma commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Split the mixed-version scenario into TestRSGroupsKillRSWithDifferentVersions. Use a test HMaster implementation to report a lower version for the target RegionServer, and restore VersionInfo#getVersion to return the generated version directly.

Why are the changes needed?

The existing test changes process-wide VersionInfo state through reflection. Since MiniCluster components run in the same JVM, this may affect unrelated servers and requires production code to keep mutable state only for testing.

How was this patch tested?

mvn -pl hbase-server -Dtest=TestRSGroupsKillRS,TestRSGroupsKillRSWithDifferentVersions -Dsurefire.failIfNoSpecifiedTests=false -Dsurefire.rerunFailingTestsCount=0 test

mvn -pl hbase-common -Dtest=TestVersionInfo -Dsurefire.rerunFailingTestsCount=0 test

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.

1 participant