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

   JIRA: https://issues.apache.org/jira/browse/HBASE-30095
   
   ## What changes were proposed in this pull request?
   
   Remove the duplicate `TEST_UTIL.startMiniDFSCluster(2)` call from 
`TestZooKeeper#setUpBeforeClass`.
   
   The first MiniDFSCluster startup is retained, preserving the intended test 
initialization sequence: start MiniDFSCluster, start MiniZooKeeper, configure 
the test environment, and then start MiniHBaseCluster for each test.
   
   ## Why are the changes needed?
   
   `HBaseTestingUtil` should manage only one MiniDFSCluster at a time. Calling 
`startMiniDFSCluster` twice replaces the stored `dfsCluster` and 
`dfsClusterFixer` references without shutting down the first cluster.
   
   This can leave the first cluster running against the same test directories 
and cause HDFS namespace conflicts, including `InconsistentFSStateException`, 
in CI runs.
   
   ## How was this patch tested?
   
   ```bash
   mvn -pl hbase-server -am -Dtest=TestZooKeeper 
-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