[LU-240] sanity 171: test_171() races with background multiop Created: 26/Apr/11  Updated: 28/Jun/11  Resolved: 12/May/11

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.0.0, Lustre 1.8.6
Fix Version/s: Lustre 2.1.0, Lustre 1.8.6

Type: Bug Priority: Minor
Reporter: Li Wei (Inactive) Assignee: Zhenyu Xu
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 5045

 Description   

sanity 171 in master could, and actually did for me, fail because of a race between the bash process executing test_171() and the background multiop process. By the time when test_171() returns, the multiop process could still be asleep. Test Framework would complain in run_one() about the existence of the multiop process, failing the subtest.

Another issue with this subtest is that the usage of multiop_bg_pause() is a little tricky. Since the subtest does specify any "_" for multiop, no "PAUSING" will be printed. As a result, the multiop_bg_pause() always fail after the "read -t 60 ...". An alternative implementation could be something like:

multiop $FILE Os &
pid=$!
...
wait $pid


 Comments   
Comment by Zhenyu Xu [ 26/Apr/11 ]

patch tracking at http://review.whamcloud.com/466

Comment by Build Master (Inactive) [ 09/May/11 ]

Integrated in lustre-master » x86_64,client,el5,inkernel #111
LU-240 test_171() races with background multiop

Oleg Drokin : 04d23a7f3dac333c3dad238ebbd7d978421089b4
Files :

  • lustre/tests/sanity.sh
Comment by Build Master (Inactive) [ 09/May/11 ]

Integrated in lustre-master » x86_64,client,ubuntu1004,inkernel #111
LU-240 test_171() races with background multiop

Oleg Drokin : 04d23a7f3dac333c3dad238ebbd7d978421089b4
Files :

  • lustre/tests/sanity.sh
Comment by Build Master (Inactive) [ 09/May/11 ]

Integrated in lustre-master » x86_64,client,el6,inkernel #111
LU-240 test_171() races with background multiop

Oleg Drokin : 04d23a7f3dac333c3dad238ebbd7d978421089b4
Files :

  • lustre/tests/sanity.sh
Comment by Build Master (Inactive) [ 09/May/11 ]

Integrated in lustre-master » i686,client,el6,inkernel #111
LU-240 test_171() races with background multiop

Oleg Drokin : 04d23a7f3dac333c3dad238ebbd7d978421089b4
Files :

  • lustre/tests/sanity.sh
Comment by Build Master (Inactive) [ 09/May/11 ]

Integrated in lustre-master » x86_64,server,el5,inkernel #111
LU-240 test_171() races with background multiop

Oleg Drokin : 04d23a7f3dac333c3dad238ebbd7d978421089b4
Files :

  • lustre/tests/sanity.sh
Comment by Build Master (Inactive) [ 09/May/11 ]

Integrated in lustre-master » i686,client,el5,inkernel #111
LU-240 test_171() races with background multiop

Oleg Drokin : 04d23a7f3dac333c3dad238ebbd7d978421089b4
Files :

  • lustre/tests/sanity.sh
Comment by Build Master (Inactive) [ 09/May/11 ]

Integrated in lustre-master » x86_64,client,ubuntu1004,ofa #111
LU-240 test_171() races with background multiop

Oleg Drokin : 04d23a7f3dac333c3dad238ebbd7d978421089b4
Files :

  • lustre/tests/sanity.sh
Comment by Build Master (Inactive) [ 09/May/11 ]

Integrated in lustre-master » x86_64,client,el5,ofa #111
LU-240 test_171() races with background multiop

Oleg Drokin : 04d23a7f3dac333c3dad238ebbd7d978421089b4
Files :

  • lustre/tests/sanity.sh
Comment by Build Master (Inactive) [ 09/May/11 ]

Integrated in lustre-master » x86_64,server,el6,inkernel #111
LU-240 test_171() races with background multiop

Oleg Drokin : 04d23a7f3dac333c3dad238ebbd7d978421089b4
Files :

  • lustre/tests/sanity.sh
Comment by Build Master (Inactive) [ 09/May/11 ]

Integrated in lustre-master » i686,client,el5,ofa #111
LU-240 test_171() races with background multiop

Oleg Drokin : 04d23a7f3dac333c3dad238ebbd7d978421089b4
Files :

  • lustre/tests/sanity.sh
Comment by Build Master (Inactive) [ 09/May/11 ]

Integrated in lustre-master » i686,server,el6,inkernel #111
LU-240 test_171() races with background multiop

Oleg Drokin : 04d23a7f3dac333c3dad238ebbd7d978421089b4
Files :

  • lustre/tests/sanity.sh
Comment by Build Master (Inactive) [ 09/May/11 ]

Integrated in lustre-master » x86_64,server,el5,ofa #111
LU-240 test_171() races with background multiop

Oleg Drokin : 04d23a7f3dac333c3dad238ebbd7d978421089b4
Files :

  • lustre/tests/sanity.sh
Comment by Build Master (Inactive) [ 09/May/11 ]

Integrated in lustre-master » i686,server,el5,inkernel #111
LU-240 test_171() races with background multiop

Oleg Drokin : 04d23a7f3dac333c3dad238ebbd7d978421089b4
Files :

  • lustre/tests/sanity.sh
Comment by Build Master (Inactive) [ 09/May/11 ]

Integrated in lustre-master » i686,server,el5,ofa #111
LU-240 test_171() races with background multiop

Oleg Drokin : 04d23a7f3dac333c3dad238ebbd7d978421089b4
Files :

  • lustre/tests/sanity.sh
Comment by Build Master (Inactive) [ 12/May/11 ]

Integrated in lustre-b1_8 » x86_64,server,el5,ofa #50
LU-240 test_171() races with background multiop

Johann Lombardi : 88909813abcf62cd99c3a27315d6afb1ade3835e
Files :

  • lustre/tests/sanity.sh
Comment by Build Master (Inactive) [ 12/May/11 ]

Integrated in lustre-b1_8 » x86_64,client,el6,inkernel #50
LU-240 test_171() races with background multiop

Johann Lombardi : 88909813abcf62cd99c3a27315d6afb1ade3835e
Files :

  • lustre/tests/sanity.sh
Comment by Build Master (Inactive) [ 12/May/11 ]

Integrated in lustre-b1_8 » i686,client,el5,inkernel #50
LU-240 test_171() races with background multiop

Johann Lombardi : 88909813abcf62cd99c3a27315d6afb1ade3835e
Files :

  • lustre/tests/sanity.sh
Comment by Build Master (Inactive) [ 12/May/11 ]

Integrated in lustre-b1_8 » x86_64,client,ubuntu1004,inkernel #50
LU-240 test_171() races with background multiop

Johann Lombardi : 88909813abcf62cd99c3a27315d6afb1ade3835e
Files :

  • lustre/tests/sanity.sh
Comment by Build Master (Inactive) [ 12/May/11 ]

Integrated in lustre-b1_8 » i686,client,el5,ofa #50
LU-240 test_171() races with background multiop

Johann Lombardi : 88909813abcf62cd99c3a27315d6afb1ade3835e
Files :

  • lustre/tests/sanity.sh
Comment by Build Master (Inactive) [ 12/May/11 ]

Integrated in lustre-b1_8 » i686,client,el6,inkernel #50
LU-240 test_171() races with background multiop

Johann Lombardi : 88909813abcf62cd99c3a27315d6afb1ade3835e
Files :

  • lustre/tests/sanity.sh
Comment by Build Master (Inactive) [ 12/May/11 ]

Integrated in lustre-b1_8 » x86_64,server,el5,inkernel #50
LU-240 test_171() races with background multiop

Johann Lombardi : 88909813abcf62cd99c3a27315d6afb1ade3835e
Files :

  • lustre/tests/sanity.sh
Comment by Build Master (Inactive) [ 12/May/11 ]

Integrated in lustre-b1_8 » x86_64,client,el5,ofa #50
LU-240 test_171() races with background multiop

Johann Lombardi : 88909813abcf62cd99c3a27315d6afb1ade3835e
Files :

  • lustre/tests/sanity.sh
Comment by Build Master (Inactive) [ 12/May/11 ]

Integrated in lustre-b1_8 » i686,server,el5,inkernel #50
LU-240 test_171() races with background multiop

Johann Lombardi : 88909813abcf62cd99c3a27315d6afb1ade3835e
Files :

  • lustre/tests/sanity.sh
Comment by Build Master (Inactive) [ 12/May/11 ]

Integrated in lustre-b1_8 » x86_64,client,el5,inkernel #50
LU-240 test_171() races with background multiop

Johann Lombardi : 88909813abcf62cd99c3a27315d6afb1ade3835e
Files :

  • lustre/tests/sanity.sh
Comment by Build Master (Inactive) [ 12/May/11 ]

Integrated in lustre-b1_8 » i686,server,el5,ofa #50
LU-240 test_171() races with background multiop

Johann Lombardi : 88909813abcf62cd99c3a27315d6afb1ade3835e
Files :

  • lustre/tests/sanity.sh
Generated at Sat Feb 10 01:05:08 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.