From 176674362ba7245d03d600165ef4ec672d9abfd6 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 13aea3455b5..cc1564172ba 100644 --- a/service/history/shard/context_impl.go +++ b/service/history/shard/context_impl.go @@ -1215,7 +1215,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 }