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

Testing sync and bypassCache for WriteStream and ReadStream #4

Open
0xnullifier opened this issue Dec 15, 2024 · 0 comments
Open

Testing sync and bypassCache for WriteStream and ReadStream #4

0xnullifier opened this issue Dec 15, 2024 · 0 comments
Labels
enhancement New feature or request medium Oh you have some experience with programming huh! Come on solve this then

Comments

@0xnullifier
Copy link
Collaborator

Testing sync and bypass.Cache flags for 'WriteStream' and 'ReadStream' should validate these critical behaviors:

Confirm WriteStream with sync=true ensures that data is instantly stored to disk (use direct disk reads to test), whereas sync=false may postpone the writing by some mechanism say simulating a heavy filesystem task in a go routine.

Second, ensure that ReadStream with bypassCache=true always reads from disk, even if data is cached (check by updating the underlying file and validating ReadStream provides the updated data), whereas bypassCache=false should return cached data if available.

@0xnullifier 0xnullifier mentioned this issue Dec 15, 2024
@0xnullifier 0xnullifier added enhancement New feature or request medium Oh you have some experience with programming huh! Come on solve this then labels Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request medium Oh you have some experience with programming huh! Come on solve this then
Projects
None yet
Development

No branches or pull requests

1 participant