Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us at Qlik Connect 2026 in Orlando, April 13–15: Register Here!

Cannot set tKafkacreatetopic retention time to a context variable

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
TalendSolutionExpert
Contributor II
Contributor II

Cannot set tKafkacreatetopic retention time to a context variable

Last Update:

Feb 9, 2024 2:06:24 PM

Updated By:

Jamie_Gregory

Created date:

Apr 1, 2021 6:15:15 AM

Talend Version      6.4.1

Summary

 
Additional Versions 
ProductBig Data
ComponentComponent
Problem DescriptionWith the tKafkaCreateTopic component, the set topic retention time (ms) field allows you to provide a retention time value.

 

If a context variable is provided for the retention time value, at code generation, the string name of the context variable will be used instead of its value. For instance, if the context variable named context.retention is provided, the generated code is:

tKafkaCreateTopic_1_topicProperties.put("retention.ms", "context.retention");

but it should be:

tKafkaCreateTopic_1_topicProperties.put("retention.ms", context.retention);

As a result, an error is thrown when executing the Job.

Problem root causeThis code generation issue is due to Jira TBD-5803.
Solution or Workaround

The problem is fixed with Talend 6.4.2, 6.5.1.

If this problem occurs against Talend version 6.4.1, please contact Talend Support.

JIRA ticket numberTBD-5803
Version history
Last update:
‎2024-02-09 02:06 PM
Updated by: