344
345
if s.isTieredStackEnabled {
346
>
// RemoteReaderInfo is used for failover. It is to determine if remote cluster has caught up on replication tasks.
stream_sender.go
347
>
// In tiered stack, we will use high priority watermark to do failover as High Priority channel is supposed to be used for live traffic
348
>
// and Low Priority channel is used for force replication closed workflow.
349
>
return s.shardContext.UpdateRemoteReaderInfo(
350
>
readerID,
351
>
attr.HighPriorityState.InclusiveLowWatermark-1,
352
>
attr.HighPriorityState.InclusiveLowWatermarkTime.AsTime(),
353
>
)
354
>
}
355
return s.shardContext.UpdateRemoteReaderInfo(
356
readerID,