search cancel

How to change connection timeout for Kafka assertion.

book

Article ID: 230579

calendar_today

Updated On:

Products

CA API Gateway API SECURITY CA Mobile API Gateway CA Rapid App Security STARTER PACK-7

Issue/Introduction

Dear Broadcom,

Delay occurs when the target kafka is down and the kafka assertion is executed. The reason seems to be that connection attempts are made for a long time.
Is there a way to pass asynchronously quickly when a kafka failure occurs?

Thank you.

Environment

Release : 10.0

Component : API GATEWAY

Resolution

The default timeout is 1 minute, to change it, open the Kafka Client Configuration > Producer tab > Advance Properties > add max.block.ms and set to desired value (in milliseconds).

For example, the following setting will change the timeout to 1 second,

Additional Information

For more available advanced properties of producer, please refer to,

https://kafka.apache.org/23/documentation.html#producerconfigs

Attachments