<div dir="ltr">Hi,All:<div> <br><div class="gmail_drive_chip" style="width:396px;height:18px;max-height:18px;background-color:#f5f5f5;padding:5px;color:#222;font-family:arial;font-style:normal;font-weight:bold;font-size:13px;border:1px solid #ddd">
<a href="https://docs.google.com/file/d/0B5ZuJ9m5TCRDSElZNFM3ZVlGSU0/edit?usp=drive_web" target="_blank" style="display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;padding:1px 0px;border:none;width:100%"><img style="vertical-align: bottom; border: none;" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"> <span dir="ltr" style="color:#15c;text-decoration:none;vertical-align:bottom">core信息.jpg</span></a></div>
<br><div class="gmail_drive_chip" style="width:396px;height:18px;max-height:18px;background-color:#f5f5f5;padding:5px;color:#222;font-family:arial;font-style:normal;font-weight:bold;font-size:13px;border:1px solid #ddd">
<a href="https://docs.google.com/file/d/0B5ZuJ9m5TCRDQ3FGdmd4QXpHUlk/edit?usp=drive_web" target="_blank" style="display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;padding:1px 0px;border:none;width:100%"><img style="vertical-align: bottom; border: none;" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"> <span dir="ltr" style="color:#15c;text-decoration:none;vertical-align:bottom">log信息.jpg</span></a></div>
These two pictures are core info and logs,In my opinion,One client do lookup while some brick have this file but some brick no this file,then the stripe_lookup_cbk return local->op_ret=0, then use this stale file handle to truncate,so have a crash. </div>
<div style> In this condition,I return local->op_ret = -1,local->op_errno = ENOENT in stripe_lookup_cbk, instead of creash.</div><div style> How should I solve it properly?</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sun, Jul 7, 2013 at 9:58 PM, deming jia <span dir="ltr"><<a href="mailto:jiademing.dd@gmail.com" target="_blank">jiademing.dd@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi,All.</span><div style="font-family:arial,sans-serif;font-size:13px"> I do a test in glusterfs-3.3.1,but have a crash,seems return an invalid indoe or invalid inode-table in stripe_lookup_cbk.</div>
<div style="font-family:arial,sans-serif;font-size:13px"> The test likes this:</div><div style="font-family:arial,sans-serif;font-size:13px"> 1. craate a dht+stripe(3) volumes.</div><div style="font-family:arial,sans-serif;font-size:13px">
2.mount in three different machines</div><div style="font-family:arial,sans-serif;font-size:13px"> 3.mkdir testdir in mount point</div><div style="font-family:arial,sans-serif;font-size:13px"> 4.every machine start a postmark to craate a lot of little files named 1,2,3..... in testdir</div>
<div style="font-family:arial,sans-serif;font-size:13px"> </div><div style="font-family:arial,sans-serif;font-size:13px"> In short,three postmark process in three different machine create a lot of little files named 1,2,3,4..... in a same dir (testdir)</div>
<div style="font-family:arial,sans-serif;font-size:13px">use a dht+stripe volumes, this crash can be reproduce.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
<span style="font-weight:bold;white-space:nowrap">I used xfs as the underlying filesystem.</span></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="font-weight:bold;white-space:nowrap"> </span>I used three postmark procresses on one client or used three postmark processes on three clients of different mathines to fopen fwrite files named (client1:a1, a2, a3, a4.... </div>
<div style="font-family:arial,sans-serif;font-size:13px">client2:b1, b2, b3, b4.... client3:c1, c2, c3, c4...) in the same dir , They all didn't produce a crash.</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="font-weight:bold;white-space:nowrap"> Does creating a same file in the same dir by different client of different matchines at the same time have any problme?</span></div>
<div style="font-family:arial,sans-serif;font-size:13px"><span style="font-weight:bold;white-space:nowrap"><br></span></div><div style="font-family:arial,sans-serif;font-size:13px"> In additionally, <a href="http://supercolony.gluster.org/pipermail/gluster-devel/2011-August/007441.html" target="_blank">http://supercolony.gluster.org/pipermail/gluster-devel/2011-August/007441.html</a> , it's decription is similar to my </div>
<div style="font-family:arial,sans-serif;font-size:13px">crash. How can I solve it? Look forward to your reply,Thanks.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
I have little English,sorry!</div><div style="font-family:arial,sans-serif;font-size:13px"> </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"> Yours Jia Deming</div>
<div style="font-family:arial,sans-serif;font-size:13px"> 2013-07-07</div>
</div>
</blockquote></div><br></div>