Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix](auto-partition) fix auto partition load lost data in multi sender (#35287) #35630

Merged
merged 1 commit into from
May 31, 2024

Conversation

kaijchen
Copy link
Contributor

Proposed changes

Change use_cnt mechanism for incremental (auto partition) channels and streams, it's now dynamically counted.
Use close_wait() of regular partitions as a synchronize point to make sure all sinks are in close phase before closing any incremental (auto partition) channels and streams.
Add dummy (fake) partition and tablet if there is no regular partition in the auto partition table.

Backport #35287

@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.

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

…er (apache#35287)

Change `use_cnt` mechanism for incremental (auto partition) channels and
streams, it's now dynamically counted.
Use `close_wait()` of regular partitions as a synchronize point to make
sure all sinks are in close phase before closing any incremental (auto
partition) channels and streams.
Add dummy (fake) partition and tablet if there is no regular partition
in the auto partition table.

Replace apache#34740

Co-authored-by: zhaochangle <[email protected]>
@yiguolei yiguolei merged commit c2fc485 into apache:branch-2.1 May 31, 2024
12 of 14 checks passed
@kaijchen kaijchen deleted the pick-35287 branch May 31, 2024 03:05
morningman pushed a commit that referenced this pull request Jun 11, 2024
…lti sender (#35287)" (#36098)

Reverts #35630 because it brought some more damaging bugs.
we will fix it and merge in next version
zclllyybb added a commit to zclllyybb/doris that referenced this pull request Jun 20, 2024
…er (apache#35287) (apache#35630)

## Proposed changes

Change `use_cnt` mechanism for incremental (auto partition) channels and
streams, it's now dynamically counted.
Use `close_wait()` of regular partitions as a synchronize point to make
sure all sinks are in close phase before closing any incremental (auto
partition) channels and streams.
Add dummy (fake) partition and tablet if there is no regular partition
in the auto partition table.

Backport apache#35287

Co-authored-by: zhaochangle <[email protected]>
morningman pushed a commit that referenced this pull request Jun 20, 2024
… replica (#36586)

this pr
1. picked #35630, which was reverted #36098 before.
2. picked #36344 from master

these two pr fixed existing bug about auto partition load.

---------

Co-authored-by: Kaijie Chen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants