'Too many open files' when commiting rename thousands of files on svn

Bug #489151 reported by Hendrik van Antwerpen
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
Undecided
Unassigned
Bazaar Subversion Plugin
Invalid
Low
Unassigned
subversion
Invalid
Undecided
Unassigned
subvertpy
Fix Released
Low
Jelmer Vernooij

Bug Description

Description:
1. A subversion repository with a branch we want to work on.
2. Do bzr checkout of the branch.
3. Rename a directory containing several thousand files.
4. Commit.

Result:
Bazaar gives an error: INFO: aborting commit write group: OSError(24, 'open: Too many open files')

Expected result:
The commit succeeds.

Software versions:
bzr 2.0.2-1~bazaar1~karmic (bzr stable PPA)
bzr-svn 1.0.0-1~bazaar2~karmic (bzr stable PPA)
subversion 1.5.1 (r32289)

Revision history for this message
Hendrik van Antwerpen (hendrik-van-antwerpen) wrote :
Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 489151] [NEW] 'Too many open files' when commiting rename thousands of files on svn

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hendrik van Antwerpen wrote:
> Public bug reported:
>
> Description:
> 1. A subversion repository with a branch we want to work on.
> 2. Do bzr checkout of the branch.
> 3. Rename a directory containing several thousand files.
> 4. Commit.
>
> Result:
> Bazaar gives an error: INFO: aborting commit write group: OSError(24, 'open: Too many open files')
>
> Expected result:
> The commit succeeds.
>
> Software versions:
> bzr 2.0.2-1~bazaar1~karmic (bzr stable PPA)
> bzr-svn 1.0.0-1~bazaar2~karmic (bzr stable PPA)
> subversion 1.5.1 (r32289)
>
> ** Affects: bzr
> Importance: Undecided
> Status: New
>

  affects bzr-svn

I'm pretty sure this is something in how bzr-svn is interacting with
svn, and not bzr itself. Mostly because you can rename a dir in bzr and
commit and not have this problem.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksTL/oACgkQJdeBCYSNAAOPwgCfdheCgSALENYrlGX/k1j/4Yt7
3D8An1YVMYvIVWBXKLhi4xoeOCjD1zt2
=L+sh
-----END PGP SIGNATURE-----

Revision history for this message
Robert Collins (lifeless) wrote :

John, 'affects' adds a new task, it doesn't move the existing task - please use the webui to move things between bzr and bzr-svn.

Changed in bzr:
status: New → Invalid
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

What version of subvertpy are you using?

I can't reproduce this problem renaming a parent directory with 4k files in it.

Changed in bzr-svn:
status: New → Incomplete
Revision history for this message
Trent Lillehaugen (tllilleh) wrote :

I had a similar problem and it was discussed here:

http://stackoverflow.com/questions/2089353/how-do-i-resolve-a-too-many-open-files-error-in-bazaar

I was able to work-around the problem for now by running 'ulimit -n 10240' (I am using Mac OS X) before running 'bzr commit'. This allows python to have more files open. However, I don't know why all the files need to be open by bazaar, this seems like a bug.

Jelmer Vernooij (jelmer)
Changed in bzr-svn:
status: Incomplete → Triaged
importance: Undecided → Low
Jelmer Vernooij (jelmer)
Changed in subvertpy:
status: New → Fix Released
importance: Undecided → Low
Changed in subversion:
status: New → Invalid
Changed in bzr-svn:
status: Triaged → Invalid
Changed in subvertpy:
assignee: nobody → Jelmer Vernooij (jelmer)
Revision history for this message
Yonggang Luo (luoyonggang) wrote :

That's right, it's fixed, at least at subvertpy 0.8.8, subversion swig binding still got this problem:)
Thanks for the work.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.