shunping commented on code in PR #40273:
URL: https://github.com/apache/beam/pull/40273#discussion_r4109582671


##########
sdks/java/extensions/google-cloud-platform-core/src/main/java/org/apache/beam/sdk/extensions/gcp/util/GcsUtil.java:
##########
@@ -151,6 +159,9 @@ public long fileSize(GcsPath path) throws IOException {
    */
   @Deprecated
   public StorageObject getObject(GcsPath gcsPath) throws IOException {
+    if (delegateV2 != null) {
+      return toStorageObject(delegateV2.getBlob(gcsPath));
+    }

Review Comment:
   Yes. We are in the process of deprecating the public APIs marked with the 
`@Deprecated` annotation. 
   
   As a next step, we'll be flipping the flag to make GcsUtil V2 the default, 
routing any existing public API calls to V2 under the hood. This means users 
can switch between V1 and V2 without modifying their code right now. 
   
   We plan to completely remove the deprecated APIs in a future release, so 
hopefully, this gives users plenty of time to migrate to the new API surface.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to