Skip to content

Conversation

@kaijchen
Copy link
Member

backport #42039

…ache#42039)

Currently, an upstream BE (sink_v2) will open multiple streams to a
downstream BE (load_stream).
If any of the streams fails, the use_cnt on the downstream BE will be
messed up.
The load_stream will not report any success tablets to the sink_v2 since
in its view there are still unfinished streams.

So fault tolerance when open streams is not meaningful in practical, and
may cause data lost.
i.e. Upstream think there is still working streams to transfer data, but
downstream does not report any commit info.

This PR removes fault tolerance when open multiple streams to the same
backend.
If any of the open fails, the upstream sink_v2 should mark the
downstream BE as failed replicas.
@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.

@kaijchen
Copy link
Member Author

run buildall

@github-actions
Copy link
Contributor

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

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.01% (9354/25975)
Line Coverage: 27.57% (76822/278595)
Region Coverage: 26.38% (39455/149555)
Branch Coverage: 23.17% (20084/86674)
Coverage Report: http://coverage.selectdb-in.cc/coverage/43abbe58c41e28920e0492402c467a3ff80e1444_43abbe58c41e28920e0492402c467a3ff80e1444/report/index.html

@liaoxin01 liaoxin01 merged commit 25d7d0b into apache:branch-2.1 Oct 22, 2024
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.

3 participants