Skip to content

Commit

Permalink
refactor(repair): improve tablet load balancing logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal-Leszczynski authored and karol-kokoszka committed Aug 9, 2024
1 parent 5726522 commit 777491c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/service/repair/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ func (g *generator) Run(ctx context.Context) (err error) {

defer func() {
// Always leave tablet migration enabled after repair
err = stdErrors.Join(err, g.ringDescriber.ControlTabletLoadBalancing(context.Background(), true))
tabletBalancingErr := g.ringDescriber.ControlTabletLoadBalancing(context.Background(), true)
err = stdErrors.Join(err, errors.Wrap(tabletBalancingErr, "control post repair tablet load balancing"))
}()

for _, ksp := range g.plan.Keyspaces {
Expand Down

0 comments on commit 777491c

Please sign in to comment.