LALAYANG opened a new pull request #3644:
URL: https://github.com/apache/hbase/pull/3644


   ## What is the purpose of this PR
   - This PR fixes a flaky test to avoid shared state pollution  
`org.apache.hadoop.hbase.replication.regionserver.TestDrainReplicationQueuesForStandBy.test`
   ## Reproduce the test failure
   - Run the test twice in the same JVM.
   ## Expected result:
   - The test should run successfully when multiple tests that use this state 
are run in the same JVM.
   ## Actual result:
   - We get the failure:
   ```
   org.apache.hadoop.hbase.DoNotRetryIOException: Can not transit current 
cluster state from STANDBY to STANDBY for peer id=1
   ```
   ## Why the test fails
   - When the test ends, current cluster for peer id=1 is STANDBY, it can not 
be transitted from STANDBY to STANDBY. 
   ## Fix
   - Reset the state when test ends.


-- 
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