OhMyBug

persistence/transactions

Latest Failed Record Hides Valid One

#59rare15 sightingsfirst seen September 2026

What goes wrong

A lookup takes the most recent record for a key by timestamp without filtering on validity, so a later failed, cancelled or otherwise ineligible record permanently hides the earlier valid one.

Example

Taking the newest payment attempt returns the failed retry, and the order shows 'unpaid' though the earlier attempt succeeded.

Not to be confused with

Picking by recency over rows of mixed validity; not a completion stamped too early (Premature Completion Certificate) and not a stale cache (Missed Snapshot Refresh).

Discovered by

Field notes · 5