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][Connector-V2] Fix doris sink can not be closed when stream load not read any data #6570

Merged
merged 1 commit into from Mar 27, 2024

Conversation

Hisoka-X
Copy link
Member

Purpose of this pull request

This PR fix doris stream load thread not read any data cause writer can not write data into buffer. Finally writer can not check exception because the thread stucked.

Does this PR introduce any user-facing change?

no

How was this patch tested?

tested in local. hard to add test case.

Check list

if (loadException != null) {
throw new RuntimeException("error while loading data.", loadException);
} else {
executorThread = Thread.currentThread();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before this PR, the executorThread value not right. So that stream load check error thread can not interupt write thread normally.

Copy link
Member

@liugddx liugddx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@EricJoy2048 EricJoy2048 merged commit 341615f into apache:dev Mar 27, 2024
6 checks passed
@Hisoka-X Hisoka-X deleted the doris-write-failed branch March 29, 2024 10:36
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.

None yet

3 participants