From 40019d8868f855adaf5fb9e98f4bbd563538d39b Mon Sep 17 00:00:00 2001 From: wxing1292 Date: Fri, 12 May 2023 18:23:05 -0700 Subject: [PATCH] Make sure shard info always stays in a cleanup state (#4336) --- service/history/shard/context_impl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/history/shard/context_impl.go b/service/history/shard/context_impl.go index 74878e16bf3..242fc4f35df 100644 --- a/service/history/shard/context_impl.go +++ b/service/history/shard/context_impl.go @@ -1110,7 +1110,7 @@ func (s *ContextImpl) renewRangeLocked(isStealing bool) error { s.taskSequenceNumber = updatedShardInfo.GetRangeId() << s.config.RangeSizeBits s.maxTaskSequenceNumber = (updatedShardInfo.GetRangeId() + 1) << s.config.RangeSizeBits s.immediateTaskExclusiveMaxReadLevel = s.taskSequenceNumber - s.shardInfo = updatedShardInfo + s.shardInfo = loadShardInfoCompatibilityCheck(s.clusterMetadata, copyShardInfo(updatedShardInfo)) return nil }