[Bug 272434] du and disk operations (like mv,cp,shutil.move/rmtree,os.rename) combination issues
Date: Mon, 10 Jul 2023 12:16:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272434
--- Comment #6 from shamsher <meetshamsher@gmail.com> ---
Also just for info when replacing df from du then not seeing hang in any
folder.
Looks with df combination it's working fine but not with du combination.
$ cat du.py
import os
import time;
while 1:
os.system("du /") <<-- here replaced du with df
time.sleep(5)
note: dir1: subdir + file have been created inside /data/infra folder as below:
$ cat createfiles.py
import os
i = 0
import time
while i < 50:
j = 0
path = "/data/infra/dir1/dir" + str(i)
os.makedirs(path)
while j < 10:
path1 = "/data/infra/dir1/dir" + str(i) + "/file" + str(j)
# cmd = "touch " + path1
# os.system(cmd)
f = open(path1,"w")
f.write("Hit the issue")
j += 1
i+=1
Steps : 1- create dir : /data/infra
2- inside above folder execute "python createfiles.py"
3- run "python mode-move-delete.py >/dev/null & "
4- run "python du.py > /dev/null &"
Wait for sometime issues will get hit in one of the folder.
Sys config/resource- cpu:1, RAM:128M, Disk:250GB
--
You are receiving this mail because:
You are the assignee for the bug.