Closed MikhailSuendukov closed 1 year ago
@MikhailSuendukov I've tested the changes and have 2 questions regarding the solution:
groupErrors
are not removed while cleaning process. If it is expected, than this solution will not fix the issue described here https://github.com/microsoft/appcenter-sdk-android/issues/1646. I think we should remove error logs as well, if removal of other logs didn't help. What do you think? cc @MatkovIvan
CHANGELOG.md
been updated?Description
When saving logs to the database, if the data size is too large to store them in the database, a separate file is created in which the contents of the log are stored. The problem is that when the database was full and the old record was deleted to create a new one, the separate log file associated with the deleted record was not deleted. Also, these files were not taken into account when calculating the amount of memory used. To solve the problem, the logic for deleting old records when the database is full was moved from the
DatabaseManager
class to theDatabasePersistence
class. Also, a mechanism was created to clean up unnecessary data for previous versions.Related PRs or issues
AB#94551