Re: [Spacewalk-list] Spacewalk 2.6 Debian repo sync file handle leaking

2017-10-31 Thread Jay McCanta
Crap. This is embarrassing. Ignore this patch. It doesn't work and wasn’t meant to be posted. Got ahead of myself and clicked 'ok' to send, when my laptop was rebooting. Egg on face. Since it's Halloween, let's call it my costume. Jay -Original Message- From: Jay McCanta Sent: T

Re: [Spacewalk-list] Spacewalk 2.6 Debian repo sync file handle leaking

2017-10-31 Thread Robert Paschedag
Am 31. Oktober 2017 19:49:11 MEZ schrieb Jay McCanta : >I think I found the issue. Here's the patch I applied to get >spacewalk-repo-sync working. It closes the files opened when they are >no longer used. This prevents the file-handle leakage. > >diff -ruN spacewalk.orig/common/rhn_deb.py spacew

Re: [Spacewalk-list] Spacewalk 2.6 Debian repo sync file handle leaking

2017-10-31 Thread Jay McCanta
I think I found the issue. Here's the patch I applied to get spacewalk-repo-sync working. It closes the files opened when they are no longer used. This prevents the file-handle leakage. diff -ruN spacewalk.orig/common/rhn_deb.py spacewalk/common/rhn_deb.py --- spacewalk.orig/common/rhn_deb.py

Re: [Spacewalk-list] Spacewalk 2.6 Debian repo sync file handle leaking

2017-10-31 Thread Robert Paschedag
Am 31. Oktober 2017 00:17:56 MEZ schrieb Jay McCanta : >I am running spacewalk 2.6 on CentOS7 trying to an sync Ubuntu >repository. I have discovered that somewhere in >/usr/bin/spacewalk-sync-repo file handles are leaked. It seems to leak >2 handles for every file it needs to import. At some po