Many old tmp files in /srv/node/xxx/objects/
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Expired
|
Low
|
Unassigned |
Bug Description
Hi,
I saw to many tmp files in patitions folders:
for example:
root@str-05 /srv/node/sdv1 # find /srv/node/sdh1 -name '*.tmp'
/srv/node/
/srv/node/
/srv/node/
/srv/node/
/srv/node/
/srv/node/
/srv/node/
/srv/node/
/srv/node/
/srv/node/
/srv/node/
/srv/node/
/srv/node/
^C
root@str-05 /srv/node/sdv1 # ls -la /srv/node/
-rw------- 1 swift swift 0 Feb 28 10:25 /srv/node/
But it observed not on all drives. I think this drives were once overflowing (100% usage). I found one drive without free space and run find tmp files here. Drive have very many empty tmp files...
Hrmm... I was thinking that these are tmp files created during object upload - where normally it's the object-replicators job to "unlink_ older_than( tmp_path, time.time() - self.reclaim_ age)".. .
But those paths don't look right to me? I think those are actually rsync tmp files (?!)
I don't think I have any idea how/when those get cleaned up.
But I do know that rsync breaks in crappy ways when your disks get full. Actually lots of things seem to get broken in crappy ways when swift's disks get full.