Skip to content

[Bug][Connector-V2][Assert] AssertSinkWriter supports multiple concurrent operations #8357

Closed
@zhangshenghang

Description

@zhangshenghang

Search before asking

  • I had searched in the feature and found no similar feature requirement.

Description

The current AssertSinkWriter has a bug in the Close method to verify whether the data has been run completely, especially when dealing with multiple concurrent instances.
For example, if there are two AssertSinkWriter threads A and B, and A has finished running while B has not, A will execute the close method to count whether the overall execution is complete.

The correct logic is to perform validation after all threads have completed running, or alternatively, thread A only verifies the data it runs.

image

Usage Scenario

No response

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions