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">simon@s29.com.au</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all<br>
<br>
It seems Mercurial doesn&#39;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&#39;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">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>