-
Notifications
You must be signed in to change notification settings - Fork 241
Add test suite to check the data integrity of block cache. #1894
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a comprehensive test suite to verify the data integrity of block cache functionality in Blobfuse2. The test suite includes various file operations and edge cases to ensure the block cache maintains data consistency across different scenarios.
- Tests basic file operations (create, read, write, truncate) with integrity verification
- Tests advanced scenarios like sparse writing, stripe operations, concurrent operations, and file descriptor duplication
- Tests edge cases including O_TRUNC operations, unlink-on-open behavior, and parallel flush calls
Comments suppressed due to low confidence (2)
test/scenarios/blk_cache_integrity_test.go:1003
- Function name has a typo: 'Parlrel' should be 'Parallel' to match the naming pattern of TestParallelFlushCalls.
func TestParllelFlushCallsByDuping(t *testing.T) {
test/scenarios/blk_cache_integrity_test.go:949
- Function name has a typo: 'Parlrel' should be 'Parallel'.
func TestParllelFlushCalls(t *testing.T) {
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Type of Change
Description