Skip to content

ChannelRefreshing feature is incompatible with BigtableDataClientFactory #458

@igorbernstein2

Description

@igorbernstein2

Repro:

    BigtableDataSettings settings = BigtableDataSettings.newBuilder()
        .setProjectId(PROJECT_ID)
        .setInstanceId(INSTANCE_ID)
        .setRefreshingChannel(true)
        .build();

    BigtableDataClientFactory f = BigtableDataClientFactory
        .create(settings);

    f.createDefault();
Exception in thread "main" java.lang.IllegalArgumentException: refreshingChannel only works with InstantiatingGrpcChannelProviders
	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:142)
	at com.google.cloud.bigtable.data.v2.stub.EnhancedBigtableStubSettings$Builder.build(EnhancedBigtableStubSettings.java:791)
	at com.google.cloud.bigtable.data.v2.BigtableDataSettings.<init>(BigtableDataSettings.java:71)
	at com.google.cloud.bigtable.data.v2.BigtableDataSettings.<init>(BigtableDataSettings.java:63)
	at com.google.cloud.bigtable.data.v2.BigtableDataSettings$Builder.build(BigtableDataSettings.java:363)
	at com.google.cloud.bigtable.data.v2.BigtableDataClientFactory.createDefault(BigtableDataClientFactory.java:115)

Metadata

Metadata

Assignees

Labels

api: bigtableIssues related to the googleapis/java-bigtable API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions