Sigma-Ma opened a new pull request, #8623:
URL: https://github.com/apache/hbase/pull/8623

   ## 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?
   
   ```bash
   mvn -pl hbase-server 
-Dtest=TestRSGroupsKillRS,TestRSGroupsKillRSWithDifferentVersions 
-Dsurefire.failIfNoSpecifiedTests=false -Dsurefire.rerunFailingTestsCount=0 test
   
   mvn -pl hbase-common -Dtest=TestVersionInfo 
-Dsurefire.rerunFailingTestsCount=0 test


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to