You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "shunping (via GitHub)" <gi...@apache.org> on 2026/09/23 17:03:30 UTC
[PR] Fill the final gaps between GcsUtilV2 and GcsUtilV1 [beam]
shunping opened a new pull request, #40244:
URL: https://github.com/apache/beam/pull/40244
**This is the final stage of the GCS client library migration.**
`GcsUtilV2` is the `java-storage` backed replacement for the `gcsio` based `GcsUtilV1`, selected with the `use_gcsutil_v2` experiment. There were some behavior gaps between the two. This PR closes those gaps, and fixes a bug that made the experiment a no-op on Dataflow.
Parity gaps closed:
| Gap | Before | Now |
| :--- | :--- | :--- |
| Client configuration | Application default credentials; `--gcsEndpoint` ignored | Pipeline credentials are passed through (`null` → `NoCredentials`), `--gcsEndpoint` applied as the client host |
| Metrics | `open()` / `create()` returned raw channels, so every GCS metric was dropped | Channels wrapped in `Counting{Seekable,Writable}ByteChannel`, plus a `ServiceCallMetric` for `GcsGet` / `GcsInsert` |
| HTTP transport counters | Not reported | Request count, request shape and status classes, gated on `--gcsPerformanceMetrics` |
| Facade routing | Only the `GcsPath`-typed methods reached V2, so match, list, copy, rename, delete and bucket creation stayed on V1 | The `String`-typed and legacy-model methods have V2 branches too, converting `Blob` / `BucketInfo` back to the JSON API model so callers need no change |
| Upload chunk size | java-storage default, so the same workload cost a different number of requests | Mirrors gcsio's `AsyncWriteChannelOptions` default |
| Leaked channel | `create()` opened a V2 channel, discarded it, then opened a second on V1 | Returns the V2 channel |
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fill the final gaps between GcsUtilV2 and GcsUtilV1 [beam]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #40244:
URL: https://github.com/apache/beam/pull/40244#issuecomment-5801851497
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment `assign set of reviewers`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fill the final gaps between GcsUtilV2 and GcsUtilV1 [beam]
Posted by "shunping (via GitHub)" <gi...@apache.org>.
shunping commented on PR #40244:
URL: https://github.com/apache/beam/pull/40244#issuecomment-5801839968
r: @derrickaw
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fill gaps between GcsUtilV2 and GcsUtilV1 [beam]
Posted by "shunping (via GitHub)" <gi...@apache.org>.
shunping merged PR #40244:
URL: https://github.com/apache/beam/pull/40244
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fill gaps between GcsUtilV2 and GcsUtilV1 [beam]
Posted by "shunping (via GitHub)" <gi...@apache.org>.
shunping commented on PR #40244:
URL: https://github.com/apache/beam/pull/40244#issuecomment-5820679948
> Should we have more tests to cover client configuration, metrics, and leaked channel?
Added tests for client configuration and metrics. The leaked channel one is a bug and it is trivial to test.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org