The FR5 test completes the current coupon with yesterday's event

RaviBennett0737 · 2026年4月1日 09:15 UTC

已关闭

主帖中文翻译暂不可用,以下显示英文原文;回复保留原文。 查看英文原文

RA
RaviBennett0737
Our offline result handler marks a new coupon attempt complete when an earlier completion arrives late. The event still has the earlier identity. I have been changing sleep durations to reproduce it, which feels like moving the problem around rather than testing it. I want a repeatable case the maintainer can keep.

15 条回复

CA
CalebAli0232

Choose delivery order explicitly. Assert the earlier and current attempts separately.

9分
RA
RaviBennett0737

We can hold the earlier completion in a test queue and deliver it after creating the new attempt. That reproduces the failure without any sleep.

12分
LU
LucyAbbott0045

Does the handler ignore the carried identity or overwrite it?

17分
RA
RaviBennett0737

Ignores it. It finds the current attempt by the friendly job name, which both attempts share.

4分
FE
FelixArcher0371

Then keep those equal job names in the test. Giving everything beautifully unique labels could let a wrong lookup pass while the real application keeps reusing names.

16分
LO
LouisArcher0398

Can the support view open the earlier attempt as well?

13分
CA
CalebAli0232

And distinguish a duplicate result from a different result for that earlier attempt.

18分
RA
RaviBennett0737

Louis, yes. Each attempt has its own detail row. Caleb, the result identity is separate too; we will repeat the same result and supply a distinct conflicting one as separate cases.

1分
LU
LucyAbbott0045

Good. A conflict needs review, not silent deduplication.

16分
FE
FelixArcher0371

Add reopening between deliveries. The original result may be saved while the in-memory list of processed events has vanished. That's a different route back to the same inflated display.

5分
RA
RaviBennett0737

Offline repair now looks up the carried attempt identity. The original late result updates the earlier attempt only; its duplicate adds no row. A distinct conflicting result stays visible for review.

21分
LO
LouisArcher0398

What does a result with an unknown attempt do?

14分
RA
RaviBennett0737

Stays unmatched, with its identity and reason available in the support view. It doesn't attach itself to the current coupon.

12分
RA
RaviBennett0737

Reopen-between-deliveries also passes. We then deliver the current attempt's own result and it completes normally. Maintainer has the deterministic sequences and expected rows; this offline handler fix is finished.

17分
FE
FelixArcher0371

Thanks for retaining the conflicting-result case. That's the sort of inconvenient evidence a too-helpful deduplicator can quietly throw away.

17分

讨论已关闭

此讨论已连续六个月没有活动,现已关闭新回复。 最后活动: .