Skip to content

Commit

Permalink
Upgrade GCP BOM to 26.49.0
Browse files Browse the repository at this point in the history
  • Loading branch information
loicmathieu committed Oct 25, 2024
1 parent 8baf364 commit 79747f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<google-cloud-sdk.version>26.45.0</google-cloud-sdk.version>
<google-cloud-sdk.version>26.49.0</google-cloud-sdk.version>

<!-- Dependency convergence issues -->
<opencensus.version>0.31.1</opencensus.version><!-- mess in google-pubsub and grpc deps; should be rather stable as OpenCensus has been sunsetted already - see https://github.com/GoogleCloudPlatform/cloud-opensource-java/issues/862 -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.io.IOException;

import com.google.cloud.bigtable.data.v2.internal.TableAdminRequestContext;
import jakarta.annotation.PostConstruct;
import jakarta.annotation.PreDestroy;
import jakarta.inject.Inject;
Expand Down Expand Up @@ -63,7 +64,9 @@ void initBigtable() throws IOException {
.newBuilder()
.setTransportChannelProvider(channelProvider)
.setCredentialsProvider(credentialsProvider)
.build());
.build(),
TableAdminRequestContext.create(projectId, INSTANCE_ID)
);

try (BigtableTableAdminClient adminClient = BigtableTableAdminClient.create(projectId, INSTANCE_ID, stub)) {
if (!adminClient.exists(TABLE_ID)) {
Expand Down

0 comments on commit 79747f9

Please sign in to comment.