<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>+ gluster-devel</p>
    <br>
    <div class="moz-cite-prefix">On 01/15/2018 01:41 PM, Zhou, Cynthia
      (NSB - CN/Hangzhou) wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:VI1PR07MB3293165743DF4AC9B7C848C1C8EB0@VI1PR07MB3293.eurprd07.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta name="Generator" content="Microsoft Exchange Server">
      <!-- converted from rtf -->
      <style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
      <font size="2" face="Calibri"><span style="font-size:10.5pt;">
          <div style="text-align:justify;" align="left">Hi glusterfs
            expert,</div>
          <div style="text-align:justify;" align="left">        Good
            day,</div>
          <div style="text-align:justify;" align="left">        When I
            do some test about glusterfs self-heal I find following
            prints showing when dir/file type get error it cannot get
            self-healed.</div>
          <div style="text-indent:21pt;text-align:justify;" align="left"><b>Could
              you help to check if it is an expected behavior ? because
              I find the code change </b><a
              href="https://review.gluster.org/#/c/17981/"
              moz-do-not-send="true"><font color="#0563C1"><b><u>https://review.gluster.org/#/c/17981/</u></b></font></a><b>
              add check for </b><b>iatt-&gt;ia_typ</b><b>e,  so what if
              a file’s ia_type get corrupted ? in this case it should
              not get self-healed</b> ? </div>
        </span></font></blockquote>
    <br>
    <font size="2">Yes, without knowing the ia-type ,
      afr_selfheal_recreate_entry () cannot decide what type of FOP to
      do (mkdir/link/mknod ) to create the appropriate file on the sink.
      You would need to find out why the source brick is not returning
      valid ia_type. i.e. why replies[source].poststat is not valid.<br>
      Thanks,<br>
      Ravi</font><font size="2"><font face="Calibri"><br>
        <br>
      </font></font>
    <blockquote type="cite"
cite="mid:VI1PR07MB3293165743DF4AC9B7C848C1C8EB0@VI1PR07MB3293.eurprd07.prod.outlook.com"><font
        size="2" face="Calibri"><span style="font-size:10.5pt;">
          <div style="text-indent:21pt;text-align:justify;" align="left">Thanks!</div>
          <div style="text-align:justify;" align="left">//////////////////heal
            info output////////////////////////////</div>
          <div style="text-align:justify;" align="left">[root@sn-0:/home/robot]</div>
          <div style="text-align:justify;" align="left"># gluster v heal
            export info</div>
          <div style="text-align:justify;" align="left">Brick
            sn-0.local:/mnt/bricks/export/brick</div>
          <div style="text-align:justify;" align="left">Status:
            Connected</div>
          <div style="text-align:justify;" align="left">Number of
            entries: 0</div>
          <div style="text-align:justify;" align="left"> </div>
          <div style="text-align:justify;" align="left">Brick
            sn-1.local:/mnt/bricks/export/brick</div>
          <div style="text-align:justify;" align="left">/testdir - Is in
            split-brain</div>
          <div style="text-align:justify;" align="left"> </div>
          <div style="text-align:justify;" align="left">Status:
            Connected</div>
          <div style="text-align:justify;" align="left">Number of
            entries: 1</div>
          <div style="text-align:justify;" align="left">//////////////////////////////////////////sn-1
            glustershd
            log///////////////////////////////////////////////////</div>
          <div style="text-align:justify;" align="left"><font
              face="Times New Roman"> </font></div>
          <div style="text-align:justify;" align="left">[2018-01-15
            03:53:40.011422] I [MSGID: 108026]
            [afr-self-heal-entry.c:887:afr_selfheal_entry_do]
            0-export-replicate-0: performing entry selfheal on
            b217d6af-4902-4f18-9a69-e0ccf5207572</div>
          <div style="text-align:justify;" align="left">[2018-01-15
            03:53:40.013994] W [MSGID: 114031]
            [client-rpc-fops.c:2860:client3_3_lookup_cbk]
            0-export-client-1: remote operation failed. Path: (null)
            (00000000-0000-0000-0000-000000000000) [No data available]</div>
          <div style="text-align:justify;" align="left">[2018-01-15
            03:53:40.014025] E [MSGID: 108037]
            [afr-self-heal-entry.c:92:afr_selfheal_recreate_entry]
            0-export-replicate-0: <font color="red">Invalid ia_type (0)
              or gfid(00000000-0000-0000-0000-000000000000). source
              brick=1, pargfid=00000000-0000-0000-0000-000000000000,
              name=IORFILE_82_2</font></div>
          <div style="text-align:justify;" align="left">//////////////////////////////////////gdb
            attached to sn-1
            glustershd/////////////////////////////////////////////</div>
          <div style="text-align:justify;" align="left">root@sn-1:/var/log/glusterfs]</div>
          <div style="text-align:justify;" align="left"># gdb attach
            2191</div>
          <div style="text-align:justify;" align="left">GNU gdb (GDB)
            8.0.1</div>
          <div style="text-align:justify;" align="left">Copyright (C)
            2017 Free Software Foundation, Inc.</div>
          <div style="text-align:justify;" align="left">License GPLv3+:
            GNU GPL version 3 or later &lt;<a
              href="http://gnu.org/licenses/gpl.html"
              moz-do-not-send="true"><font color="#0563C1"><u>http://gnu.org/licenses/gpl.html</u></font></a>&gt;</div>
          <div style="text-align:justify;" align="left">This is free
            software: you are free to change and redistribute it.</div>
          <div style="text-align:justify;" align="left">There is NO
            WARRANTY, to the extent permitted by law.  Type "show
            copying"</div>
          <div style="text-align:justify;" align="left">and "show
            warranty" for details.</div>
          <div style="text-align:justify;" align="left">This GDB was
            configured as "x86_64-linux-gnu".</div>
          <div style="text-align:justify;" align="left">Type "show
            configuration" for configuration details.</div>
          <div style="text-align:justify;" align="left">For bug
            reporting instructions, please see:</div>
          <div style="text-align:justify;" align="left">&lt;<a
              href="http://www.gnu.org/software/gdb/bugs/"
              moz-do-not-send="true"><font color="#0563C1"><u>http://www.gnu.org/software/gdb/bugs/</u></font></a>&gt;.</div>
          <div style="text-align:justify;" align="left">Find the GDB
            manual and other documentation resources online at:</div>
          <div style="text-align:justify;" align="left">&lt;<a
              href="http://www.gnu.org/software/gdb/documentation/"
              moz-do-not-send="true"><font color="#0563C1"><u>http://www.gnu.org/software/gdb/documentation/</u></font></a>&gt;.</div>
          <div style="text-align:justify;" align="left">For help, type
            "help".</div>
          <div style="text-align:justify;" align="left">Type "apropos
            word" to search for commands related to "word"...</div>
          <div style="text-align:justify;" align="left">attach: No such
            file or directory.</div>
          <div style="text-align:justify;" align="left">Attaching to
            process 2191</div>
          <div style="text-align:justify;" align="left">[New LWP 2192]</div>
          <div style="text-align:justify;" align="left">[New LWP 2193]</div>
          <div style="text-align:justify;" align="left">[New LWP 2194]</div>
          <div style="text-align:justify;" align="left">[New LWP 2195]</div>
          <div style="text-align:justify;" align="left">[New LWP 2196]</div>
          <div style="text-align:justify;" align="left">[New LWP 2197]</div>
          <div style="text-align:justify;" align="left">[New LWP 2239]</div>
          <div style="text-align:justify;" align="left">[New LWP 2241]</div>
          <div style="text-align:justify;" align="left">[New LWP 2243]</div>
          <div style="text-align:justify;" align="left">[New LWP 2245]</div>
          <div style="text-align:justify;" align="left">[New LWP 2247]</div>
          <div style="text-align:justify;" align="left">[Thread
            debugging using libthread_db enabled]</div>
          <div style="text-align:justify;" align="left">Using host
            libthread_db library "/lib64/libthread_db.so.1".</div>
          <div style="text-align:justify;" align="left">0x00007f90aca037bd
            in __pthread_join (threadid=140259279345408,
            thread_return=0x0) at pthread_join.c:90</div>
          <div style="text-align:justify;" align="left">90     
            pthread_join.c: No such file or directory.</div>
          <div style="text-align:justify;" align="left">(gdb) break
            afr_selfheal_recreate_entry</div>
          <div style="text-align:justify;" align="left">Breakpoint 1 at
            0x7f90a3b56dec: file afr-self-heal-entry.c, line 73.</div>
          <div style="text-align:justify;" align="left">(gdb) c</div>
          <div style="text-align:justify;" align="left">Continuing.</div>
          <div style="text-align:justify;" align="left">[Switching to
            Thread 0x7f90a1b8e700 (LWP 2241)]</div>
          <div style="text-align:justify;" align="left"> </div>
          <div style="text-align:justify;" align="left">Thread 9
            "glustershdheal" hit Breakpoint 1,
            afr_selfheal_recreate_entry (frame=0x7f90980018d0, dst=0,
            source=1, sources=0x7f90a1b8ceb0 "", dir=0x7f9098011940,
            name=0x7f909c015d48 "IORFILE_82_2", </div>
          <div style="text-align:justify;" align="left">   
            inode=0x7f9098001bd0, replies=0x7f90a1b8c890) at
            afr-self-heal-entry.c:73</div>
          <div style="text-align:justify;" align="left">73     
            afr-self-heal-entry.c: No such file or directory.</div>
          <div style="text-align:justify;" align="left">(gdb) n</div>
          <div style="text-align:justify;" align="left">74      in
            afr-self-heal-entry.c</div>
          <div style="text-align:justify;" align="left">(gdb) n</div>
          <div style="text-align:justify;" align="left">75      in
            afr-self-heal-entry.c</div>
          <div style="text-align:justify;" align="left">(gdb) n</div>
          <div style="text-align:justify;" align="left">76      in
            afr-self-heal-entry.c</div>
          <div style="text-align:justify;" align="left">(gdb) n</div>
          <div style="text-align:justify;" align="left">77      in
            afr-self-heal-entry.c</div>
          <div style="text-align:justify;" align="left">(gdb) n</div>
          <div style="text-align:justify;" align="left">78      in
            afr-self-heal-entry.c</div>
          <div style="text-align:justify;" align="left">(gdb) n</div>
          <div style="text-align:justify;" align="left">79      in
            afr-self-heal-entry.c</div>
          <div style="text-align:justify;" align="left">(gdb) n</div>
          <div style="text-align:justify;" align="left">80      in
            afr-self-heal-entry.c</div>
          <div style="text-align:justify;" align="left">(gdb) n</div>
          <div style="text-align:justify;" align="left">81      in
            afr-self-heal-entry.c</div>
          <div style="text-align:justify;" align="left">(gdb) n</div>
          <div style="text-align:justify;" align="left">82      in
            afr-self-heal-entry.c</div>
          <div style="text-align:justify;" align="left">(gdb) n</div>
          <div style="text-align:justify;" align="left">83      in
            afr-self-heal-entry.c</div>
          <div style="text-align:justify;" align="left">(gdb) n</div>
          <div style="text-align:justify;" align="left">85      in
            afr-self-heal-entry.c</div>
          <div style="text-align:justify;" align="left">(gdb) n</div>
          <div style="text-align:justify;" align="left">86      in
            afr-self-heal-entry.c</div>
          <div style="text-align:justify;" align="left">(gdb) n</div>
          <div style="text-align:justify;" align="left">87      in
            afr-self-heal-entry.c</div>
          <div style="text-align:justify;" align="left">(gdb) print
            iatt-&gt;ia_type</div>
          <div style="text-align:justify;" align="left"><font
              color="red">$1 = IA_INVAL</font></div>
          <div style="text-align:justify;" align="left">(gdb) print
            gf_uuid_is_null(iatt-&gt;ia_gfid)</div>
          <div style="text-align:justify;" align="left">$2 = 1</div>
          <div style="text-align:justify;" align="left">(gdb) bt</div>
          <div style="text-align:justify;" align="left">#0 
            afr_selfheal_recreate_entry (frame=0x7f90980018d0, dst=0,
            source=1, sources=0x7f90a1b8ceb0 "", dir=0x7f9098011940,
            name=0x7f909c015d48 "IORFILE_82_2", inode=0x7f9098001bd0,
            replies=0x7f90a1b8c890)</div>
          <div style="text-align:justify;" align="left">    at
            afr-self-heal-entry.c:87</div>
          <div style="text-align:justify;" align="left">#1 
            0x00007f90a3b57d20 in __afr_selfheal_merge_dirent
            (frame=0x7f90980018d0, this=0x7f90a4024610,
            fd=0x7f9098413090, name=0x7f909c015d48 "IORFILE_82_2",
            inode=0x7f9098001bd0, </div>
          <div style="text-align:justify;" align="left">   
            sources=0x7f90a1b8ceb0 "", healed_sinks=0x7f90a1b8ce70
            "\001\001A\230\220\177", locked_on=0x7f90a1b8ce50
            "\001\001\270\241\220\177", replies=0x7f90a1b8c890) at
            afr-self-heal-entry.c:360</div>
          <div style="text-align:justify;" align="left">#2 
            0x00007f90a3b57da5 in __afr_selfheal_entry_dirent
            (frame=0x7f90980018d0, this=0x7f90a4024610,
            fd=0x7f9098413090, name=0x7f909c015d48 "IORFILE_82_2",
            inode=0x7f9098001bd0, source=-1, </div>
          <div style="text-align:justify;" align="left">   
            sources=0x7f90a1b8ceb0 "", healed_sinks=0x7f90a1b8ce70
            "\001\001A\230\220\177", locked_on=0x7f90a1b8ce50
            "\001\001\270\241\220\177", replies=0x7f90a1b8c890) at
            afr-self-heal-entry.c:379</div>
          <div style="text-align:justify;" align="left">#3 
            0x00007f90a3b5881f in afr_selfheal_entry_dirent
            (frame=0x7f90980018d0, this=0x7f90a4024610,
            fd=0x7f9098413090, name=0x7f909c015d48 "IORFILE_82_2",
            parent_idx_inode=0x0, subvol=0x7f90a4022240, </div>
          <div style="text-align:justify;" align="left">   
            full_crawl=_gf_true) at afr-self-heal-entry.c:610</div>
          <div style="text-align:justify;" align="left">#4 
            0x00007f90a3b58da8 in afr_selfheal_entry_do_subvol
            (frame=0x7f90980110f0, this=0x7f90a4024610,
            fd=0x7f9098413090, child=1) at afr-self-heal-entry.c:742</div>
          <div style="text-align:justify;" align="left">#5 
            0x00007f90a3b5953a in afr_selfheal_entry_do
            (frame=0x7f90980110f0, this=0x7f90a4024610,
            fd=0x7f9098413090, source=-1, sources=0x7f90a1b8d810 "", </div>
          <div style="text-align:justify;" align="left">   
            healed_sinks=0x7f90a1b8d7d0 "\001\001\270\241\220\177") at
            afr-self-heal-entry.c:908</div>
          <div style="text-align:justify;" align="left">#6 
            0x00007f90a3b59b79 in __afr_selfheal_entry
            (frame=0x7f90980110f0, this=0x7f90a4024610,
            fd=0x7f9098413090, locked_on=0x7f90a1b8d920 "\001\001\\Z")
            at afr-self-heal-entry.c:1002</div>
          <div style="text-align:justify;" align="left">#7 
            0x00007f90a3b5a051 in afr_selfheal_entry
            (frame=0x7f90980110f0, this=0x7f90a4024610,
            inode=0x7f9098011940) at afr-self-heal-entry.c:1112</div>
          <div style="text-align:justify;" align="left">#8 
            0x00007f90a3b519b1 in afr_selfheal_do (frame=0x7f90980110f0,
            this=0x7f90a4024610, gfid=0x7f90a1b8db20 "\262\027<font
              face="Arial">֯</font>I\002O\030\232i\340\314\365 urP<font
              face="Arial">۸</font>\241\220\177")
            at afr-self-heal-common.c:2459</div>
          <div style="text-align:justify;" align="left">#9 
            0x00007f90a3b51aa7 in afr_selfheal (this=0x7f90a4024610,
            gfid=0x7f90a1b8db20 "\262\027<font face="Arial">֯</font>I\002O\030\232i\340\314\365
            urP<font face="Arial">۸</font>\241\220\177") at
            afr-self-heal-common.c:2500</div>
          <div style="text-align:justify;" align="left">#10
            0x00007f90a3b5cf1f in afr_shd_selfheal
            (healer=0x7f90a4033510, child=1, gfid=0x7f90a1b8db20
            "\262\027<font face="Arial">֯</font>I\002O\030\232i\340\314\365
            urP<font face="Arial">۸</font>\241\220\177") at
            afr-self-heald.c:334</div>
          <div style="text-align:justify;" align="left">#11
            0x00007f90a3b5d2c8 in afr_shd_index_heal
            (subvol=0x7f90a4022240, entry=0x7f909c0169c0,
            parent=0x7f90a1b8dde0, data=0x7f90a4033510) at
            afr-self-heald.c:431</div>
          <div style="text-align:justify;" align="left">#12
            0x00007f90adc74654 in syncop_mt_dir_scan
            (frame=0x7f90a407b4f0, subvol=0x7f90a4022240,
            loc=0x7f90a1b8dde0, pid=-6, data=0x7f90a4033510,
            fn=0x7f90a3b5d17c &lt;afr_shd_index_heal&gt;, </div>
          <div style="text-align:justify;" align="left">   
            xdata=0x7f90a4002380, max_jobs=1, max_qlen=1024) at
            syncop-utils.c:407</div>
          <div style="text-align:justify;" align="left">#13
            0x00007f90a3b5d4e1 in afr_shd_index_sweep
            (healer=0x7f90a4033510, vgfid=0x7f90a3b84f38
            "glusterfs.xattrop_index_gfid") at afr-self-heald.c:481</div>
          <div style="text-align:justify;" align="left">#14
            0x00007f90a3b5d5bd in afr_shd_index_sweep_all
            (healer=0x7f90a4033510) at afr-self-heald.c:504</div>
          <div style="text-align:justify;" align="left">#15
            0x00007f90a3b5d894 in afr_shd_index_healer
            (data=0x7f90a4033510) at afr-self-heald.c:584</div>
          <div style="text-align:justify;" align="left">#16
            0x00007f90aca024a5 in start_thread (arg=0x7f90a1b8e700) at
            pthread_create.c:465</div>
          <div style="text-align:justify;" align="left">#17
            0x00007f90ac2e959f in clone () at
            ../sysdeps/unix/sysv/linux/x86_64/clone.S:95</div>
          <div style="text-align:justify;" align="left">(gdb)</div>
          <div style="text-indent:21pt;text-align:justify;" align="left"><font
              face="Times New Roman"> </font></div>
          <div style="text-indent:21pt;text-align:justify;" align="left"><font
              face="Times New Roman"> </font></div>
          <div style="text-indent:21pt;text-align:justify;" align="left"><font
              face="Times New Roman"> </font></div>
          <div style="text-align:justify;" align="left"><font
              face="Times New Roman"> </font></div>
          <div style="text-align:justify;" align="left"><font
              face="Arial">Best regards,<br>
              <b>Cynthia </b><font face="宋体"><b>(周琳)</b></font></font></div>
          <div style="text-align:justify;" align="left"><font
              face="Arial">MBB SM HETRAN SW3 MATRIX  </font></div>
          <div style="text-align:justify;" align="left"><font
              face="Arial">Storage         <br>
              Mobile: +86 (0)18657188311</font></div>
          <div style="text-align:justify;" align="left"><font
              face="Times New Roman"> </font></div>
          <div style="text-align:justify;" align="left"><font
              face="Times New Roman"> </font></div>
          <div style="text-align:justify;" align="left"><font
              face="Times New Roman"> </font></div>
        </span></font>
    </blockquote>
    <br>
  </body>
</html>