Re: Spurious regression failure? tests/basic/ec/ec-background-heals.t

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Atin,

I don't clearly see what's the problem. Even if the truncate causes a dirty flag to be set, eventually it should be removed before the $HEAL_TIMEOUT value.

For now I've marked the test as bad.

Patch is: https://review.gluster.org/16470

Xavi

On 25/01/17 17:24, Atin Mukherjee wrote:
Can we please address this as early as possible, my patch has hit this
failure 3 out of 4 recheck attempts now. I'm guessing some recent
changes has caused it.

On Wed, 25 Jan 2017 at 12:10, Ashish Pandey <aspandey@xxxxxxxxxx
<mailto:aspandey@xxxxxxxxxx>> wrote:


    Pranith,

    In this test tests/basic/ec/ec-background-heals.t, I think the line
    number 86 actually creating a heal entry instead of
    helping data heal quickly. What if all the data was already healed
    at that moment, truncate came and in preop set the dirty flag and at the
    end, as part of the heal, dirty flag was unset on previous good
    bricks only and the brick which acted as heal-sink still has dirty
    marked by truncate.
    That is why we are only seeing "1" as get_pending_heal_count. If a
    file was actually not healed it should be "2".
    If heal on this file completes and unset of dirty flag happens
    before truncate everything will be fine.

    I think we can wait for file to be heal without truncate?

     71 #Test that disabling background-heals still drains the queue
     72 TEST $CLI volume set $V0 disperse.background-heals 1
     73 TEST touch $M0/{a,b,c,d}
     74 TEST kill_brick $V0 $H0 $B0/${V0}2
     75 EXPECT_WITHIN $CONFIG_UPDATE_TIMEOUT "1" mount_get_option_value
    $M0 $V0-disperse-0 background-heals
     76 EXPECT_WITHIN $CONFIG_UPDATE_TIMEOUT "200"
    mount_get_option_value $M0 $V0-disperse-0 heal-wait-qlength
     77 TEST truncate -s 1GB $M0/a
     78 echo abc > $M0/b
     79 echo abc > $M0/c
     80 echo abc > $M0/d
     81 TEST $CLI volume start $V0 force
     82 EXPECT_WITHIN $CHILD_UP_TIMEOUT "3" ec_child_up_count $V0 0
     83 TEST chown root:root $M0/{a,b,c,d}
     84 TEST $CLI volume set $V0 disperse.background-heals 0
     85 EXPECT_NOT "0" mount_get_option_value $M0 $V0-disperse-0
    heal-waiters

     86 TEST truncate -s 0 $M0/a # This completes the heal fast ;-) <<<<<<<

     87 EXPECT_WITHIN $HEAL_TIMEOUT "^0$" get_pending_heal_count $V0

    ----
    Ashish





    ------------------------------------------------------------------------
    *From: *"Raghavendra Gowdappa" <rgowdapp@xxxxxxxxxx
    <mailto:rgowdapp@xxxxxxxxxx>>
    *To: *"Nithya Balachandran" <nbalacha@xxxxxxxxxx
    <mailto:nbalacha@xxxxxxxxxx>>
    *Cc: *"Gluster Devel" <gluster-devel@xxxxxxxxxxx
    <mailto:gluster-devel@xxxxxxxxxxx>>, "Pranith Kumar Karampuri"
    <pkarampu@xxxxxxxxxx <mailto:pkarampu@xxxxxxxxxx>>, "Ashish Pandey"
    <aspandey@xxxxxxxxxx <mailto:aspandey@xxxxxxxxxx>>
    *Sent: *Wednesday, January 25, 2017 9:41:38 AM
    *Subject: *Re:  Spurious regression
    failure?        tests/basic/ec/ec-background-heals.t


    Found another failure on same test:
    https://build.gluster.org/job/centos6-regression/2874/consoleFull

    ----- Original Message -----
    > From: "Nithya Balachandran" <nbalacha@xxxxxxxxxx
    <mailto:nbalacha@xxxxxxxxxx>>
    > To: "Gluster Devel" <gluster-devel@xxxxxxxxxxx
    <mailto:gluster-devel@xxxxxxxxxxx>>, "Pranith Kumar Karampuri"
    <pkarampu@xxxxxxxxxx <mailto:pkarampu@xxxxxxxxxx>>, "Ashish Pandey"
    > <aspandey@xxxxxxxxxx <mailto:aspandey@xxxxxxxxxx>>
    > Sent: Tuesday, January 24, 2017 9:16:31 AM
    > Subject:  Spurious regression
    failure?        tests/basic/ec/ec-background-heals.t
    >
    > Hi,
    >
    >
    > Can you please take a look at
    > https://build.gluster.org/job/centos6-regression/2859/console ?
    >
    > tests/basic/ec/ec-background-heals.t has failed.
    >
    > Thanks,
    > Nithya
    >
    > _______________________________________________
    > Gluster-devel mailing list
    > Gluster-devel@xxxxxxxxxxx <mailto:Gluster-devel@xxxxxxxxxxx>
    > http://lists.gluster.org/mailman/listinfo/gluster-devel
    _______________________________________________

    Gluster-devel mailing list

    Gluster-devel@xxxxxxxxxxx <mailto:Gluster-devel@xxxxxxxxxxx>

    http://lists.gluster.org/mailman/listinfo/gluster-devel

--
- Atin (atinm)


_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://lists.gluster.org/mailman/listinfo/gluster-devel


_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://lists.gluster.org/mailman/listinfo/gluster-devel



[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux