#2302 Pygit2 has no way to clean up other than waiting for GC
Closed: Fixed 6 years ago Opened 6 years ago by puiterwijk.

Pygit2 has no way to close repositories.
The only way to get git_repository_free called (which then closes open file handles to pack files) is to get the pygit2 Repository instance cleaned by the garbage collector, which in Pagure's case does not run very often.
As such, we have hit an error about too many open files regularly.

This issue serves as a pointer target for calls to gc.collect() to deal with this cleanup.


@puiterwijk I believe this is fixed now, no?

Metadata Update from @pingou:
- Issue tagged with: bug

6 years ago

So from a discussion on IRC, the actual bug in pygit2 isn't fixed but we've added a work-around in pagure.

So we can close this ticket as from a pagure POV this is solved, not in the ideal way granted.

Metadata Update from @pingou:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

6 years ago

Login to comment on this ticket.

Metadata