-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not create empty .vac files in metadata consolidation (#5453)
When we are trying to consolidate array or group metadata but there are no array or group metadata present, we are creating an empty `.vac` file on local filesystems. In object stores, notably on S3 that I have tested, our `write` method currently doesn't create a file when size is `0` (this is most probably another issue to fix), so we don't observe the same behavior. This PR unifies the behavior by enforcing that we don't create a `.vac` file if no consolidation is possible, aka if there are 0 or 1 array/group metadata present. We already do such a check for fragment metadata, fragments and commit consolidation. Both tests in this PR were failing without the fix and are now passing. --- TYPE: BUG DESC: Do not create empty .vac files in metadata consolidation
- Loading branch information
Showing
4 changed files
with
71 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters