Bug 1605237 - [geo-rep]: mkdir of a previous symlink is syncing as a symlink instead of a directory
Summary: [geo-rep]: mkdir of a previous symlink is syncing as a symlink instead of a d...
Keywords:
Status: CLOSED DUPLICATE of bug 1600923
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: geo-replication
Version: rhgs-3.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Kotresh HR
QA Contact: Rahul Hinduja
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-20 14:02 UTC by Rochelle
Modified: 2018-07-23 05:01 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-23 05:01:36 UTC
Embargoed:


Attachments (Terms of Use)

Description Rochelle 2018-07-20 14:02:33 UTC
Description of problem:
=======================

While trying to write the following I/O pattern on the master mount
    
      1. touch file1
      2. ln -s "./file1" sym_400
      3. mv sym_400 renamed_sym_400
      4. mkdir sym_400

Master:
------
[root@dhcp42-41 master]# ls -l
total 4
-rw-r--r--. 1 root root    0 Jul 20 09:46 file1
lrwxrwxrwx. 1 root root    7 Jul 20 09:47 renamed_sym_400 -> ./file1
drwxr-xr-x. 2 root root 4096 Jul 20 09:47 sym_400


Slave:
------
[root@dhcp42-41 slave]# ls -l
total 0
-rw-r--r--. 1 root root 0 Jul 20 09:46 file1
lrwxrwxrwx. 1 root root 7 Jul 20 09:47 renamed_sym_400 -> ./file1
lrwxrwxrwx. 1 root root 7 Jul 20 09:47 sym_400 -> ./file1


Version-Release number of selected component (if applicable):
=============================================================
[root@dhcp42-18 ~]# rpm -qa | grep gluster
glusterfs-cli-3.12.2-14.el7rhgs.x86_64
python2-gluster-3.12.2-14.el7rhgs.x86_64
gluster-nagios-common-0.2.4-1.el7rhgs.noarch
glusterfs-libs-3.12.2-14.el7rhgs.x86_64
glusterfs-api-3.12.2-14.el7rhgs.x86_64
glusterfs-events-3.12.2-14.el7rhgs.x86_64
libvirt-daemon-driver-storage-gluster-3.9.0-14.el7_5.6.x86_64
glusterfs-3.12.2-14.el7rhgs.x86_64
glusterfs-fuse-3.12.2-14.el7rhgs.x86_64
glusterfs-geo-replication-3.12.2-14.el7rhgs.x86_64
glusterfs-client-xlators-3.12.2-14.el7rhgs.x86_64
glusterfs-rdma-3.12.2-14.el7rhgs.x86_64
gluster-nagios-addons-0.2.10-2.el7rhgs.x86_64
vdsm-gluster-4.19.43-2.3.el7rhgs.noarch
glusterfs-server-3.12.2-14.el7rhgs.x86_64


How reproducible:
=================
1/1

Steps to Reproduce:
1.Create and start a geo-rep session
2.Start the following I/O on the master mount:
a. touch file1
b. ln -s "./file1" sym_400
c. mv sym_400 renamed_sym_400
d. mkdir sym_400

Actual results:
===============
sym_400 was synced as symlink to the slave

Expected results:
=================
sym_400 should be synced as a directory


Additional info:


Note You need to log in before you can comment on or make changes to this bug.