Skip to content

[To dev/1.3] Fix duplicate DataRegion scheduling after recovery - #19065

Merged
shuwenwei merged 1 commit into
apache:dev/1.3from
hongzhi-gao:fix/ttl-schedule-duplicate-region-1.3
Oct 30, 2026
Merged

shuwenwei merged 1 commit into
apache:dev/1.3from
hongzhi-gao:fix/ttl-schedule-duplicate-region-1.3

Conversation

@hongzhi-gao

@hongzhi-gao hongzhi-gao commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Description

Backport #18803 to dev/1.3.

During restart recovery, a DataRegion with no asynchronous TsFile resource recovery tasks already initializes compaction scheduling in synchronous recovery. The subsequent asynchronous recovery flow initializes it again, creating duplicate entries shared by TTL and compaction scheduling.

Skip that flow for empty task lists, make registration atomic and idempotent under the existing Vector monitor, and remove every occurrence of the same DataRegion on unregistration. Preserve dev/1.3's existing compaction-disable behavior when resolving the cherry-pick conflict; the setAllowCompaction(false) context line in master was not part of #18803's change.

@shuwenwei
shuwenwei merged commit 01a889c into apache:dev/1.3 Oct 30, 2026
16 checks passed
@hongzhi-gao
hongzhi-gao deleted the fix/ttl-schedule-duplicate-region-1.3 branch October 30, 2026 16:06
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.

2 participants