[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gluster-devel] close() blocks until flush-behind finishes

From: Raghavendra G
Subject: Re: [Gluster-devel] close() blocks until flush-behind finishes
Date: Thu, 15 Sep 2011 10:53:35 +0530

Hi Paul,

The option flush-behind makes only the flush call as background. However it waits for all the writes to complete, so that it can return the application errors (if any) happened while syncing them to server. The mail thread you gave for reference [2] also contains discussion about concerns regarding flush-behind not waiting till write-syncs are complete and related explanation.


On Tue, Sep 13, 2011 at 11:59 PM, Paul van Tilburg <address@hidden> wrote:
Hi all,

I have a glusterfs test setup of two servers, each with a brick, that is
replicated.  Between the two servers there is a bandwidth limit and I
would like the flush-behind option to handle getting the data to the
other side asynchronously.  I am using Debian Squeeze with glusterfs
3.2.3-1.  Volume setup:

 gluster> volume info

 Volume Name: vol1
 Type: Replicate
 Status: Started
 Number of Bricks: 2
 Transport-type: tcp
 Brick1: glusterserver.home:/tmp/rep
 Brick2: glusterclient.home:/tmp/rep
 Options Reconfigured:
 performance.write-behind-window-size: 32MB
 performance.flush-behind: on

However, it seems that when I create a file of 40MB with dd on
glusterclient.home, the close() system call blocks until everything has
fully reached glusterserver.home.  This problem has been brought up
before on the users list[1].  I also recall a discussion, back when
flush-behind was default off, that making close non-blocking is
considered to be safe[2].

It seem like I have hit a bug here and would thus like to file a
report.  Unless I missed something in the configuration/documentation?




PhD Student @ Eindhoven                     | email: address@hidden
University of Technology, The Netherlands   | JID: address@hidden
>>> Using the Power of Debian GNU/Linux <<< | GnuPG key ID: 0x50064181

Gluster-devel mailing list

Raghavendra G

reply via email to

[Prev in Thread] Current Thread [Next in Thread]