Skip to content
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

allow to use common balancer in child drivers #1530

Merged
merged 6 commits into from
Oct 25, 2024

Conversation

neyguvj
Copy link
Collaborator

@neyguvj neyguvj commented Oct 25, 2024

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Other information

options.go Outdated Show resolved Hide resolved
options.go Outdated Show resolved Hide resolved
with.go Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
with.go Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Oct 25, 2024

🌋 Here are results of SLO test for Go SDK database/sql:

Grafana Dashboard

SLO-database-sql

Copy link

github-actions bot commented Oct 25, 2024

🌋 Here are results of SLO test for Go SDK gorm:

Grafana Dashboard

SLO-gorm

Copy link

github-actions bot commented Oct 25, 2024

🌋 Here are results of SLO test for Go SDK xorm:

Grafana Dashboard

SLO-xorm

Copy link

github-actions bot commented Oct 25, 2024

🌋 Here are results of SLO test for Native ydb-go-sdk/v3 over table-service:

Grafana Dashboard

SLO-native-table

Copy link

github-actions bot commented Oct 25, 2024

🌋 Here are results of SLO test for Native ydb-go-sdk/v3 over query-service:

Grafana Dashboard

SLO-native-query

with.go Outdated
@@ -19,9 +19,6 @@ func (d *Driver) with(ctx context.Context, opts ...Option) (*Driver, uint64, err
append(
append(
d.opts,
WithBalancer(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

вернуть как было!

driver.go Outdated
d.balancer, err = balancer.New(ctx, d.config, d.pool, d.discoveryOptions...)
if d.balancer == nil {
d.balancer, err = balancer.New(ctx, d.config, d.pool, d.discoveryOptions...)
}
if err != nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

перенести проверку выше

Copy link

github-actions bot commented Oct 25, 2024

github.com/ydb-platform/ydb-go-sdk/v3

compatible changes

WithSharedBalancer: added

summary

Base version: v3.89.0 (master)
Suggested version: v3.90.0

@neyguvj neyguvj changed the title USe common balancer in child drivers allow to use common balancer in child drivers Oct 25, 2024
@codecov-commenter
Copy link

codecov-commenter commented Oct 25, 2024

Codecov Report

Attention: Patch coverage is 45.45455% with 6 lines in your changes missing coverage. Please review.

Project coverage is 70.88%. Comparing base (89f4332) to head (8b810e4).

Files with missing lines Patch % Lines
options.go 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1530      +/-   ##
==========================================
- Coverage   71.03%   70.88%   -0.16%     
==========================================
  Files         356      356              
  Lines       37483    37490       +7     
==========================================
- Hits        26627    26573      -54     
- Misses       9754     9803      +49     
- Partials     1102     1114      +12     
Flag Coverage Δ
experiment 70.78% <45.45%> (-0.08%) ⬇️
go-1.21.x 70.41% <45.45%> (-0.17%) ⬇️
go-1.22.x 68.40% <45.45%> (-0.14%) ⬇️
go-1.23.x 70.86% <45.45%> (-0.13%) ⬇️
integration 52.29% <45.45%> (-0.20%) ⬇️
macOS 40.93% <0.00%> (-0.02%) ⬇️
ubuntu 70.88% <45.45%> (-0.16%) ⬇️
unit 40.93% <0.00%> (-0.02%) ⬇️
windows 40.93% <0.00%> (-0.02%) ⬇️
ydb-23.3 47.96% <45.45%> (-0.10%) ⬇️
ydb-24.1 52.25% <45.45%> (-0.17%) ⬇️
ydb-24.2 51.89% <45.45%> (-0.56%) ⬇️
ydb-nightly 70.78% <45.45%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@asmyasnikov asmyasnikov merged commit fca922c into master Oct 25, 2024
44 checks passed
@asmyasnikov asmyasnikov deleted the use_common_balancer_in_shared_drivers branch October 25, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants