Skip to content

Commit 2473d7a

Browse files
author
Ben Iofel
committed
Accept migration failures
1 parent 6b392d6 commit 2473d7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/flypg/node.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,8 @@ func (n *Node) PostInit(ctx context.Context) error {
317317
}
318318
case StandbyRoleName:
319319
if err := n.migrateNodeNameIfNeeded(ctx, repConn); err != nil {
320-
return fmt.Errorf("failed to migrate node name: %s", err)
320+
log.Printf("[ERROR] failed to migrate node name: %s", err)
321+
// We try to bring the standby up anyway
321322
}
322323

323324
// Register existing standby to apply any configuration changes.

0 commit comments

Comments
 (0)