tkhurana opened a new pull request, #2667:
URL: https://github.com/apache/phoenix/pull/2667

   A write whose replication fails during a consistent failover (its writer 
fenced by the standby) could not fall back to STORE_AND_FORWARD, so the 
RegionServer aborted.
   
   - The rejected STORE_AND_FORWARD transition's from-state decides: a failover 
in progress, being cancelled or committed fails the write with 
ReplicationFailoverInProgressException (DoNotRetry) and keeps the RS up; any 
other state still aborts. The sync timeout still aborts.
   - ReplicationLogGroup.checkUsable() runs before the local commit 
(preBatchMutate). Later writes on a group a failover stopped are refused with 
MutationBlockedIOException (no change made), so only the write whose ship 
failed gets ReplicationFailoverInProgressException (a divergence, always 
recorded). Once the failover is over the group is replaced; writes get the 
retriable ReplicationLogGroupUnavailableException meanwhile.
   - failoverPending is read from the cached HA state instead of a listener-set 
flag.
   - A write that may exist only on this cluster is logged as a 
PHOENIX_HA_DIVERGENCE SYNC_FAILED record and counted (replicationDivergence) 
for repair with the sync tool.
   - FailoverPhoenixConnection counts ReplicationFailoverInProgressException 
(HA_REPLICATION_FAILOVER_IN_PROGRESS_COUNT, global and per HA group) the way it 
counts MutationBlockedIOException. No retry or role-record refresh is added; 
the exception still reaches the application.
   
   


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