<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 12, 2016 at 10:17 AM, Niels de Vos <span dir="ltr">&lt;<a href="mailto:ndevos@redhat.com" target="_blank">ndevos@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-HOEnZb"><div class="gmail-h5">On Mon, Dec 12, 2016 at 09:52:04AM +0530, Krutika Dhananjay wrote:<br>
&gt; With this fix, the user does not need to worry about when to enable/disable<br>
&gt; the option -<br>
&gt; the CLI command itself performs the necessary checks before allowing the<br>
&gt; &quot;enable&quot; command to proceed.<br>
&gt; What are those checks?<br>
&gt; * Whether heal is already needed on the volume<br>
&gt; * Whether any of the replicas is down<br>
&gt; In both of the cases, the command will be failed since AFR will be<br>
&gt; switching from creating heal indices (markers<br>
&gt; for files that need heal) under .glusterfs/indices/xattrop to creating them<br>
&gt; under .glusterfs/indices/entry-<wbr>changes.<br>
&gt; The moment this switch happens, self-heal-daemon will cease to crawl the<br>
&gt; entire directory if a directory needs heal<br>
&gt; and instead looks for exact names under a directory that need heal under<br>
&gt; .glusterfs/indices/entry-<wbr>changes. This<br>
&gt; might cause self-heal to miss healing some entries (because before the<br>
&gt; switch directories already needing heal won&#39;t<br>
&gt; have any indices under .glusterfs/indices/entry-<wbr>changes) and mistakenly<br>
&gt; unset the pending heal xattrs even though<br>
&gt; the individual replicas are not in sync.<br>
&gt;<br>
&gt; When should they enable the option? - When they want to use the feature ;)<br>
&gt; - which is useful<br>
&gt; for faster self-healing in use cases with large number of files under a<br>
&gt; single directory.<br>
&gt; For example, it is useful in VM use cases with smaller shard sizes, given<br>
&gt; that all shards are created<br>
&gt; under a single directory &quot;.shard&quot;. When a shard is created while a replica<br>
&gt; was down, once it is back up,<br>
&gt; self-heal due to its maintaining granular indices will know exactly which<br>
&gt; shard to recreate on the sync as<br>
&gt; opposed to crawling the entire .shard directory to find out the same<br>
&gt; information.<br>
&gt;<br>
&gt; When should they disable the option? - When they don&#39;t like the feature or<br>
&gt; if/when a bug is found in it,<br>
<br>
</div></div>Thanks for the details!<br>
<span class="gmail-"><br>
&gt; ... speaking of which, can we wait till <a href="http://review.gluster.org/#/c/16075/" rel="noreferrer" target="_blank">http://review.gluster.org/#/c/<wbr>16075/</a><br>
&gt; is also merged into 3.8 before making<br>
&gt; the release? Although the bug is in AFR core, the likelihood of hitting the<br>
&gt; bug is more with granular entry heal<br>
&gt; than without it. And I know of at least 3 users who are using the feature<br>
&gt; already on their production system.<br>
&gt; Otherwise we might have to wait one more month for the fix to be taken in,<br>
&gt; which is quite late IMO.<br>
<br>
</span>I do not see a cloned bug for 3.8.7 yet? Could you clone the bug for<br>
mainline and add &quot;glusterfs-3.8.7&quot; in the blocks field of the new BZ?<br></blockquote><div><br></div><div>Thank you! Here it is - <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1403646">https://bugzilla.redhat.com/show_bug.cgi?id=1403646</a><br><br></div><div>-Krutika<br><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Thanks,<br>
Niels<br>
<div class="gmail-HOEnZb"><div class="gmail-h5"><br>
&gt;<br>
&gt; -Krutika<br>
&gt;<br>
&gt; On Sun, Dec 11, 2016 at 10:23 PM, Niels de Vos &lt;<a href="mailto:ndevos@redhat.com">ndevos@redhat.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Could you please pass me a few lines that are understandable for users<br>
&gt; &gt; so that they know when/if they should enable/disable the new<br>
&gt; &gt; granular-entry-heal option?<br>
&gt; &gt;<br>
&gt; &gt; The bug does not explain a lot, and the commit message is not very user<br>
&gt; &gt; friendly:<br>
&gt; &gt;   <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1398501#c4" rel="noreferrer" target="_blank">https://bugzilla.redhat.com/<wbr>show_bug.cgi?id=1398501#c4</a><br>
&gt; &gt;<br>
&gt; &gt; It helps to know what kind of errors/warnings are produced, and what the<br>
&gt; &gt; recommended action is.<br>
&gt; &gt;<br>
&gt; &gt; I&#39;ll wait with pushing the release-notes for 3.8.7 until I have more<br>
&gt; &gt; details. This obviously blocks the release as well.<br>
&gt; &gt;<br>
&gt; &gt; Thanks,<br>
&gt; &gt; Niels<br>
&gt; &gt;<br>
</div></div></blockquote></div><br></div></div>