When attempting to instantiate a Network Function (NF) in VMware Telco Cloud Automation (TCA), the process fails with the following symptoms:
org.apache.kafka.common.errors.RecordTooLargeException: The message is 2582931 bytes consumed by the partition [topic-name] and it may not exceed 2097152 bytes.TCA 3.2
TCP 5.0
This issue is caused by a Kafka message size limitation. By default, Kafka is configured with a max.request.size of 2,097,152 bytes (2MB).
During NF instantiation, the workflow generates a serialized job data payload. If this payload (often containing large configuration files, logs, or status updates) exceeds 2MB, Kafka rejects the message. This prevents the TCA Control Plane (TCA-CP) from synchronizing the job state with the TCA Manager (TCA-M), leading to the "No resources found" state.
To resolve this issue, you must purge the stuck Kafka topics and ensure workflow outputs are optimized.
Note: Please make sure snapshot is taken before applying these changes so that we can goto the previously configured state later if required.
kubectl patch app tca -n tca-cp-cn --type='merge' -p '{"spec": {"paused": true}}'kubectl exec -ti edge-kafka-0 -n tca-cp-cn -- bashdu -sh /var/lib/kafka/data/*5.3G /var/lib/kafka/data/kafka-log0cd /opt/kafka/binfor t in $(./kafka-topics.sh --bootstrap-server localhost:9092 --list); do ./kafka-configs.sh --bootstrap-server localhost:9092 --alter --entity-type topics --entity-name $t --add-config retention.ms=0;done du -sh /var/lib/kafka/data/*82M /var/lib/kafka/data/kafka-log0for t in $(./kafka-topics.sh --bootstrap-server localhost:9092 --list); do ./kafka-configs.sh --bootstrap-server localhost:9092 --alter --entity-type topics --entity-name $t --delete-config retention.ms; done
kubectl patch app tca -n tca-cp-cn --type='merge' -p '{"spec": {"paused": false}}'