OhMyBug

concurrency/state

Retry loop with no give-up rule

rare9 sightingsfirst seen September 2026

What goes wrong

A loop or repeating call retries a failing operation with no condition that ever ends it. A failure that will never resolve therefore repeats at the chosen cadence for as long as the process lives. The code relies on every failure being temporary, and on somebody noticing the repetition and intervening by hand.

Example

A fallback poller keeps checking an address that no longer exists, emitting the same failure every few minutes for the life of the process.

Not to be confused with

Not retry repeats a too-short timeout, which is about each attempt being cut off early; here the attempts may be sized correctly and it is the number of them that has no upper bound.

Discovered by

Field notes · 6

Read all 6 stories

Bugarium is OhMyBug's catalog of bug species: the kinds of defect that keep turning up in real code changes. Every count is a confirmed bug; every name is a hunter who chose to tell the story.