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

[BUG] ANRs Persist in Database Without Expiry #5009

Open
arunsudharsan opened this issue Sep 13, 2024 · 2 comments
Open

[BUG] ANRs Persist in Database Without Expiry #5009

arunsudharsan opened this issue Sep 13, 2024 · 2 comments

Comments

@arunsudharsan
Copy link

arunsudharsan commented Sep 13, 2024

Describe the bug

ANR (Application Not Responding) reports are stored in the database, and while the most recent one is sent to the backend and removed, older ANRs that exist within the 3-hour window may remain in the database indefinitely. This could cause outdated ANRs to persist without proper cleanup, affecting app performance and database management.

How to Reproduce

  1. Trigger multiple ANRs within the app.
  2. The most recent ANR is sent to the backend and removed from the database.
  3. ANRs older than the most recent one remain stored.
  4. After 3 hours, observe that older ANRs are still in the database.

Expected behavior

The ANRs should either be cleared from the database after a set time window (3 hours in this case) or there should be a mechanism to regularly purge outdated ANRs to prevent them from persisting unnecessarily.
We can use DatabaseCleanupObserver

Environment

All app versions.
Copy link

Thank you for opening an Issue in our Repository.
The issue has been forwarded to the team and we'll follow up as soon as we have time to investigate.
As stated in our Contribution Guidelines, requests for feedback should be addressed via the Feedback section in the Android app.

@anikiki
Copy link
Contributor

anikiki commented Sep 13, 2024

Thanks for reporting this issue. We've added it to out backlog so we can investigate and address it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants