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

[#6279] feat (gvfs-fuse): Add gvfs-fuse integration tests for big files and open-file flag test cases #6280

Open
wants to merge 27 commits into
base: main
Choose a base branch
from

Conversation

diqiu50
Copy link
Contributor

@diqiu50 diqiu50 commented Jan 16, 2025

What changes were proposed in this pull request?

Add gvfs-fuse integration tests for big files and open-file flag test cases

Why are the changes needed?

Fix: #6279

Does this PR introduce any user-facing change?

No

How was this patch tested?

IT

@diqiu50 diqiu50 self-assigned this Jan 17, 2025
@jerryshao jerryshao requested a review from FANNG1 January 22, 2025 11:21
if self.buffer.len() > OpenDalFileSystem::WRITE_BUFFER_SIZE {
let mut new_buffer: Vec<u8> =
Vec::with_capacity(OpenDalFileSystem::WRITE_BUFFER_SIZE + 4096);
new_buffer.append(&mut self.buffer);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You didn't clear the buffer after writing to the underlying fs, is that expected?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the self.buffer is cleared after the append operation.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you point out where did you clear the buffer?

Ok(data.len() as u32)
}

async fn close(&mut self) -> Result<()> {
if !self.buffer.is_empty() {
let mut new_buffer: Vec<u8> = vec![];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

buffer not cleared too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Subtask] Add gvfs-fuse integration tests for big files and open-file flag test cases
2 participants