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

   JIRA: https://issues.apache.org/jira/browse/HBASE-30344
   
   ### What changes were proposed in this pull request?
   
   Wait for the RegionServer serving the test table to observe the 
DOWNGRADE_ACTIVE sync replication state before verifying the replicated data in 
TestSyncReplicationStandbyKillMaster.
   
   ### Why are the changes needed?
   
   After Master recovery, the peer state returned by Admin can become 
DOWNGRADE_ACTIVE before the RegionServer refreshes its local peer state. The 
test may start reading while the RegionServer still treats the peer as STANDBY, 
causing DoNotRetryIOException.
   The production-side STANDBY protection remains unchanged.
   
   ### How was this patch tested?
   
   Ran TestSyncReplicationStandbyKillMaster five consecutive times with 
Surefire retries disabled. 
   
   ```bash
   for run in 1 2 3 4 5; do
     mvn -pl hbase-server -am \
       -Dtest=TestSyncReplicationStandbyKillMaster \
       -Dsurefire.failIfNoSpecifiedTests=false \
       -Dsurefire.rerunFailingTestsCount=0 \
       -DskipITs \
       test || exit 1
   done


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