Skip to content

Commit

Permalink
Fix crash bug when log for buildContextForTC return error (#4833)
Browse files Browse the repository at this point in the history
Co-authored-by: zhangguangchao <1614439+zgcbj@users.noreply.github.com>
Co-authored-by: Xuecheng Zhang <csuzhangxc@gmail.com>
  • Loading branch information
3 people committed Jan 12, 2023
1 parent e5c6bea commit 057dfdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/manager/member/pvc_resizer.go
Expand Up @@ -138,7 +138,7 @@ func (p *pvcResizer) Sync(tc *v1alpha1.TidbCluster) error {

ctx, err := p.buildContextForTC(tc, comp)
if err != nil {
errs = append(errs, fmt.Errorf("build ctx used by resize for %s failed: %w", ctx.ComponentID(), err))
errs = append(errs, fmt.Errorf("build ctx used by resize for %s/%s:%s failed: %w", tc.GetNamespace(), tc.GetName(), comp.MemberType(), err))
continue
}

Expand Down

0 comments on commit 057dfdd

Please sign in to comment.