summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorRaghavendra G <rgowdapp@redhat.com>2018-03-13 16:39:44 +0530
committerShyamsundar Ranganathan <srangana@redhat.com>2018-03-13 13:01:49 +0000
commitfe52fc33d00eafe7d52ffff1b2dab846374f1d4a (patch)
tree71b6b54ca297f51b071bb93228fff05c8a9e38dd /xlators/cluster
parentc64fa1496517ba57e5a4dc4573ce5abf73ea03a0 (diff)
tests/bug-1110262.t: fix a race condition
This test does: 1. mount a volume 2. kill a brick in the volume 3. mkdir (/somedir) In my local tests and in [1], I see that mkdir in step 3 fails because there is no dht-layout on root directory. The reason I think is by the time first lookup on "/" hit dht, a brick was killed as per step 2. This means layout was not healed for "/" and since this is a new volume, no layout is present on it. Note that the first lookup done on "/" by fuse-bridge is not synchronized with parent process of daemonized glusterfs mount completing. IOW, by the time glusterfs cmd executed there is no guarantee that lookup on "/" is complete. So, if step 2 races ahead of fuse_first_lookup on "/", we end up with an invalid dht-layout on "/" resulting in failures. Doint an operation like ls makes sure that lookup on "/" is completed before we kill a brick Change-Id: Ie0c4e442c4c629fad6f7ae850437e3d63fe4bea9 Signed-off-by: Raghavendra G <rgowdapp@redhat.com> BUG: 1543279
Diffstat (limited to 'xlators/cluster')
0 files changed, 0 insertions, 0 deletions