From f04945dde1fc73cb197548c78a1aea2f2b98e59d Mon Sep 17 00:00:00 2001 From: Mattie Fu Date: Fri, 11 Oct 2024 15:46:08 -0400 Subject: [PATCH] fix: skip close on bundles (#32661) --- .../org/apache/beam/sdk/io/gcp/bigtable/BigtableIO.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigtable/BigtableIO.java b/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigtable/BigtableIO.java index 389d2e43c74e..932099e01763 100644 --- a/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigtable/BigtableIO.java +++ b/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigtable/BigtableIO.java @@ -2021,10 +2021,9 @@ public void close() throws IOException { reader.close(); reader = null; } - if (serviceEntry != null) { - serviceEntry.close(); - serviceEntry = null; - } + // Skipping closing the service entry on each bundle. + // In the future we'll close the Bigtable client in + // teardown. } @Override