Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Person creation failure prolonged by cache #10463

Closed
tiina303 opened this issue Jun 23, 2022 · 1 comment
Closed

Person creation failure prolonged by cache #10463

tiina303 opened this issue Jun 23, 2022 · 1 comment

Comments

@tiina303
Copy link
Contributor

tiina303 commented Jun 23, 2022

Metabase query:

select error_timestamp, error, count(*) as cnt from events_dead_letter_queue where error_timestamp > toDateTime('2022-06-20 00:00:00', 'UTC') and error_timestamp < toDateTime('2022-06-23 00:00:00', 'UTC') and error LIKE '%1818c218a10c6-050c126d844092-4c356833-59b90-1818c218a1217%' group by error_timestamp, error order by cnt desc

We can see that events from June 22, 2022, 3:56 PM until June 22, 2022, 4:32 PM go to DLQ for this person.

What happened here is we cached the person here, which updates the cache so later we know it's not a new person,
but due to the Postgres being in read-only mode around 15:56 UTC the creation failed.

The cache duration is 4h, but likely we saw error only 30min due to the user logging off/ending the session.

If we didn't cache it, then as soon as the db was allowing writes again we'd be creating the person and getting the rest of the info for their session.

Related issue: #10396

@tiina303
Copy link
Contributor Author

tiina303 commented Nov 6, 2023

this has been resolved

@tiina303 tiina303 closed this as completed Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant