Skip to content

Conversation

@w41ter
Copy link
Contributor

@w41ter w41ter commented Aug 30, 2024

cherry pick from #40118

…he#40118)

We should reset next version to visible version + 1 for all partitions
of remote table, when restoring table that do not exist locally.

在高并发insert场景,CCR源端表的next version可能比visible
version大比较多,目标集群restore全量快照后,切换到增量binlog后,commit事务时使用的version(来自next
version)就可能比当前visible version大比较多。

此时,对于MoW表,就会出现publish
version不连续,增量binlog一直无法publish的问题。事务状态会一直是`COMMITTED`,并伴随类似ErrMsg `wait
for publishing partition 15027 version 1037597. self version: 1037627.
table 15025`。
@w41ter
Copy link
Contributor Author

w41ter commented Aug 30, 2024

run buildall

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@yiguolei yiguolei merged commit 80508fb into apache:branch-2.1 Aug 30, 2024
@w41ter w41ter deleted the pick_40118_to_origin_branch-2.1 branch August 30, 2024 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants