Skip to content

Conversation

@ruanwenjun
Copy link
Member

Reverts #14193

@ruanwenjun ruanwenjun requested a review from caishunfeng as a code owner July 24, 2023 02:18
@ruanwenjun ruanwenjun added this to the 3.1.8 milestone Jul 24, 2023
@ruanwenjun ruanwenjun added the bug Something isn't working label Jul 24, 2023
@codecov-commenter
Copy link

codecov-commenter commented Jul 24, 2023

Codecov Report

Merging #14626 (4b23ba2) into dev (930d2f0) will decrease coverage by 0.07%.
The diff coverage is 0.00%.

❗ Current head 4b23ba2 differs from pull request most recent head 5f8fdf3. Consider uploading reports for the commit 5f8fdf3 to get more accurate results

@@             Coverage Diff              @@
##                dev   #14626      +/-   ##
============================================
- Coverage     38.58%   38.52%   -0.07%     
- Complexity     4578     4579       +1     
============================================
  Files          1260     1260              
  Lines         43752    43808      +56     
  Branches       4830     4838       +8     
============================================
- Hits          16881    16875       -6     
- Misses        24998    25062      +64     
+ Partials       1873     1871       -2     
Impacted Files Coverage Δ
.../datasource/api/client/CommonDataSourceClient.java 2.38% <0.00%> (+0.45%) ⬆️
.../datasource/azuresql/AzureSQLDataSourceClient.java 4.00% <0.00%> (-10.29%) ⬇️
...r/plugin/datasource/hive/HiveDataSourceClient.java 2.50% <0.00%> (-1.50%) ⬇️
...ugin/datasource/kyuubi/KyuubiDataSourceClient.java 4.76% <0.00%> (-5.24%) ⬇️
.../datasource/redshift/RedshiftDataSourceClient.java 0.00% <0.00%> (ø)

... and 3 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@EricGao888
Copy link
Member

@ruanwenjun Hi, may I ask why you want to revert this change?

@ruanwenjun
Copy link
Member Author

@ruanwenjun Hi, may I ask why you want to revert this change?

This PR introduces some serious bugs.

  1. In many drivers, the connection is not thread-safe, this pr hold one connection in CommonDataSourceClient, this will cause multiple tasks get the same connection at the same time.
  2. In many drivers, connection.isClosed() is only check the closed flag at the driver side, it cannot represent if the connection is active/valided.

@EricGao888
Copy link
Member

@ruanwenjun Hi, may I ask why you want to revert this change?

This PR introduces some serious bugs.

  1. In many drivers, the connection is not thread-safe, this pr hold one connection in CommonDataSourceClient, this will cause multiple tasks get the same connection at the same time.
  2. In many drivers, connection.isClosed() is only check the closed flag at the driver side, it cannot represent if the connection is active/valided.

Got it, thx for the explanation.

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

0.0% 0.0% Coverage
21.6% 21.6% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@ruanwenjun ruanwenjun modified the milestone: 3.1.8 Jul 24, 2023
@ruanwenjun ruanwenjun added the 3.1.x for 3.1.x version label Jul 24, 2023
@ruanwenjun ruanwenjun merged commit 6617e3f into dev Jul 24, 2023
@ruanwenjun ruanwenjun deleted the revert-14193-dev branch July 24, 2023 09:33
@zhuangchong zhuangchong removed this from the 3.1.8 milestone Jul 28, 2023
zhongjiajie pushed a commit that referenced this pull request Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.1.x for 3.1.x version backend bug Something isn't working ready-to-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants