Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAOS-16686 utils: skip pre-read counter for now #15706

Merged
merged 2 commits into from
Jan 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions utils/node_local_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
"""Node local test (NLT).

(C) Copyright 2020-2024 Intel Corporation.
(C) Copyright 2020-2025 Intel Corporation.

SPDX-License-Identifier: BSD-2-Clause-Patent

Expand Down Expand Up @@ -2377,8 +2377,6 @@ def test_pre_read(self):
# Open a MB file. This reads 8 128k chunks and 1 EOF.
with open(join(dfuse.dir, 'file3'), 'r') as fd:
data3 = fd.read()
res = dfuse.check_usage(old=res)
assert res['statistics']['pre_read'] == 9, res

# Open a (1MB-1) file. This reads 8 128k chunks, the last is truncated. There is no EOF
# returned by dfuse here, just a truncated read but I assume python is interpreting a
Expand All @@ -2387,14 +2385,9 @@ def test_pre_read(self):
data4 = fd.read()
data5 = fd.read()

res = dfuse.check_usage(old=res)
assert res['statistics']['pre_read'] == 8, res

# This should now be read from cache.
with open(join(dfuse.dir, 'file4'), 'r') as fd:
data6 = fd.read()
res = dfuse.check_usage(old=res)
assert res['statistics']['read'] == 0, res

if dfuse.stop():
self.fatal_errors = True
Expand Down
Loading