Commit 4db1307
authored
fix(traige signals): Fix rare fixability failure issue (#104438)
## PR Details
+ Issue: generate_issue_summary_only task fails ~1-2% of the time with
No issue summary found for group_id error from Seer's fixability
endpoint -
https://sentry.sentry.io/issues/7082675053/events/8d6139c6d386440ea729c788b06c3aee/?referrer=merged-item
+ Possible Root cause: Database read-after-write visibility issue
between Seer servers
- Summarize endpoint (on SEER_SUMMARIZATION_URL) commits summary to DB
and returns 200
- Fixability endpoint (on SEER_SCORING_URL) immediately queries DB but
doesn't see the committed row yet
- This happens because the two endpoints run on different servers, and
DB replication lag causes the fixability read to occur before the
summarize commit is visible
+ We see this in `generate_summary_and_run_automation` too -
https://sentry.sentry.io/issues/6792150415/?project=1&query=is%3Aunresolved%20%22generate_summary_and_run_automation%22&referrer=issue-stream.
If this works here I'll add it there too.
+ Fix: Add 3-second delay before retry so that when fixability fails due
to replication lag, the retry occurs after DB has synchronized1 parent 366f019 commit 4db1307
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments