Skip to content

Commit 14b5cac

Browse files
authored
Merge pull request #176 from ydb-platform/banned-to-created
banned -> online on cluster.Update
2 parents d96b8a4 + ecc4955 commit 14b5cac

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
* Added closing `conn.Conn` if discovery client build failure
22
* Added wrapping errors with stacktrace
3+
* Added discharging banned state of `conn.Conn` on `cluster.Update` step
34

45
## v3.16.6
56
* Rollback moving `meta.Meta` call to conn exclusively from `internal/db` and `internal/discovery`

internal/cluster/cluster.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,10 @@ func (c *cluster) Update(ctx context.Context, e endpoint.Endpoint, opts ...crudO
374374
endpoint.WithLocalDC(e.LocalDC()),
375375
)
376376

377+
if entry.Conn.GetState() == conn.Banned {
378+
entry.Conn.SetState(conn.Online)
379+
}
380+
377381
delete(c.endpoints, e.NodeID())
378382
c.index[e.Address()] = entry
379383

0 commit comments

Comments
 (0)