Discussion:
[Erp5-dev] upgrade BusnessTemplate "a lot of open files"
Boris Kocherov
2009-12-15 22:19:53 UTC
Permalink
Hello,

The Error "a lot of opening files" appears during the bt updating. The nature
of this Error is the size of the dictionary which contains fileobjects. This
dictionary is created for copping the objects to TrashBin. My opinion is
1) during the object copping inside the same storage there is no sense to use
import/export.
2) if we use import/export so the connections should be different and each
connection should relate to it's storage.
3) what is the reason to return the dictionary of opened files if it's
possible to return the dictionary of subobjects' copies?

Temporary i've fixed the problem
https://www.raskon.org/hg/erp5/trunk-patched/.hg/patches/file/fa5db536d2a3/TrashBin_fix_too_many_open_files.patch

For the most suitable decision of the problem i need your opinion.

Best regards,
Boris Kocherov
Vincent Pelletier
2009-12-16 15:00:55 UTC
Permalink
Post by Boris Kocherov
The Error "a lot of opening files" appears during the bt updating.
Hi.

Could you reproduce that error in a unit test ? (changing ulimit to make it
fire with a "reasonable" dataset should be acceptable, as long as it doesn't
require root access nor taints on other tests)
I'm quite surprised (impressed ?) that we didn't get that error here yet (as I
know of).

Regards,
--
Vincent Pelletier
Loading...