[LU-7765] replay-dual test 26 buggy redirection Created: 09/Feb/16  Updated: 17/Dec/16  Resolved: 17/Dec/16

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.10.0

Type: Bug Priority: Minor
Reporter: Oleg Drokin Assignee: Oleg Drokin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-7372 replay-dual test_26: test failed to r... Resolved
is related to LU-8941 more buggy redirections Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Replay dual test 26 runs dbench as "rundbench 1 -D $dbench_dir -t 100 > /dev/null 2&>1"
This typo results in attepmt to write dbench stderr to a file named 1 instead of redirecting it to descriptor 1 (/dev/null).
Since we run with mds down at the same time, that just leads to dbench hanging.

Another interesting observation is that "ps ax" hangs trying to stat this file, I did not know ps was actually trying to stat descriptors 0, 1 and 2 of a command:

stat("/proc/28723", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/proc/28723/stat", O_RDONLY)      = 6
read(6, "28723 (rundbench) S 25442 29606 "..., 2048) = 359
close(6)                                = 0
open("/proc/28723/status", O_RDONLY)    = 6
read(6, "Name:\trundbench\nState:\tS (sleepi"..., 2048) = 1242
close(6)                                = 0
open("/proc/28723/cmdline", O_RDONLY)   = 6
read(6, "/bin/bash\0/home/green/git/lustre"..., 131072) = 118
read(6, "", 130954)                     = 0
close(6)                                = 0
stat("/dev/pts0", 0x7ffffd63a2e0)       = -1 ENOENT (No such file or directory)
stat("/dev/pts", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
readlink("/proc/28723/fd/2", "/mnt/lustre2/d26.replay-dual/run"..., 127) = 41
stat("/mnt/lustre2/d26.replay-dual/run_dbench/1", 


 Comments   
Comment by Gerrit Updater [ 09/Feb/16 ]

Oleg Drokin (oleg.drokin@intel.com) uploaded a new patch: http://review.whamcloud.com/18365
Subject: LU-7765 tests: Fix buggy stderr redirection in replay-dual test 26
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 3c0de6fdc885043edfb268c2f7b6ca76845b1fd1

Comment by Gerrit Updater [ 17/Dec/16 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/18365/
Subject: LU-7765 tests: Fix replay-dual test_26 stderr redirection
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 01a84fec7055d40d48ff656b1fd5df83692928e7

Comment by Peter Jones [ 17/Dec/16 ]

Landed for 2.10

Generated at Sat Feb 10 02:11:43 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.