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

Setting bwh to nil after all fileHandles are closed #2823

Merged
merged 10 commits into from
Dec 24, 2024
Merged

Conversation

vadlakondaswetha
Copy link
Collaborator

Description

Setting bwh to nil after all fileHandles are closed in case of error.
Follow up PR will be raised to clear the buffers

Link to the issue in case of a bug fix.

NA

Testing details

  1. Manual - NA
  2. Unit tests - NA
  3. Integration tests - NA

Copy link

codecov bot commented Dec 23, 2024

Codecov Report

Attention: Patch coverage is 92.10526% with 3 lines in your changes missing coverage. Please review.

Project coverage is 75.88%. Comparing base (ff4417a) to head (17066b2).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
internal/fs/inode/file.go 85.71% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2823      +/-   ##
==========================================
- Coverage   75.94%   75.88%   -0.06%     
==========================================
  Files         118      118              
  Lines       16320    16409      +89     
==========================================
+ Hits        12394    12452      +58     
- Misses       3409     3431      +22     
- Partials      517      526       +9     
Flag Coverage Δ
unittests 75.88% <92.10%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@ashmeenkaur ashmeenkaur left a comment

Choose a reason for hiding this comment

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

1 NIT comment, LGTM otherwise - assuming we will clean up the buffers in follow up PR.

internal/fs/handle/file.go Outdated Show resolved Hide resolved
@vadlakondaswetha vadlakondaswetha merged commit 88ff04c into master Dec 24, 2024
12 checks passed
ankitaluthra1 pushed a commit that referenced this pull request Dec 24, 2024
* fixing conflicts

* fixing nil assert

# Conflicts:
#	internal/fs/inode/file_test.go

* not nil fix

* storing fileHandle open semantics

* Added unit tests for fileInode

* Registering and deregistering.

* ADDED COMMENTS

* fixing panic

* fixing tests

* PR comment
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.

2 participants