FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chore: remove WriteFlusher instead having dedicated WritableByteChannels by BenWhitehead · Pull Request #2514 · googleapis/java-storage · GitHub

chore: remove WriteFlusher instead having dedicated WritableByteChannels - #2514

Merged
BenWhitehead merged 7 commits into
mainfrom
de-abstract-writeObject
May 3, 2024
Merged

chore: remove WriteFlusher instead having dedicated WritableByteChannels#2514
BenWhitehead merged 7 commits into
mainfrom
de-abstract-writeObject

Conversation

Copy link
Copy Markdown
Collaborator

WriteFlusher has grown unwieldy to be able to properly handle the kinds of uploads that are performed while being able to perform appropriate fine grained response validation.

This is the first change in a series to remove WriteFlusher and create purpose dedicated UnbufferedWritableByteChannels for the different kinds of uploads we perform. By having dedicated channels more fine grained response validation and request packing can be performed.

I left multiple commits in this PR for the time being. They are generally:

  1. Introduce GapicUnbufferedDirectWritableByteChannel used for direct/single-shot uploads
  2. Introduce GapicUnbufferedChunkedResumableWritableByteChannel used for chunked resumable uploads
  3. Introduce GapicUnbufferedFinalizeOnCloseResumableWritableByteChannel used for for resumable uploads from files on disk
  4. Refactor GapicBidiUnbufferedWritableByteChannel
  5. Cleanup and removal of the majority of WriteFlushStrategy.java and its corresponding tests now that the functionality is distributed in each of the dedicated channel implementations

…lusher abstraction

WriteFlusher has grown unwieldy to be able to properly handle the kinds of uploads that are performed while being able to perform appropriate finegrained response validation.

This is the first change in a series to tease WriteFlusher apart and create an UnbufferedWritableByteChannel for each kind of upload where all logic for that upload can be encapsulated.
Make dedicated WritableByteChannel to handle chunked resumable uploads.
Make dedicated WritableByteChannel to handle streamed resumable uploads.
BenWhitehead added the owlbot:ignore instruct owl-bot to ignore a PR label Apr 24, 2024
BenWhitehead requested a review from a team April 24, 2024 19:21
product-auto-label Bot added size: xl Pull request size is extra large. api: storage Issues related to the googleapis/java-storage API. labels Apr 24, 2024
BenWhitehead requested a review from a team April 24, 2024 19:31

JesseLovelace left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM, thanks!

This file contains hidden or 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the googleapis/java-storage API. owlbot:ignore instruct owl-bot to ignore a PR size: xl Pull request size is extra large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL