googleapis / googleapis/google-cloud-java
[java-storage] allow cancelling a resumable upload
- 主要语言
- Java
- 星标
- 2.1k
- 派生
- 1.2k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 157
描述
Thanks for stopping by to let us know something could be better!
**Is your feature request related to a problem? Please describe.**
The underlying resumable upload API allows [canceling an upload](https://cloud.google.com/storage/docs/performing-resumable-uploads#cancel-upload). However, the `WriteChannel` returned by the `Storage.writer` methods has no way to cancel the upload.
**Describe the solution you'd like**
Add an API like `cancel` to the object returned from `Storage.write`.
**Describe alternatives you've considered**
n/a
**Additional context**
Any other context or screenshots about the feature request.
贡献指南
调研方向
Start with the Storage.writer methods and the WriteChannel API named in the issue, then trace their resumable upload implementation. Done means the returned channel can cancel the underlying upload, with tests covering the new cancellation behavior.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- google-cloud, java
- 领域
- api, cloud
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100