runtime: negative duration panic in timeHistogram.record #43328
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Milestone
It's possible sometimes for
timeHistogram
to get a negative duration either due to a platform bug or surprising time semantics on a given platform.Notably, this could happen when running under gVisor, where, for efficiency, gVisor provides its own VDSO for acquiring the current monotonic time, but falls back on a different clock if the system clock is wildly in error (https://github.com/google/gvisor/blob/master/vdso/vdso_time.cc#L149).
The result is a panic that can't be worked around. For resiliency's sake,
timeHistogram
should just accept negative durations and record them.The text was updated successfully, but these errors were encountered: