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

[Enhancement] no need to getLabelState if an existing label is finished #231

Merged
merged 1 commit into from
May 25, 2023
Merged

Conversation

szza
Copy link
Contributor

@szza szza commented May 25, 2023

What type of PR is this:

  • BugFix
  • Feature
  • Enhancement
  • Refactor
  • UT
  • Doc
  • Tool

Which issues of this PR fixes :

Fixes #

Problem Summary(Required) :

the benefit of this pr have two aspects:

  • when DefaultStreamLoader.send failed, we can use the the context of existingJobStatus field in the StreamLoadResponse to replace getLabelState http request;
  • In addition, if we use sink.version = 2 and at-least-once sink semantic,we just use BE's ipAndHttpport and then DefaultStreamLoader.send directly send data to BE node, instead of redirecting to BE through FE , so further eliminate redirect problem.

Checklist:

  • I have added test cases for my bug fix or my new feature
  • This pr will affect users' behaviors
  • This pr needs user documentation (for new or modified features or behaviors)
  • I have added documentation for my new feature or new function

…nd failure to reduce fe http request

Signed-off-by: shuzz <shuzz@shuyilink.com>
@szza szza changed the title [Enhancement] remove the 'getLabelState' after DefaultStreamLoader.se… [Enhancement] remove the getLabelState when DefaultStreamLoader.send failed May 25, 2023
@szza szza changed the title [Enhancement] remove the getLabelState when DefaultStreamLoader.send failed [Enhancement] no need to getLabelState if an existing label is finished May 25, 2023
@banmoy banmoy merged commit f511c4c into StarRocks:main May 25, 2023
3 checks passed
@banmoy
Copy link
Collaborator

banmoy commented May 25, 2023

@szza Thanks for your PR

1 similar comment
@banmoy
Copy link
Collaborator

banmoy commented May 25, 2023

@szza Thanks for your PR

banmoy pushed a commit to banmoy/starrocks-connector-for-apache-flink that referenced this pull request Aug 28, 2023
banmoy pushed a commit to banmoy/starrocks-connector-for-apache-flink that referenced this pull request Aug 28, 2023
banmoy pushed a commit to banmoy/starrocks-connector-for-apache-flink that referenced this pull request Aug 28, 2023
banmoy pushed a commit that referenced this pull request Sep 11, 2023
…ed (#231)

Signed-off-by: shuzz <shuzz@shuyilink.com>
banmoy pushed a commit that referenced this pull request Sep 11, 2023
…ed (#231)

Signed-off-by: shuzz <shuzz@shuyilink.com>
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.

None yet

2 participants