Skip to content

Commit

Permalink
WIP - some temporary debug
Browse files Browse the repository at this point in the history
Unsolicited NAs are failing occasionally, haven't been able to repro
outside CI ...

Signed-off-by: Rob Murray <[email protected]>
  • Loading branch information
robmry committed Jan 23, 2025
1 parent 441579a commit 0acb671
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion libnetwork/osl/interface_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,15 @@ func (n *Namespace) advertiseAddrs(ctx context.Context, ifIndex int, i *Interfac

// Send an initial message. If it fails, skip the resends.
if err := send(ctx); err != nil {
return err
// Temp debug ...
err = fmt.Errorf("ns:%q: %w", n.path, err)
for retry := range 3 {
time.Sleep(100 * time.Millisecond)
if retryErr := send(ctx); retryErr == nil {
return fmt.Errorf("success on retry %d: %w", retry, err)
}
}
return fmt.Errorf("failed after retries: %w", err)
}
if i.advertiseAddrNMsgs == 1 {
return nil
Expand Down

0 comments on commit 0acb671

Please sign in to comment.