Environment details
- Specify the API at the beginning of the title. For example, "BigQuery: ..."). PubSub
General, Core, and Other are also allowed as types
- OS type and version: Mac
- Java version: 1.8
- pubsub version(s): 1.108.0
Steps to reproduce
- Set partial flowcontrol to start the subscription i.e only provide MaxOutstandingElementCount
Code example
Subscriber.newBuilder(subscriptionName, messageReceiver)
.setFlowControlSettings(
FlowControlSettings.newBuilder()
.setMaxOutstandingElementCount(getMaxOutstandingElementCount(subscription))
.build())
.build();
Stack trace
Caused by: java.lang.NullPointerException: null
at com.google.cloud.pubsub.v1.StreamingSubscriberConnection.initialize(StreamingSubscriberConnection.java:220)
at com.google.cloud.pubsub.v1.StreamingSubscriberConnection.doStart(StreamingSubscriberConnection.java:128)
at com.google.api.core.AbstractApiService$InnerService.doStart(AbstractApiService.java:148)
at com.google.common.util.concurrent.AbstractService.startAsync(AbstractService.java:248)
at com.google.api.core.AbstractApiService.startAsync(AbstractApiService.java:120)
at com.google.cloud.pubsub.v1.Subscriber.startConnections(Subscriber.java:380)
same configuration is working with pubsub v1.103.1 with v1.108.0 is not working because the default value is not set for maxOutstandingRequestByte which result in nullpointer
Environment details
General, Core, and Other are also allowed as types
Steps to reproduce
Code example
Stack trace
same configuration is working with pubsub
v1.103.1withv1.108.0is not working because the default value is not set for maxOutstandingRequestByte which result in nullpointer