close
Skip to content

[fix][connector-v2][connector-assert] Optimize Assert Sink verification method#8356

Merged
hailin0 merged 1 commit into
apache:devfrom
zhangshenghang:fix-assert-sink-writer
Dec 20, 2024
Merged

[fix][connector-v2][connector-assert] Optimize Assert Sink verification method#8356
hailin0 merged 1 commit into
apache:devfrom
zhangshenghang:fix-assert-sink-writer

Conversation

@zhangshenghang

Copy link
Copy Markdown
Member

Purpose of this pull request

When there are multiple AssertSinkWriters, some Sinks will run to completion first and enter the close method. You need to let it wait for other Sinks to complete, otherwise it will make wrong judgments.

Does this PR introduce any user-facing change?

How was this patch tested?

Check list

@zhangshenghang

Copy link
Copy Markdown
Member Author

@Hisoka-X PTAL.

@Hisoka-X Hisoka-X left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM if ci passes. Thanks @zhangshenghang !

Thread.sleep(WAIT_SINK_WRITER_COMPLETE_TIME);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, but we should implement committer to final count check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants