[Bugs] [Bug 1707742] New: tests/geo-rep: arequal checksum comparison always succeeds

bugzilla at redhat.com bugzilla at redhat.com
Wed May 8 08:49:37 UTC 2019


https://bugzilla.redhat.com/show_bug.cgi?id=1707742

            Bug ID: 1707742
           Summary: tests/geo-rep: arequal checksum comparison always
                    succeeds
           Product: GlusterFS
           Version: mainline
            Status: NEW
         Component: tests
          Assignee: bugs at gluster.org
          Reporter: khiremat at redhat.com
                CC: bugs at gluster.org
  Target Milestone: ---
    Classification: Community



Description of problem:
arequal checksum comparison always succeeds in all geo-rep test cases.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
Run any geo-rep test case with bash -x
bash -x tests/00-geo-rep/georep-basic-dr-tarssh.t


+ _EXPECT_WITHIN 109 120 0 arequal_checksum /mnt/glusterfs/0 /mnt/glusterfs/1
+ TESTLINE=109
..
..

+ dbg 'TEST 35 (line 109): 0 arequal_checksum /mnt/glusterfs/0
/mnt/glusterfs/1'
+ '[' x0 = x0 ']'
+ saved_cmd='0 arequal_checksum /mnt/glusterfs/0 /mnt/glusterfs/1'
+ e=0
+ a=
+ shift
++ date +%s
+ local endtime=1557300038
+ EW_RETRIES=0
++ date +%s
+ '[' 1557299918 -lt 1557300038 ']'
++ tail -1
++ arequal_checksum /mnt/glusterfs/0 /mnt/glusterfs/1
++ master=/mnt/glusterfs/0
++ slave=/mnt/glusterfs/1
++ wc -l
++ diff /dev/fd/63 /dev/fd/62
+++ arequal-checksum -p /mnt/glusterfs/1
+++ arequal-checksum -p /mnt/glusterfs/0
++ exit 0
+ a=20
+ '[' 0 -ne 0 ']'
+ [[ 20 =~ 0 ]]          <<<< Even though it's not equal it went to break in
first iteration
+ break



Actual results:
arequal exists on first call even if it's not matched.

Expected results:
arequal should exists only on successful match

Additional info:

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list