[Gluster-devel] rename race condition in 3.4.0qa3

Emmanuel Dreyfus manu at netbsd.org
Sun Jan 12 04:37:17 UTC 2014


I encountered this issue: a brick crashed (because of memory shortage), 
and it produced that on the client:

/gfs351/manu/usr/src/obj/tooldir.NetBSD-6.1.2-i386/bin/i486--netbsdelf-install -U -M /gfs351/manu/usr/src/obj/destdir.i386/METALOG -D /gfs351/manu/usr/src/obj/destdir.i386 -h sha256 -N /gfs351/manu/usr/src/etc -c  -r  -o root  -g wheel  -m 555   sensor_battery /gfs351/manu/usr/src/obj/destdir.i386/etc/powerd/scripts/sensor_battery
i486--netbsdelf-install: /gfs351/manu/usr/src/obj/destdir.i386/etc/powerd/scripts/sensor_battery.inst.04323a: rename: File exists

Of course it cannot be reproduced.  Client log says:

[2014-01-11 22:49:53.080186] W [client-rpc-fops.c:2356:client3_3_lk_cbk] 0-gfs351-client-0: remote operation failed: Socket is not connected
[2014-01-11 22:49:53.201846] W [client-rpc-fops.c:2619:client3_3_link_cbk] 0-gfs351-client-1: remote operation failed: File exists (/manu/usr/src/obj/destdir.i386/etc/powerd/scripts/sensor_battery.inst.04323a -> /manu/usr/src/obj/destdir.i386/etc/powerd/scripts/sensor_battery)
[2014-01-11 22:49:53.215302] W [fuse-bridge.c:1694:fuse_rename_cbk] 0-glusterfs-fuse: 64995986: /manu/usr/src/obj/destdir.i386/etc/powerd/scripts/sensor_battery.inst.04323a -> /manu/usr/src/obj/destdir.i386/etc/powerd/scripts/sensor_battery => -1 (File exists)



-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu at netbsd.org




More information about the Gluster-devel mailing list