diff options
author | 2024-12-05 07:10:52 +0000 | |
---|---|---|
committer | 2024-12-06 01:03:54 +0000 | |
commit | 9b2f7b6bd93a3bd13048b3e1133d4770657ed342 (patch) | |
tree | e9428cbada2dbc62cd2a5c98dbdbbbdfabed4141 /api/api.go | |
parent | 055e721b166b62718accf076f08f844fe333dc77 (diff) |
Fixes multiple activity snapshots can stay in cache.
1. Fix snaphsot isn't remove from cache because there didn't search
the activity outside of transition. It's a regression from ag/23898517
2. Skip record activity snapshot if the persist queue is too deep.
The StoreWriteQueueItem will hold a snapshot reference and waiting
to write on disk in perisist queue, skip record the snapshot if there
already have too many store items, since those will be purge anyway.
Bug: 382014256
Flag: EXEMPT bugfix
Test: atest ActivitySnapshotControllerTests
Test: Launch activity continuously like stress test, monitor the
activity snapshot won't increase repidly within a short of time, and
there should always only one snapshot left in activity snapshot cache.
Change-Id: I65b245713682bc7796eb132050bc5bcebb0972dd
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions