Android icon indicating copy to clipboard operation
Android copied to clipboard

[Bug] ANRs Persist in Database Without Expiry

Open arunsudharsan opened this issue 1 year ago • 2 comments

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.

arunsudharsan avatar Sep 13 '24 14:09 arunsudharsan

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.

github-actions[bot] avatar Sep 13 '24 14:09 github-actions[bot]

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

anikiki avatar Sep 13 '24 14:09 anikiki