Skip to content

Commit ac66dda

Browse files
authored
Merge pull request #156 from ydb-platform/hotfix
v3.14.3: Fixed bug with update balancer element with nil handle
2 parents 4b473a2 + 06bbd44 commit ac66dda

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 3.14.3
2+
* Fixed bug with update balancer element with nil handle
3+
14
## 3.14.2
25
* Refactored internal error wrapping (with file and line identification) - replaced `fmt.Printf("%w", err)` error wrapping to internal `stackError`
36

internal/cluster/cluster.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,10 @@ func (c *cluster) Update(ctx context.Context, e endpoint.Endpoint, opts ...crudO
347347
c.balancerMtx.Lock()
348348
defer c.balancerMtx.Unlock()
349349

350-
c.balancer.Update(entry.Handle, e.Info())
350+
if entry.Handle != nil {
351+
// entry.Handle may be nil because endpoint may be no in balancer
352+
c.balancer.Update(entry.Handle, e.Info())
353+
}
351354

352355
return entry.Conn
353356
}

internal/meta/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package meta
22

33
const (
4-
Version = "ydb-go-sdk/3.14.2"
4+
Version = "ydb-go-sdk/3.14.3"
55
)

0 commit comments

Comments
 (0)