I was just facing the same problem. The mailer.py
used to work just fine, with almost immediate commits, but after deploying a new authentication schema that incorporated a faulty automount entry, it started to slow down to minutes.
It all boiled down to the mailer.py testing for some libraries, as running it through strace revealed.
As part of the post-commit hook, that normally would run the mailer.py
, I inserted a strace just like:
# EXAMPLE OF DOING STRACE TO DEBUG/TROUBLESHOOT THIS:
/usr/bin/strace /usr/share/doc/subversion-1.6.11/tools/hook-scripts/mailer/mailer.py commit "$REPOS" "$REV" > /tmp/zzSTRACE-MAILER 2>&1
# (The original line is)
# /usr/share/doc/subversion-1.6.11/tools/hook-scripts/mailer/mailer.py commit "$REPOS" "$REV"
This showed the script looking for the os.py and os.pyc files under several locations (in my CentOS 6 system they are under /usr/lib64/python2.6).
One of the searched locations is /users which was in the automount map pointing to an unresponsive server. It thus hung until timing it out - then the script continued & the commit operation finished OK - only with that enormous delay.
Repairing the automount entry / fixing that server immediately solved the issue.
Hopefully this helps.