Object leak on reference flush
Bug #475148 reported by
Thomas Herve
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Данило Шеган | ||
Storm |
Fix Released
|
High
|
Thomas Herve |
Bug Description
In some circumstances, object infos attached to another object infos via a reference are leaked through the "changed" event, as the "flushed" event is not registered. Adding a hook for "flushed" seems to fix the problem, but I don't know exactly when this problem actually appears.
Related branches
lp://qastaging/~therve/storm/reference-changed-leak
- James Henstridge: Approve
- Jamu Kakar (community): Approve
-
Diff: 142 lines (+50/-10)2 files modifiedstorm/references.py (+15/-8)
tests/store/base.py (+35/-2)
lp://qastaging/~danilo/launchpad/bug-475148
- Henning Eggers (community): Approve (code)
-
Diff: 14 lines (+3/-1)1 file modifiedversions.cfg (+3/-1)
Changed in storm: | |
assignee: | nobody → Thomas Herve (therve) |
summary: |
- ObjectInfo leak on reference flush + Object leak on reference flush |
Changed in rosetta: | |
assignee: | nobody → Данило Шеган (danilo) |
status: | Triaged → In Progress |
Changed in storm: | |
status: | Fix Committed → Fix Released |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in rosetta: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Objects with foreign key references register for changed events. If you flush these objects and let them disappear from scope and all the caches, they are garbage collected but leave their ObjectInfo records still attached and subscribed to the change events.