-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[Fix-9352][datasource-api]data source client uses a cache with an expiration time #9353
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #9353 +/- ##
============================================
+ Coverage 40.01% 40.06% +0.04%
- Complexity 4475 4482 +7
============================================
Files 835 835
Lines 33550 33599 +49
Branches 3710 3713 +3
============================================
+ Hits 13426 13462 +36
- Misses 18876 18887 +11
- Partials 1248 1250 +2
Continue to review full report at Codecov.
|
close #9352 |
LGTM |
.../java/org/apache/dolphinscheduler/plugin/datasource/api/plugin/DataSourceClientProvider.java
Outdated
Show resolved
Hide resolved
dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/utils/Constants.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, @caishunfeng do you have time to take a look at this PR?
...eduler-task-datax/src/main/java/org/apache/dolphinscheduler/plugin/task/datax/DataxTask.java
Outdated
Show resolved
Hide resolved
.../java/org/apache/dolphinscheduler/plugin/datasource/api/plugin/DataSourceClientProvider.java
Show resolved
Hide resolved
.../java/org/apache/dolphinscheduler/plugin/datasource/api/plugin/DataSourceClientProvider.java
Outdated
Show resolved
Hide resolved
SonarCloud Quality Gate failed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…iration time (apache#9353) * datasource client cache with expiration time * remove unused import * fixed unit test * fix * fix * fix * fix * fix * fix * fix
Purpose of the pull request
This pull request add a cache with an expiration time for all data source client
close #9352
Brief change log
use Guava Cache for data source client instead of ConcurrentHashMap
Verify this pull request
This pull request is already covered by existing tests, DatasourceUtilTest.testCheckConnection