[LU-14309] sanity test_56od: lfs find /mnt/lustre/d56od.sanity -btime -3s -type d' wrong: found 0, expected 4 Created: 08/Jan/21 Updated: 07/Sep/23 |
|
| Status: | Open |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Maloo | Assignee: | WC Triage |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Severity: | 3 |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
This issue was created by maloo for eaujames <eaujames@ddn.com> This issue relates to the following test suite run: https://testing.whamcloud.com/test_sets/496519a3-09de-4434-a6cd-0e650314b579 test_56od failed with the following error: '/usr/bin/lfs find /mnt/lustre/d56od.sanity -btime -3s -type d' wrong: found 0, expected 4 VVVVVVV DO NOT REMOVE LINES BELOW, Added by Maloo for auto-association VVVVVVV |
| Comments |
| Comment by Etienne Aujames [ 08/Jan/21 ] |
|
Maybe we have to re-compute age between the 2 "lfs find -btime" call to take into account the execution time of the first "lfs find -btime": local after=$(do_facet mds1 date +%s) local age=$((after - before + 1 + skew))cmd="$LFS find $dir -btime -${age}s -type f" nums=$($cmd | wc -l) expected=$(((NUMFILES + 1) * NUMDIRS))echo "Clock skew between client and server: $skew, age:$age" [ $nums -eq $expected ] || error "'$cmd' wrong: found $nums, expected $expected"expected=$(($NUMDIRS + 1)) <---- re-compute the age here cmd="$LFS find $dir -btime -${age}s -type d" nums=$($cmd | wc -l) [ $nums -eq $expected ] || error "'$cmd' wrong: found $nums, expected $expected" |
| Comment by Xinliang Liu [ 07/Sep/23 ] |
|
FYI, I hit a fail for this test on a multi-node test cluster and fixed it by installing chrony which can sync the time to the same on all the nodes. |