[tahoe-lafs-trac-stream] [tahoe-lafs] #1729: memory leak in allmydata.test.test_web
tahoe-lafs
trac at tahoe-lafs.org
Wed May 23 05:28:02 UTC 2012
#1729: memory leak in allmydata.test.test_web
------------------------+-------------------------------------
Reporter: zooko | Owner: Brian Warner <warner@…>
Type: defect | Status: closed
Priority: normal | Milestone: 1.10.0
Component: code | Version: 1.9.1
Resolution: fixed | Keywords: test memory
Launchpad Bug: |
------------------------+-------------------------------------
Comment (by Brian Warner <warner@…>):
In [changeset:5503/1.9.2]:
{{{
#!CommitTicketReference repository="1.9.2" revision="5503"
test_web.py: fix memory leak when run with --until-failure
The Fake*Node classes in test/common.py were accumulating share data in
a class-level dictionary, which persisted from one test run to the next.
As a result, running test_web.py over and over (with trial's
--until-failure feature) made this dictionary grow without bound,
eventually running out of memory.
This fix moves that dictionary into the FakeClient built fresh for each
test, so it doesn't build up. It does the same thing for "file_types",
which was much smaller but still lived at the class level.
Closes #1729
}}}
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1729#comment:6>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list