diff options
author | Matthew Heon <matthew.heon@pm.me> | 2021-09-21 14:24:23 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2021-09-22 16:33:22 -0400 |
commit | d45cbbda3445d204588723c03609ff2641a70781 (patch) | |
tree | 699a864f9ed224d528590768ed3561791c7a4605 /test | |
parent | 70da2e858bfecf3d3301b5b85ff5d7332911855d (diff) | |
download | podman-d45cbbda3445d204588723c03609ff2641a70781.tar.gz podman-d45cbbda3445d204588723c03609ff2641a70781.tar.bz2 podman-d45cbbda3445d204588723c03609ff2641a70781.zip |
Add a backoff and retries to retrieving exited event
There's a potential race around extremely short-running
containers and events with journald. Events may not be written
for some time (small, but appreciable) after they are received,
and as such we can fail to retrieve it if there is a sufficiently
short time between us writing the event and trying to read it.
Work around this by just retrying, with a 0.25 second delay
between retries, up to 4 times.
[NO TESTS NEEDED] because I have no idea how to reproduce this
race in CI.
Fixes #11633
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions