Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1761769

Summary: On some distros bug-1272986.t takes more than 2 minutes to run
Product: [Community] GlusterFS Reporter: Pranith Kumar K <pkarampu>
Component: testsAssignee: bugs <bugs>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-16 06:50:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pranith Kumar K 2019-10-15 10:34:09 UTC
Description of problem:
./tests/bugs/shard/bug-1272986.1.t .. 
1..11
ok 1, LINENUM:7
ok 2, LINENUM:8
ok 3, LINENUM:9
ok 4, LINENUM:10
ok 5, LINENUM:11
ok 6, LINENUM:15
ok 7, LINENUM:16
ok 8, LINENUM:19
ok 9, LINENUM:23
Tue Oct 15 06:23:54 EDT 2019
ok 10, LINENUM:27
Tue Oct 15 06:23:54 EDT 2019
Tue Oct 15 06:25:50 EDT 2019
ok 11, LINENUM:36
Tue Oct 15 06:25:50 EDT 2019
ok
All tests successful.
Files=1, Tests=11, 137 wallclock secs ( 0.06 usr  0.02 sys +  0.76 cusr  0.98 csys =  1.82 CPU)
Result: PASS

Same test on my machine takes just 7 seconds:
15:38:50 :) ⚡ prove -rfv ./tests/bugs/shard/bug-1272986.t
./tests/bugs/shard/bug-1272986.t .. 
1..11
ok   1 [    223/   1555] <   7> 'glusterd'
ok   2 [     14/     14] <   8> 'pidof glusterd'
ok   3 [     10/    183] <   9> 'gluster --mode=script --wignore volume create patchy replica 2 localhost.localdomain:/d/backends/patchy0 localhost.localdomain:/d/backends/patchy1 localhost.localdomain:/d/backends/patchy2 localhost.localdomain:/d/backends/patchy3'
ok   4 [     12/    212] <  10> 'gluster --mode=script --wignore volume set patchy features.shard on'
ok   5 [     10/   1359] <  11> 'gluster --mode=script --wignore volume start patchy'
ok   6 [     17/     59] <  15> 'glusterfs --volfile-id=patchy --volfile-server=localhost.localdomain /mnt/glusterfs/0'
ok   7 [     12/     37] <  16> 'glusterfs --volfile-id=patchy --volfile-server=localhost.localdomain /mnt/glusterfs/1'
ok   8 [     15/    213] <  19> 'dd if=/dev/urandom of=/mnt/glusterfs/1/file bs=1M count=5 conv=notrunc oflag=direct'
ok   9 [     71/      3] <  23> '5a09b82d65a478f01412c10de922f3d3 echo 5a09b82d65a478f01412c10de922f3d3'
ok  10 [     13/     14] <  26> 'dd if=/dev/urandom of=/mnt/glusterfs/1/file bs=256k count=1 conv=notrunc oflag=direct'
ok  11 [   2493/      6] <  33> '135d0b799a63be599472d66ca39b69ca echo 135d0b799a63be599472d66ca39b69ca'
ok
All tests successful.
Files=1, Tests=11,  7 wallclock secs ( 0.02 usr  0.01 sys +  0.50 cusr  0.67 csys =  1.20 CPU)
Result: PASS


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Worker Ant 2019-10-15 10:44:01 UTC
REVIEW: https://review.gluster.org/23551 (tests: Specify bs for dd) posted (#1) for review on master by Pranith Kumar Karampuri

Comment 2 Worker Ant 2019-10-16 06:50:49 UTC
REVIEW: https://review.gluster.org/23551 (tests: Specify bs for dd) merged (#2) on master by Krutika Dhananjay