-
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-14008][registry] cache keep alive lease #14034
Conversation
...rc/main/java/org/apache/dolphinscheduler/plugin/registry/etcd/EtcdKeepAliveLeaseManager.java
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## dev #14034 +/- ##
============================================
+ Coverage 38.62% 38.65% +0.02%
- Complexity 4613 4619 +6
============================================
Files 1283 1284 +1
Lines 43855 43877 +22
Branches 4846 4846
============================================
+ Hits 16940 16961 +21
+ Misses 25038 25037 -1
- Partials 1877 1879 +2
... and 2 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Kudos, SonarCloud Quality Gate passed! |
PTAL @ruanwenjun |
4750b7a
to
f5a8413
Compare
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.
Since each put operation will create a new leaseId, and we will schedule heartbeat task to execute put to write heartbeat info, so this will cause memory leak.
This PR will hold the mapping of key to leaseId.
Kudos, SonarCloud Quality Gate passed! |
(cherry picked from commit d87a0d8)
Purpose of the pull request
fix #14008
Brief change log
add
EtcdKeepAliveLeaseManager
Verify this pull request
This pull request is code cleanup without any test coverage.