<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Simon,<br>
<br>
This issue is a variant of Bug 801 (<a href="http://bugs.gluster.com/show_bug.cgi?id=801%29." target="_blank">http://bugs.gluster.com/show_bug.cgi?id=801).</a> Mercurial is accessing file /uwsgi/.hg/store/00changelog.i.a using two fds. Based on default policy
 of glusterfs whether to use direct-io-mode or buffered-mode, one of the fd is accessing the file in direct-io-mode and other in buffered mode. As mentioned in comment #27 of the bug, this has some issues. As a work around, you can use --direct-io-mode option
 of glusterfs to override the default behaviour (It does not make difference for this problem whether you set it on or off). Please let us know, whether this fixes your issue.<br>
<br>
regards,<br>
Raghavendra.<br>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF833531"><font color="#000000" face="Tahoma" size="2"><b>From:</b> gluster-users-bounces@gluster.org [gluster-users-bounces@gluster.org] on behalf of Anand Avati [anand.avati@gmail.com]<br>
<b>Sent:</b> Thursday, June 09, 2011 8:05 PM<br>
<b>To:</b> Simon Litchfield<br>
<b>Cc:</b> gluster-users@gluster.org<br>
<b>Subject:</b> Re: [Gluster-users] Write-behind breaks Mercurial<br>
</font><br>
</div>
<div></div>
<div>This is interesting. write-behind guarantees ordering of read/write such that you always read written data. Do you happen to know if Mercurial reads and writes from different file descriptors on the same file? Can you give us logs and configuration details
 of your setup?
<div><br>
</div>
<div>Avati<br>
<br>
<div class="gmail_quote">On Mon, Jun 6, 2011 at 10:41 PM, Simon Litchfield <span dir="ltr">
&lt;<a href="mailto:simon@s29.com.au" target="_blank">simon@s29.com.au</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all<br>
<br>
It seems Mercurial doesn't work with &quot;write behind&quot; on. Any ideas?<br>
<br>
With write-behind --<br>
<br>
root@dj1:~/mnt# gluster volume set conf performance.write-behind on<br>
Set volume successful<br>
root@dj1:~/mnt# hg clone <a href="http://projects.unbit.it/hg/uwsgi" target="_blank">
http://projects.unbit.it/hg/uwsgi</a><br>
destination directory: uwsgi<br>
requesting all changes<br>
adding changesets<br>
transaction abort!<br>
rollback completed<br>
abort: integrity check failed on 00changelog.i:24!<br>
<br>
Without write-behind --<br>
<br>
root@dj1:~/mnt# gluster volume set conf performance.write-behind off<br>
Set volume successful<br>
root@dj1:~/mnt# hg clone <a href="http://projects.unbit.it/hg/uwsgi" target="_blank">
http://projects.unbit.it/hg/uwsgi</a><br>
destination directory: uwsgi<br>
requesting all changes<br>
adding changesets<br>
adding manifests<br>
adding file changes<br>
added 1169 changesets with 3532 changes to 332 files<br>
updating to branch default<br>
278 files updated, 0 files merged, 0 files removed, 0 files unresolved<br>
<br>
Shouldn't the write behind cache be reading unwritten data before it hits the disk?<br>
<br>
Cheers<br>
Simon<br>
<br>
_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
<a href="http://gluster.org/cgi-bin/mailman/listinfo/gluster-users" target="_blank">http://gluster.org/cgi-bin/mailman/listinfo/gluster-users</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>