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

Fix space check on TMFS #7424

Conversation

tangledbytes
Copy link
Member

@tangledbytes tangledbytes commented Aug 2, 2023

Explain the changes

This PR adds a custom free space checker to fix TMFS disk space issue. The implementation relies on using the data from df instead of internal calculated IO.

Potential issues:

  1. df data unavailable - falls back to base class implementation, so should be "safe"
  2. Stale df data - in worse case scenario this might lead to a partial write problem.

Testing Instructions:

  1. Full blown ceph test should be good enough to ensure no regression.
  • Doc added/updated
  • Tests added

@tangledbytes tangledbytes force-pushed the utkarsh-pro/fix/write-space-exceed-tmfs branch 3 times, most recently from dcfabb0 to 9bd21d0 Compare August 2, 2023 13:27
@tangledbytes tangledbytes marked this pull request as ready for review August 2, 2023 16:32
@tangledbytes tangledbytes force-pushed the utkarsh-pro/fix/write-space-exceed-tmfs branch from 9bd21d0 to 39974ff Compare August 2, 2023 16:32
@tangledbytes tangledbytes force-pushed the utkarsh-pro/fix/write-space-exceed-tmfs branch from 39974ff to d1c64e8 Compare August 3, 2023 08:13
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>

add a harmless comment

Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>

remove null check, rely on the catch block

Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>

add configurable df data caching

Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
@tangledbytes tangledbytes force-pushed the utkarsh-pro/fix/write-space-exceed-tmfs branch from d1c64e8 to 768d0ed Compare August 3, 2023 11:01
@tangledbytes tangledbytes merged commit 0db21bb into noobaa:master Aug 3, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants