<div>I&#39;ve +1ed it now.</div><div><br><div class="gmail_quote"><div>On Thu, 26 Jan 2017 at 15:05, Xavier Hernandez &lt;<a href="mailto:xhernandez@datalab.es">xhernandez@datalab.es</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Atin,<br class="gmail_msg">
<br class="gmail_msg">
I don&#39;t clearly see what&#39;s the problem. Even if the truncate causes a<br class="gmail_msg">
dirty flag to be set, eventually it should be removed before the<br class="gmail_msg">
$HEAL_TIMEOUT value.<br class="gmail_msg">
<br class="gmail_msg">
For now I&#39;ve marked the test as bad.<br class="gmail_msg">
<br class="gmail_msg">
Patch is: <a href="https://review.gluster.org/16470" rel="noreferrer" class="gmail_msg" target="_blank">https://review.gluster.org/16470</a><br class="gmail_msg">
<br class="gmail_msg">
Xavi<br class="gmail_msg">
<br class="gmail_msg">
On 25/01/17 17:24, Atin Mukherjee wrote:<br class="gmail_msg">
&gt; Can we please address this as early as possible, my patch has hit this<br class="gmail_msg">
&gt; failure 3 out of 4 recheck attempts now. I&#39;m guessing some recent<br class="gmail_msg">
&gt; changes has caused it.<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt; On Wed, 25 Jan 2017 at 12:10, Ashish Pandey &lt;<a href="mailto:aspandey@redhat.com" class="gmail_msg" target="_blank">aspandey@redhat.com</a><br class="gmail_msg">
&gt; &lt;mailto:<a href="mailto:aspandey@redhat.com" class="gmail_msg" target="_blank">aspandey@redhat.com</a>&gt;&gt; wrote:<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;     Pranith,<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;     In this test tests/basic/ec/ec-background-heals.t, I think the line<br class="gmail_msg">
&gt;     number 86 actually creating a heal entry instead of<br class="gmail_msg">
&gt;     helping data heal quickly. What if all the data was already healed<br class="gmail_msg">
&gt;     at that moment, truncate came and in preop set the dirty flag and at the<br class="gmail_msg">
&gt;     end, as part of the heal, dirty flag was unset on previous good<br class="gmail_msg">
&gt;     bricks only and the brick which acted as heal-sink still has dirty<br class="gmail_msg">
&gt;     marked by truncate.<br class="gmail_msg">
&gt;     That is why we are only seeing &quot;1&quot; as get_pending_heal_count. If a<br class="gmail_msg">
&gt;     file was actually not healed it should be &quot;2&quot;.<br class="gmail_msg">
&gt;     If heal on this file completes and unset of dirty flag happens<br class="gmail_msg">
&gt;     before truncate everything will be fine.<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;     I think we can wait for file to be heal without truncate?<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;      71 #Test that disabling background-heals still drains the queue<br class="gmail_msg">
&gt;      72 TEST $CLI volume set $V0 disperse.background-heals 1<br class="gmail_msg">
&gt;      73 TEST touch $M0/{a,b,c,d}<br class="gmail_msg">
&gt;      74 TEST kill_brick $V0 $H0 $B0/${V0}2<br class="gmail_msg">
&gt;      75 EXPECT_WITHIN $CONFIG_UPDATE_TIMEOUT &quot;1&quot; mount_get_option_value<br class="gmail_msg">
&gt;     $M0 $V0-disperse-0 background-heals<br class="gmail_msg">
&gt;      76 EXPECT_WITHIN $CONFIG_UPDATE_TIMEOUT &quot;200&quot;<br class="gmail_msg">
&gt;     mount_get_option_value $M0 $V0-disperse-0 heal-wait-qlength<br class="gmail_msg">
&gt;      77 TEST truncate -s 1GB $M0/a<br class="gmail_msg">
&gt;      78 echo abc &gt; $M0/b<br class="gmail_msg">
&gt;      79 echo abc &gt; $M0/c<br class="gmail_msg">
&gt;      80 echo abc &gt; $M0/d<br class="gmail_msg">
&gt;      81 TEST $CLI volume start $V0 force<br class="gmail_msg">
&gt;      82 EXPECT_WITHIN $CHILD_UP_TIMEOUT &quot;3&quot; ec_child_up_count $V0 0<br class="gmail_msg">
&gt;      83 TEST chown root:root $M0/{a,b,c,d}<br class="gmail_msg">
&gt;      84 TEST $CLI volume set $V0 disperse.background-heals 0<br class="gmail_msg">
&gt;      85 EXPECT_NOT &quot;0&quot; mount_get_option_value $M0 $V0-disperse-0<br class="gmail_msg">
&gt;     heal-waiters<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;      86 TEST truncate -s 0 $M0/a # This completes the heal fast ;-) &lt;&lt;&lt;&lt;&lt;&lt;&lt;<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;      87 EXPECT_WITHIN $HEAL_TIMEOUT &quot;^0$&quot; get_pending_heal_count $V0<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;     ----<br class="gmail_msg">
&gt;     Ashish<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;     ------------------------------------------------------------------------<br class="gmail_msg">
&gt;     *From: *&quot;Raghavendra Gowdappa&quot; &lt;<a href="mailto:rgowdapp@redhat.com" class="gmail_msg" target="_blank">rgowdapp@redhat.com</a><br class="gmail_msg">
&gt;     &lt;mailto:<a href="mailto:rgowdapp@redhat.com" class="gmail_msg" target="_blank">rgowdapp@redhat.com</a>&gt;&gt;<br class="gmail_msg">
&gt;     *To: *&quot;Nithya Balachandran&quot; &lt;<a href="mailto:nbalacha@redhat.com" class="gmail_msg" target="_blank">nbalacha@redhat.com</a><br class="gmail_msg">
&gt;     &lt;mailto:<a href="mailto:nbalacha@redhat.com" class="gmail_msg" target="_blank">nbalacha@redhat.com</a>&gt;&gt;<br class="gmail_msg">
&gt;     *Cc: *&quot;Gluster Devel&quot; &lt;<a href="mailto:gluster-devel@gluster.org" class="gmail_msg" target="_blank">gluster-devel@gluster.org</a><br class="gmail_msg">
&gt;     &lt;mailto:<a href="mailto:gluster-devel@gluster.org" class="gmail_msg" target="_blank">gluster-devel@gluster.org</a>&gt;&gt;, &quot;Pranith Kumar Karampuri&quot;<br class="gmail_msg">
&gt;     &lt;<a href="mailto:pkarampu@redhat.com" class="gmail_msg" target="_blank">pkarampu@redhat.com</a> &lt;mailto:<a href="mailto:pkarampu@redhat.com" class="gmail_msg" target="_blank">pkarampu@redhat.com</a>&gt;&gt;, &quot;Ashish Pandey&quot;<br class="gmail_msg">
&gt;     &lt;<a href="mailto:aspandey@redhat.com" class="gmail_msg" target="_blank">aspandey@redhat.com</a> &lt;mailto:<a href="mailto:aspandey@redhat.com" class="gmail_msg" target="_blank">aspandey@redhat.com</a>&gt;&gt;<br class="gmail_msg">
&gt;     *Sent: *Wednesday, January 25, 2017 9:41:38 AM<br class="gmail_msg">
&gt;     *Subject: *Re: [Gluster-devel] Spurious regression<br class="gmail_msg">
&gt;     failure?        tests/basic/ec/ec-background-heals.t<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;     Found another failure on same test:<br class="gmail_msg">
&gt;     <a href="https://build.gluster.org/job/centos6-regression/2874/consoleFull" rel="noreferrer" class="gmail_msg" target="_blank">https://build.gluster.org/job/centos6-regression/2874/consoleFull</a><br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;     ----- Original Message -----<br class="gmail_msg">
&gt;     &gt; From: &quot;Nithya Balachandran&quot; &lt;<a href="mailto:nbalacha@redhat.com" class="gmail_msg" target="_blank">nbalacha@redhat.com</a><br class="gmail_msg">
&gt;     &lt;mailto:<a href="mailto:nbalacha@redhat.com" class="gmail_msg" target="_blank">nbalacha@redhat.com</a>&gt;&gt;<br class="gmail_msg">
&gt;     &gt; To: &quot;Gluster Devel&quot; &lt;<a href="mailto:gluster-devel@gluster.org" class="gmail_msg" target="_blank">gluster-devel@gluster.org</a><br class="gmail_msg">
&gt;     &lt;mailto:<a href="mailto:gluster-devel@gluster.org" class="gmail_msg" target="_blank">gluster-devel@gluster.org</a>&gt;&gt;, &quot;Pranith Kumar Karampuri&quot;<br class="gmail_msg">
&gt;     &lt;<a href="mailto:pkarampu@redhat.com" class="gmail_msg" target="_blank">pkarampu@redhat.com</a> &lt;mailto:<a href="mailto:pkarampu@redhat.com" class="gmail_msg" target="_blank">pkarampu@redhat.com</a>&gt;&gt;, &quot;Ashish Pandey&quot;<br class="gmail_msg">
&gt;     &gt; &lt;<a href="mailto:aspandey@redhat.com" class="gmail_msg" target="_blank">aspandey@redhat.com</a> &lt;mailto:<a href="mailto:aspandey@redhat.com" class="gmail_msg" target="_blank">aspandey@redhat.com</a>&gt;&gt;<br class="gmail_msg">
&gt;     &gt; Sent: Tuesday, January 24, 2017 9:16:31 AM<br class="gmail_msg">
&gt;     &gt; Subject: [Gluster-devel] Spurious regression<br class="gmail_msg">
&gt;     failure?        tests/basic/ec/ec-background-heals.t<br class="gmail_msg">
&gt;     &gt;<br class="gmail_msg">
&gt;     &gt; Hi,<br class="gmail_msg">
&gt;     &gt;<br class="gmail_msg">
&gt;     &gt;<br class="gmail_msg">
&gt;     &gt; Can you please take a look at<br class="gmail_msg">
&gt;     &gt; <a href="https://build.gluster.org/job/centos6-regression/2859/console" rel="noreferrer" class="gmail_msg" target="_blank">https://build.gluster.org/job/centos6-regression/2859/console</a> ?<br class="gmail_msg">
&gt;     &gt;<br class="gmail_msg">
&gt;     &gt; tests/basic/ec/ec-background-heals.t has failed.<br class="gmail_msg">
&gt;     &gt;<br class="gmail_msg">
&gt;     &gt; Thanks,<br class="gmail_msg">
&gt;     &gt; Nithya<br class="gmail_msg">
&gt;     &gt;<br class="gmail_msg">
&gt;     &gt; _______________________________________________<br class="gmail_msg">
&gt;     &gt; Gluster-devel mailing list<br class="gmail_msg">
&gt;     &gt; <a href="mailto:Gluster-devel@gluster.org" class="gmail_msg" target="_blank">Gluster-devel@gluster.org</a> &lt;mailto:<a href="mailto:Gluster-devel@gluster.org" class="gmail_msg" target="_blank">Gluster-devel@gluster.org</a>&gt;<br class="gmail_msg">
&gt;     &gt; <a href="http://lists.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.gluster.org/mailman/listinfo/gluster-devel</a><br class="gmail_msg">
&gt;     _______________________________________________<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;     Gluster-devel mailing list<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;     <a href="mailto:Gluster-devel@gluster.org" class="gmail_msg" target="_blank">Gluster-devel@gluster.org</a> &lt;mailto:<a href="mailto:Gluster-devel@gluster.org" class="gmail_msg" target="_blank">Gluster-devel@gluster.org</a>&gt;<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;     <a href="http://lists.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.gluster.org/mailman/listinfo/gluster-devel</a><br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt; --<br class="gmail_msg">
&gt; - Atin (atinm)<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt; _______________________________________________<br class="gmail_msg">
&gt; Gluster-devel mailing list<br class="gmail_msg">
&gt; <a href="mailto:Gluster-devel@gluster.org" class="gmail_msg" target="_blank">Gluster-devel@gluster.org</a><br class="gmail_msg">
&gt; <a href="http://lists.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.gluster.org/mailman/listinfo/gluster-devel</a><br class="gmail_msg">
&gt;<br class="gmail_msg">
<br class="gmail_msg">
</blockquote></div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature">- Atin (atinm)</div>