A bill-pay worker on BestEffort QoS was evicted mid biller call and the card payment is now unknown
The scenario
At due-date peak a node ran out of memory and evicted a BestEffort bill-pay pod. The card biller call was still in flight. The Deployment is Ready. That statement cycle has no receipt, and the queue is about to run it again.
Model answer
What I'd say first:
I would stop retries for that statement cycle. The bill-pay worker was killed while the card biller was still answering, so we do not know if this cycle was paid.
How I'd work it:
- 1Freeze new submit attempts for that member, card, and statement cycle. Leave the row unknown, not paid and not failed.
- 2Confirm the pod had BestEffort quality of service, the class Kubernetes evicts first under memory pressure, and match any payment reference we already sent to the biller status API.
- 3If the biller has a receipt, mark the cycle paid once and credit coins from that receipt. If the biller has no record, one new attempt may use the same cycle key. If status is still unclear, poll. Do not submit a second payment.
- 4Tell the room the member sees pending confirmation until a receipt exists. We do not call the cycle paid to clear the queue.
How I'd explain it:
BestEffort pods have no requests, so the kubelet takes them first when the node is short on memory. The process dies before it can record the biller's answer, and a blind retry pays the same card bill twice. A wrong answer sounds like the Deployment is Ready, so requeue the message. The member promise is one payment per statement cycle.
How I'd prevent it:
Run the payer as Guaranteed quality of service, with memory request equal to limit, so it is not the eviction target. Insert a submitting row with a unique key on member, card, and cycle before the biller call, and make every retry do a status check. A Game Day that kills the payer mid-call must end with one receipt and no second debit.
The follow-up they'll ask
“Just requeue the message. The new pod will pay the bill.”
No. I would not requeue that cycle into a fresh pay attempt. The first call may already have reached the card biller, and a second submit pays the same statement again. I would look up the payment reference with the biller and leave the cycle unknown until a receipt exists. The member should see pending confirmation, not paid. A new pod does not remember what the dead pod already sent.
Common mistakes
- Requeue a blind retry
- Treat Ready as paid
- BestEffort on the payer
- Skip the biller status check