Skip to content

[Improve][Connector-V2][StarRocks]StarRocks Sink connector support 2pc and eos #4752

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

Open
wants to merge 21 commits into
base: dev
Choose a base branch
from

Conversation

531651225
Copy link
Contributor

@531651225 531651225 commented May 15, 2023

Purpose of this pull request

StarRocks Sink connector support 2pc and eos

Testing under large data volume

Produce 500 million pieces of data using FakeSource, write them to starRocks through the starRocks sink connector 2pc method, and verify
BAF8E120-DDFE-480E-BFE5-BAE1B6207EEE

1A771CB9-53DA-42C3-98A7-4F41BE50B958
F6863D61-79A9-45E6-BF97-A7C3D2988210

refer to #4747

Check list

@Hisoka-X
Copy link
Member

The StarRocks E2E closed at now, can you change code to open it?

public String parseHttpResponse(CloseableHttpResponse response, String requestType)
throws StarRocksConnectorException {
int code = response.getStatusLine().getStatusCode();
if (307 == code) {
Copy link
Member

Choose a reason for hiding this comment

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

Can you change the response code number to same meaning enum?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you change the response code number to same meaning enum?
Thanks, fixed it


@Override
public void init() {
this.manager =
Copy link
Member

Choose a reason for hiding this comment

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

Are there have a reason for why have to create an new thread?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Creating a new thread is used to trigger flush batch data to stream load within the interval specified in "flush_frequency_ms". Batch writes can be triggered multiple times within a single transaction

@hailin0
Copy link
Member

hailin0 commented May 15, 2023

check ci

@Hisoka-X
Copy link
Member

This PR is a big change for StarRocks connector. Please do more test and add test case. Thanks!

@@ -30,6 +38,8 @@ The internal implementation of StarRocks sink connector is cached and imported b
| retry_backoff_multiplier_ms | int | no | - |
| max_retry_backoff_ms | int | no | - |
| enable_upsert_delete | boolean | no | false |
| enable-2pc | boolean | no | false |
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
| enable-2pc | boolean | no | false |
| exactly-once | boolean | no | false |

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your suggestion, fix it

@Hisoka-X
Copy link
Member

@531651225
Copy link
Contributor Author

@ic4y
Copy link
Contributor

ic4y commented Aug 6, 2023

@531651225 Can we proceed with this PR? There are some conflicts that need to be resolved, and we also need to add some tests.

@EricJoy2048
Copy link
Member

@531651225

This is a very good PR, do you have any plans to continue it

@531651225
Copy link
Contributor Author

@531651225

This is a very good PR, do you have any plans to continue it

yes,i will go on to try it

@Xuxiaotuan
Copy link

@531651225
这是一次非常好的 PR,你有什么计划继续下去吗?

是的,我会继续尝试

Hello, is this still going on? I've been using the Starrcoks component recently and need this feature, if you need help, I'd be happy to

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.

7 participants