Skip to content

Conversation

@github-actions
Copy link
Contributor

Cherry-picked from #51036

### What problem does this PR solve?
Related PR: #50901

Problem Summary:

In the previous PR, I added makeSureInitialized() to configureJdbcTable,
which will create the jdbcclient if it does not exist. However, in the
testJdbcConnection process, makeSureInitialized() is bypassed and
initLocalObjectsImpl is used directly. This will cause a jdbcclient to
be created again when configureJdbcTable is used in testJdbcConnection,
and the previous jdbcclient is not closed, resulting in a connection
leak.

In the modification of this PR, I used a completely independent
testClient for the TestConnection process to avoid this problem.
@github-actions github-actions bot requested a review from yiguolei as a code owner May 20, 2025 02:22
@Thearas
Copy link
Contributor

Thearas commented May 20, 2025

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@dataroaring dataroaring reopened this May 20, 2025
@Thearas
Copy link
Contributor

Thearas commented May 20, 2025

run buildall

1 similar comment
@zy-kkk
Copy link
Member

zy-kkk commented May 20, 2025

run buildall

@zy-kkk
Copy link
Member

zy-kkk commented May 20, 2025

pick by #51038

@zy-kkk zy-kkk closed this May 20, 2025
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.

4 participants