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

The delete function behaviour for GCSPinotFS is different from that of S3PinotFS, LocalPinotFS. #15123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

9aman
Copy link
Contributor

@9aman 9aman commented Feb 25, 2025

Issue

GCS pinot FS returns true while trying to delete a directory/ file even when the directory/ file does not exist, when the forceDelete flag is set to true.

This behavior is wrong and is different from that of S3PinotFS and LocalPinotFS, that return false in case the directory/ file is missing irrespective of the forceDelete flag value.

Fix

Align GCSPinotFS for the case when the directory or file is missing i.e. return false for delete irrespective of the forceDelete flag

Any impact on functionality of other functions of the interface ?

This function is currently used by doMove. doMove ensures the existence of the file before performing the move from source to destination. The above change in delete should not impact it.

@codecov-commenter
Copy link

codecov-commenter commented Feb 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.46%. Comparing base (59551e4) to head (eb23bfc).
Report is 1754 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #15123      +/-   ##
============================================
+ Coverage     61.75%   63.46%   +1.71%     
- Complexity      207     1480    +1273     
============================================
  Files          2436     2748     +312     
  Lines        133233   154441   +21208     
  Branches      20636    23816    +3180     
============================================
+ Hits          82274    98018   +15744     
- Misses        44911    49029    +4118     
- Partials       6048     7394    +1346     
Flag Coverage Δ
custom-integration1 100.00% <ø> (+99.99%) ⬆️
integration 100.00% <ø> (+99.99%) ⬆️
integration1 100.00% <ø> (+99.99%) ⬆️
integration2 0.00% <ø> (ø)
java-11 63.40% <ø> (+1.70%) ⬆️
java-21 63.35% <ø> (+1.72%) ⬆️
skip-bytebuffers-false 63.45% <ø> (+1.70%) ⬆️
skip-bytebuffers-true 63.30% <ø> (+35.58%) ⬆️
temurin 63.46% <ø> (+1.71%) ⬆️
unittests 63.46% <ø> (+1.71%) ⬆️
unittests1 56.07% <ø> (+9.18%) ⬆️
unittests2 34.00% <ø> (+6.27%) ⬆️

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.

…PinotFS, LocalPinotFS.

Align it for the case when the directory or file is missing i.e. return false for delete irrespective of the forceDelete flag.
@9aman 9aman force-pushed the fixing_different_behaviour_for_gcs_fs branch from 7ee7e71 to eb23bfc Compare February 25, 2025 12:18
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.

3 participants