-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix(spanner): cache auto-tagging options to avoid system property lock contention #13273
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 all commits
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 | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -997,7 +997,11 @@ protected SpannerOptions(Builder builder) { | |||||||||||||||
| monitoringHost = builder.monitoringHost; | ||||||||||||||||
| defaultTransactionOptions = builder.defaultTransactionOptions; | ||||||||||||||||
| clientContext = builder.clientContext; | ||||||||||||||||
| autoTaggingEnabled = builder.autoTaggingEnabled; | ||||||||||||||||
| if (environment.isAutoTaggingDisabled()) { | ||||||||||||||||
| autoTaggingEnabled = false; | ||||||||||||||||
| } else { | ||||||||||||||||
| autoTaggingEnabled = builder.autoTaggingEnabled || environment.isAutoTaggingEnabled(); | ||||||||||||||||
| } | ||||||||||||||||
| autoTaggingPackages = builder.autoTaggingPackages; | ||||||||||||||||
| autoTaggingTracerLimit = builder.autoTaggingTracerLimit; | ||||||||||||||||
| } | ||||||||||||||||
|
|
@@ -2611,10 +2615,7 @@ public TransactionOptions getDefaultTransactionOptions() { | |||||||||||||||
| } | ||||||||||||||||
|
|
||||||||||||||||
| public boolean isAutoTaggingEnabled() { | ||||||||||||||||
| if (environment.isAutoTaggingDisabled()) { | ||||||||||||||||
| return false; | ||||||||||||||||
| } | ||||||||||||||||
| return autoTaggingEnabled || environment.isAutoTaggingEnabled(); | ||||||||||||||||
| return autoTaggingEnabled; | ||||||||||||||||
| } | ||||||||||||||||
|
|
||||||||||||||||
| public List<String> getAutoTaggingPackages() { | ||||||||||||||||
|
|
@@ -2625,10 +2626,6 @@ public int getAutoTaggingTracerLimit() { | |||||||||||||||
| return autoTaggingTracerLimit; | ||||||||||||||||
| } | ||||||||||||||||
|
|
||||||||||||||||
| public boolean isAutoTaggingDisabled() { | ||||||||||||||||
| return environment.isAutoTaggingDisabled(); | ||||||||||||||||
| } | ||||||||||||||||
|
Comment on lines
2628
to
-2630
Contributor
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. Removing the public method Note: You will also need to declare
Suggested change
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. This change is not live yet |
||||||||||||||||
|
|
||||||||||||||||
| @BetaApi | ||||||||||||||||
| public boolean isUseVirtualThreads() { | ||||||||||||||||
| return useVirtualThreads; | ||||||||||||||||
|
|
||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.