<div dir="ltr"><div>Hi All,</div><div> </div><div>   As we know in glusterfs we have one known issue specific to preserve metadata consistency for directory in </div><div>   pure distributed environment.</div><div>   </div><div>Problem: </div><div>   </div><div>   After brick stop if application do any metadata operation(like permission,uid/gid change, xattr change) on directory and restart </div><div>   the brick, metadata is not consistent on stopped brick because dht is not able to heal it properly.We have tried to fix </div><div>   this problem from the patch <a href="https://review.gluster.org/#/c/15468/">https://review.gluster.org/#/c/15468/</a> and we would like to highlight the change in behavior after</div><div>   merge this patch.     </div><div><br></div><div>Solution:</div><div>   This patch will change the current behavior of metadata operation on directory.</div><div>   </div><div>   As of now we don&#39;t restrict application to run any metadata operation on directory if brick is stopped even brick is belong to the hash </div><div>   sub-volume for that directory but after apply this patch we would not allow metadata operation(attribute,xattr change) on directory </div><div>   if hashed subvolume (MDS) is down for that directory.</div><div><br></div><div>   After merge this patch we will consider hash sub-volume as a MDS for that directory  and before wind any fop call at dht level to next xlator </div><div>  we do check the status of MDS, if stopped brick is the MDS of that directory we will not allow to run the operation on directory otherwise</div><div>  dht wind a call to next xlator. </div><div>   </div><div>  </div><div><br></div><div>Regards</div><div>Mohit Agrawal</div></div>