-
Notifications
You must be signed in to change notification settings - Fork 135
feat: long running transaction clean up background task. Adding configuration options for closing inactive transactions. #2419
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
Changes from 1 commit
edc5bbf
49a85df
4cd497b
4a6aa8e
b2aa09d
8d6d71e
34502d1
660cbcf
82f9a09
65a42f7
d76b0b1
fcf1565
7858d7c
342eed8
227dd27
ab05e08
3f07bf6
cbc93e6
5f36519
cf5f8a3
3469bed
c27eaa9
ded6d75
b4b4033
4423664
a9da9dd
6239429
acdc9ac
480c719
019e100
ff144ae
efe888f
d0d2c91
9f0a100
b96e940
ecd2f4b
6b72583
8ca552b
ed84ad1
a1b4b5f
c011d4c
6c76a05
dee86d0
b3b45e2
e82c54f
c3e39ff
db37f9d
4edaa52
416ca61
ee3ec84
943c2c5
a4faf05
3f1e752
d1f599e
c41fbd7
ea39b03
d9ce080
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -334,8 +334,7 @@ static InactiveTransactionRemovalOptions.Builder newBuilder() { | |
| } | ||
|
|
||
| static class Builder { | ||
| private ActionOnInactiveTransaction actionOnInactiveTransaction = | ||
| ActionOnInactiveTransaction.WARN; | ||
| private ActionOnInactiveTransaction actionOnInactiveTransaction; | ||
| private Duration executionFrequency = Duration.ofMinutes(2); | ||
| private double usedSessionsRatioThreshold = 0.95; | ||
| private Duration idleTimeThreshold = Duration.ofMinutes(60L); | ||
|
|
@@ -556,7 +555,7 @@ public Builder setBlockIfPoolExhausted() { | |
| * | ||
| * @return this builder for chaining | ||
| */ | ||
| public Builder setWarnIfInactiveTransactions() { | ||
| Builder setWarnIfInactiveTransactions() { | ||
| this.inactiveTransactionRemovalOptions = | ||
| InactiveTransactionRemovalOptions.newBuilder() | ||
| .setActionOnInactiveTransaction(ActionOnInactiveTransaction.WARN) | ||
|
|
@@ -575,7 +574,7 @@ public Builder setWarnIfInactiveTransactions() { | |
| * | ||
| * @return this builder for chaining | ||
| */ | ||
| public Builder setWarnAndCloseIfInactiveTransactions() { | ||
| Builder setWarnAndCloseIfInactiveTransactions() { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why are we making these methods package protected?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @psinghbay1 This feature is not yet launched. Hence it is package protected in this PR. We will be enabling this in the next couple of weeks. |
||
| this.inactiveTransactionRemovalOptions = | ||
| InactiveTransactionRemovalOptions.newBuilder() | ||
| .setActionOnInactiveTransaction(ActionOnInactiveTransaction.WARN_AND_CLOSE) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.