Skip to content

[Bugfix] Always close StarRocksSourceDataReader and check keepAliveMin is valid#138

Merged
chaoyli merged 2 commits intoStarRocks:mainfrom
banmoy:source_close
Nov 10, 2022
Merged

[Bugfix] Always close StarRocksSourceDataReader and check keepAliveMin is valid#138
chaoyli merged 2 commits intoStarRocks:mainfrom
banmoy:source_close

Conversation

@banmoy
Copy link
Copy Markdown
Collaborator

@banmoy banmoy commented Nov 9, 2022

What type of PR is this:

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

Which issues of this PR fixes :

Fixes #

Problem Summary(Required) :

  1. StarRocksDynamicSourceFunction does not close StarRocksSourceDataReader if flink job finishes normally, which will not close the connection with BE
  2. check the configuration for keepAliveMin does not overflow when converting int to short

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

@banmoy banmoy changed the title [Bugfix] Always close StarRocksSourceDataReader [Bugfix] Always close StarRocksSourceDataReader and check keepAliveMin is valid Nov 9, 2022

private void internalClose() {
if (dataReaderClosed.compareAndSet(false, true)) {
LOG.info("Close reader");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Add a request in the info

@chaoyli chaoyli merged commit 75bf88e into StarRocks:main Nov 10, 2022
banmoy added a commit to banmoy/starrocks-connector-for-apache-flink that referenced this pull request Nov 10, 2022
banmoy added a commit to banmoy/starrocks-connector-for-apache-flink that referenced this pull request Nov 10, 2022
banmoy added a commit to banmoy/starrocks-connector-for-apache-flink that referenced this pull request Nov 10, 2022
banmoy added a commit to banmoy/starrocks-connector-for-apache-flink that referenced this pull request Nov 10, 2022
chaoyli pushed a commit that referenced this pull request Nov 15, 2022
chaoyli pushed a commit that referenced this pull request Nov 15, 2022
chaoyli pushed a commit that referenced this pull request Nov 15, 2022
chaoyli pushed a commit that referenced this pull request Nov 15, 2022
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.

3 participants