The shutdown leaves the lock ring and drains gRPC and HTTP before
Filer.Shutdown runs the final metadata log flush. Those steps can take
longer than a container's termination grace period, and a kill before the
final flush drops every local event since the last periodic flush. On a
shared store peers keep those events only in memory, so they vanish from
every filer's aggregated stream.
Start a flush of the local metadata log first, in the background, so the
events accepted before the signal are persisted within seconds.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>