You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Downstream users of the CNI plugins have been observing occasional interrupted system call failures. The simple loopback plugin is also affected.
Calls like netlink.AddrList may return EINTR as of vishvananda/netlink v1.2.1. vishvananda/netlink@aa4f20d
Prior to this commit, the (possibly incomplete) results from a walk would be returned with a nil error.
I think this upstream commit was incorporated here in d924f05, which was shipped as v1.6.0.
Some of the data structures kernel uses for storing objects make it hard to provide an atomic snapshot of all the objects in a dump (without impacting the fast-paths updating them).
Kernel may set the NLM_F_DUMP_INTR flag on any message in a dump (including the NLMSG_DONE message) if the dump was interrupted and may be inconsistent (e.g. missing objects). User space should retry the dump if it sees the flag set.
More context can be found in vishvananda/netlink#1018, which later added netlink.ErrDumpInterrupted. This commit is yet to be released, though it is available on vishvananda/netlink trunk.
AIUI:
if you require a consistent result from a walk, and can tolerate a potentially unbounded wait, these netlink calls should be retried
otherwise, disregard the error
if errors.Is(err, unix.EINTR) on vishvananda/netlink v1.3.0, or
if errors.Is(err, netlink.ErrDumpInterrupted) on vishvananda/netlink trunk
ty
The text was updated successfully, but these errors were encountered:
Downstream users of the CNI plugins have been observing occasional
interrupted system call
failures. The simpleloopback
plugin is also affected.Calls like
netlink.AddrList
may return EINTR as of vishvananda/netlink v1.2.1.vishvananda/netlink@aa4f20d
Prior to this commit, the (possibly incomplete) results from a walk would be returned with a nil error.
I think this upstream commit was incorporated here in d924f05, which was shipped as v1.6.0.
https://www.kernel.org/doc/html/next/userspace-api/netlink/intro.html#dump-consistency
More context can be found in vishvananda/netlink#1018, which later added
netlink.ErrDumpInterrupted
. This commit is yet to be released, though it is available on vishvananda/netlink trunk.AIUI:
if
errors.Is(err, unix.EINTR)
on vishvananda/netlink v1.3.0, orif
errors.Is(err, netlink.ErrDumpInterrupted)
on vishvananda/netlink trunkty
The text was updated successfully, but these errors were encountered: