You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Radosław Stankiewicz (Jira)" <ji...@apache.org> on 2024/10/28 17:05:00 UTC
[jira] [Created] (FLINK-36616) Null pointer in PubSub's GcpPublisherConfig
Radosław Stankiewicz created FLINK-36616:
--------------------------------------------
Summary: Null pointer in PubSub's GcpPublisherConfig
Key: FLINK-36616
URL: https://issues.apache.org/jira/browse/FLINK-36616
Project: Flink
Issue Type: Bug
Components: Connectors / Google Cloud PubSub
Reporter: Radosław Stankiewicz
With current implementation PubSubSinkV2 throws NPE due to transportChannelProvider being null.
context: transportChannelProvider is mostly used for testing.
steps to reproduce:
1/ GcpPublisherConfig gcpPublisherConfig =
GcpPublisherConfig.{_}builder{_}()
.setCredentialsProvider(new SerializableCredentialsProvider())
.build();
builder.setProjectId("test-project-id")
.setTopicId("test-topic-id")
.setGcpPublisherConfig(gcpPublisherConfig)
.setSerializationSchema(serializationSchema)
.setNumMaxInflightRequests(10)
.setFailOnError(true);
PubSubSinkV2<String> sink = builder.build();
2/ run
--
This message was sent by Atlassian Jira
(v8.20.10#820010)