Skip to content

Conversation

@tjgq
Copy link
Contributor

@tjgq tjgq commented Nov 27, 2025

By repurposing AbstractFileSystem as DiskBackedFileSystem, to be extended only by disk-backed subclasses. This encourages other subclasses to make an explicit decision on how to open files instead of inheriting a potentially incorrect implementation.

As a bonus, we can also dispense with the duplicate profiling logic in UnixFileSystem.

PiperOrigin-RevId: 837473162
Change-Id: I970d0a9711ecc583b1ecae650703d14d4a5db2a4

Commit 3673564

@tjgq tjgq requested a review from a team as a code owner November 27, 2025 15:52
@github-actions github-actions bot added team-Remote-Exec Issues and PRs for the Execution (Remote) team awaiting-review PR is awaiting review from an assigned reviewer labels Nov 27, 2025
@iancha1992 iancha1992 changed the title Improve the FileSystem inheritance hierarchy. [9.0.0] Improve the FileSystem inheritance hierarchy. Dec 1, 2025
@iancha1992 iancha1992 added this to the 9.0.0 release blockers milestone Dec 1, 2025
@iancha1992 iancha1992 enabled auto-merge December 2, 2025 00:50
@iancha1992
Copy link
Member

@tjgq Could you please take a look at the presubmit errors? Thanks

@tjgq tjgq force-pushed the 9.0.0-fs-hierarchy branch from 2a8071b to 03093c8 Compare December 4, 2025 14:10
By repurposing AbstractFileSystem as DiskBackedFileSystem, to be extended only by disk-backed subclasses. This encourages other subclasses to make an explicit decision on how to open files instead of inheriting a potentially incorrect implementation.

As a bonus, we can also dispense with the duplicate profiling logic in UnixFileSystem.

PiperOrigin-RevId: 837473162
Change-Id: I970d0a9711ecc583b1ecae650703d14d4a5db2a4
@tjgq tjgq force-pushed the 9.0.0-fs-hierarchy branch from 03093c8 to 6815d93 Compare December 4, 2025 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review PR is awaiting review from an assigned reviewer team-Remote-Exec Issues and PRs for the Execution (Remote) team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants