[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

when will file ./svn/tmp/svn-XXXXXX be created? and why?

From: Keva-Slient <356730059_at_qq.com>
Date: Thu, 21 Dec 2017 15:29:15 +0800

we use svn managing our config files.


in client side environment, check out repos in client side, processes could open the config file and read or write the config file. some of them could keep file handler for a long time.


now we get some problems: the config file will be moved to .svn/tmp directory and be deleted.


for example: online_assist process:
online_assist will open some config files in /wns/etc/config/ directory. /wns/etc/config/ is a repo.
use losf to see which files online_assist are opening.


#lsof |grep online_assist |grep .svn/tmp
704 /wns/sbin/online_assist /wns/etc/config/.svn/tmp/svn-ynboPV (deleted)
704 /wns/sbin/online_assist /wns/etc/config/.svn/tmp/svn-sTknMU (deleted)
704 /wns/sbin/online_assist /wns/etc/config/.svn/tmp/svn-39HEsA (deleted)


online_assist should open config files which are not in .svn/tmp directory.

in usual, online_assist should open config files like : /wns/etc/config/db/ap_data.db ...


#pidof online_assist
704

#ls -l /proc/704/fd/* -l |grep config |sort -k 10
lrwx------ 1 root root 64 Dec 20 08:22 /proc/704/fd/19 -> /wns/etc/config/.svn/tmp/svn-39HEsA (deleted)
lrwx------ 1 root root 64 Dec 20 08:22 /proc/704/fd/18 -> /wns/etc/config/.svn/tmp/svn-sTknMU (deleted)
lrwx------ 1 root root 64 Dec 20 08:22 /proc/704/fd/15 -> /wns/etc/config/.svn/tmp/svn-ynboPV (deleted)
lrwx------ 1 root root 64 Dec 20 08:22 /proc/704/fd/23 -> /wns/etc/config/db/china_province_city.db
lrwx------ 1 root root 64 Dec 20 08:22 /proc/704/fd/20 -> /wns/etc/config/db/phonelocation.db
lrwx------ 1 root root 64 Dec 20 08:22 /proc/704/fd/16 -> /wns/etc/config/wac/data/ouiol.db
lrwx------ 1 root root 64 Dec 20 08:22 /proc/704/fd/21 -> /wns/etc/config/wac/data/ouiol.db
lrwx------ 1 root root 64 Dec 20 08:22 /proc/704/fd/17 -> /wns/etc/config/wac/data/sta_login_stat.db
lrwx------ 1 root root 64 Dec 20 08:22 /proc/704/fd/22 -> /wns/etc/config/wac/data/wti.db




some files opened by online_assist in /wns/etc/config are correct, like /wns/etc/config/wac/data/ouiol.db. but some are moved to /wns/etc/config/.svn/tmp and deleted.


why is this ?


why would the file opend by process be moved to .svn/tmp
and
why would the file moved to .svn/tmp be deleted?




------------------
.........
 Vanity...My favourite sin.
     --<<The Devil's Advocate>>
Received on 2017-12-21 08:59:53 CET

This is an archived mail posted to the Subversion Users mailing list.