# bug number: 17466 18857 LU1867
ALWAYS_EXCEPT="61d 33a 33b 89 $REPLAY_SINGLE_EXCEPT"
+[ $(facet_fstype $SINGLEMDS) = "zfs" ] &&
+# bug number for skipped test: LU-2342 LU-951
+ ALWAYS_EXCEPT="$ALWAYS_EXCEPT 20b 70a 73a"
+
# 63 min 7 min AT AT AT AT"
[ "$SLOW" = "no" ] && EXCEPT_SLOW="1 2 3 4 6 12 16 44a 44b 65 66 67 68"
zconf_mount `hostname` $MOUNT || error "mount fails"
client_up || error "post-failover df failed"
# file shouldn't exist if replay-barrier works as expected
- rm $DIR/$tfile && return 1
+ rm $DIR/$tfile && error "File exists and it shouldn't"
return 0
}
run_test 0c "check replay-barrier"
run_test 44b "race in target handle connect"
test_44c() {
- replay_barrier $SINGLEMDS
- createmany -m $DIR/$tfile-%d 100
+ replay_barrier $SINGLEMDS
+ createmany -m $DIR/$tfile-%d 100 || error "failed to create directories"
#define OBD_FAIL_TGT_RCVG_FLAG 0x712
- do_facet $SINGLEMDS "lctl set_param fail_loc=0x80000712"
- fail_abort $SINGLEMDS
- unlinkmany $DIR/$tfile-%d 100 && return 1
- fail $SINGLEMDS
- unlinkmany $DIR/$tfile-%d 100 && return 1
- return 0
+ do_facet $SINGLEMDS "lctl set_param fail_loc=0x80000712"
+ fail_abort $SINGLEMDS
+ unlinkmany $DIR/$tfile-%d 100 && error "unliked after fail abort"
+ fail $SINGLEMDS
+ unlinkmany $DIR/$tfile-%d 100 && error "unliked after fail"
+ return 0
}
run_test 44c "race in target handle connect"
local remote_dir=$DIR/$tdir/remote_dir
mkdir -p $DIR/$tdir
- # OBD_FAIL_MDS_DROP_OBJ_UPDATE 0x188
- do_facet mds$((MDTIDX + 1)) lctl set_param fail_loc=0x188
+ # OBD_FAIL_UPDATE_OBJ_NET 0x1500
+ do_facet mds$((MDTIDX + 1)) lctl set_param fail_loc=0x1500
$LFS mkdir -i $MDTIDX $remote_dir &
local CLIENT_PID=$!
do_facet mds$((MDTIDX + 1)) lctl set_param fail_loc=0
local remote_dir=$DIR/$tdir/remote_dir
mkdir -p $DIR/$tdir
- # OBD_FAIL_MDS_DROP_OBJ_UPDATE 0x188
- do_facet mds$((MDTIDX + 1)) lctl set_param fail_loc=0x188
+ # OBD_FAIL_UPDATE_OBJ_NET 0x1500
+ do_facet mds$((MDTIDX + 1)) lctl set_param fail_loc=0x1500
$LFS mkdir -i $MDTIDX $remote_dir &
local CLIENT_PID=$!
do_facet mds$((MDTIDX + 1)) lctl set_param fail_loc=0
local remote_dir=$DIR/$tdir/remote_dir
mkdir -p $DIR/$tdir
- # OBD_FAIL_MDS_DROP_OBJ_UPDATE 0x188
- do_facet mds$((MDTIDX + 1)) lctl set_param fail_loc=0x188
+ # OBD_FAIL_UPDATE_OBJ_NET 0x1500
+ do_facet mds$((MDTIDX + 1)) lctl set_param fail_loc=0x1500
$LFS mkdir -i $MDTIDX $remote_dir &
local CLIENT_PID=$!
do_facet mds$((MDTIDX + 1)) lctl set_param fail_loc=0
local remote_dir=$DIR/$tdir/remote_dir
mkdir -p $DIR/$tdir
- # OBD_FAIL_MDS_DROP_OBJ_UPDATE 0x188
- do_facet mds$((MDTIDX + 1)) lctl set_param fail_loc=0x188
+ # OBD_FAIL_UPDATE_OBJ_NET 0x1500
+ do_facet mds$((MDTIDX + 1)) lctl set_param fail_loc=0x1500
$LFS mkdir -i $MDTIDX $remote_dir &
local CLIENT_PID=$!
do_facet mds$((MDTIDX + 1)) lctl set_param fail_loc=0
mkdir -p $DIR/$tdir
$LFS mkdir -i $MDTIDX $remote_dir || error "lfs mkdir failed"
- # OBD_FAIL_MDS_DROP_OBJ_UPDATE 0x188
- do_facet mds${MDTIDX} lctl set_param fail_loc=0x188
+ # OBD_FAIL_UPDATE_OBJ_NET 0x1500
+ do_facet mds${MDTIDX} lctl set_param fail_loc=0x1500
rmdir $remote_dir &
local CLIENT_PID=$!
do_facet mds${MDTIDX} lctl set_param fail_loc=0
mkdir -p $DIR/$tdir
$LFS mkdir -i $MDTIDX $remote_dir || error "lfs mkdir failed"
- # OBD_FAIL_MDS_DROP_OBJ_UPDATE 0x188
- do_facet mds${MDTIDX} lctl set_param fail_loc=0x188
+ # OBD_FAIL_UPDATE_OBJ_NET 0x1500
+ do_facet mds${MDTIDX} lctl set_param fail_loc=0x1500
rmdir $remote_dir &
local CLIENT_PID=$!
do_facet mds${MDTIDX} lctl set_param fail_loc=0
mkdir -p $DIR/$tdir
$LFS mkdir -i $MDTIDX $remote_dir || error "lfs mkdir failed"
- # OBD_FAIL_MDS_DROP_OBJ_UPDATE 0x188
- do_facet mds${MDTIDX} lctl set_param fail_loc=0x188
+ # OBD_FAIL_UPDATE_OBJ_NET 0x1500
+ do_facet mds${MDTIDX} lctl set_param fail_loc=0x1500
rmdir $remote_dir &
local CLIENT_PID=$!
do_facet mds${MDTIDX} lctl set_param fail_loc=0
mkdir -p $DIR/$tdir
$LFS mkdir -i $MDTIDX $remote_dir || error "lfs mkdir failed"
- # OBD_FAIL_MDS_DROP_OBJ_UPDATE 0x188
- do_facet mds${MDTIDX} lctl set_param fail_loc=0x188
+ # OBD_FAIL_UPDATE_OBJ_NET 0x1500
+ do_facet mds${MDTIDX} lctl set_param fail_loc=0x1500
rmdir $remote_dir &
local CLIENT_PID=$!
do_facet mds${MDTIDX} lctl set_param fail_loc=0
$LFS mkdir -i $MDTIDX $remote_dir || error "lfs mkdir failed"
# OBD_FAIL_MDS_REINT_NET_REP 0x119
- do_facet mds${MDTIDX} lctl set_param fail_loc=0x119
+ do_facet mds$((MDTIDX + 1)) lctl set_param fail_loc=0x119
rmdir $remote_dir &
local CLIENT_PID=$!
- do_facet mds${MDTIDX} lctl set_param fail_loc=0
+ do_facet mds$((MDTIDX + 1)) lctl set_param fail_loc=0
fail mds${MDTIDX}
$LFS mkdir -i $MDTIDX $remote_dir || error "lfs mkdir failed"
# OBD_FAIL_MDS_REINT_NET_REP 0x119
- do_facet mds${MDTIDX} lctl set_param fail_loc=0x119
+ do_facet mds$((MDTIDX + 1)) lctl set_param fail_loc=0x119
rmdir $remote_dir &
local CLIENT_PID=$!
- do_facet mds${MDTIDX} lctl set_param fail_loc=0
+ do_facet mds$((MDTIDX + 1)) lctl set_param fail_loc=0
fail mds$((MDTIDX + 1))
$LFS mkdir -i $MDTIDX $remote_dir || error "lfs mkdir failed"
# OBD_FAIL_MDS_REINT_NET_REP 0x119
- do_facet mds${MDTIDX} lctl set_param fail_loc=0x119
+ do_facet mds$((MDTIDX + 1)) lctl set_param fail_loc=0x119
rmdir $remote_dir &
local CLIENT_PID=$!
- do_facet mds${MDTIDX} lctl set_param fail_loc=0
+ do_facet mds$((MDTIDX + 1)) lctl set_param fail_loc=0
fail mds${MDTIDX}
fail mds$((MDTIDX + 1))
$LFS mkdir -i $MDTIDX $remote_dir || error "lfs mkdir failed"
# OBD_FAIL_MDS_REINT_NET_REP 0x119
- do_facet mds${MDTIDX} lctl set_param fail_loc=0x119
+ do_facet mds$((MDTIDX + 1)) lctl set_param fail_loc=0x119
rmdir $remote_dir &
local CLIENT_PID=$!
- do_facet mds${MDTIDX} lctl set_param fail_loc=0
+ do_facet mds$((MDTIDX + 1)) lctl set_param fail_loc=0
fail mds${MDTIDX},mds$((MDTIDX + 1))