Cannot set tKafkacreatetopic retention time to a context variable

Talend Version       6.4.1

Summary

 
Additional Versions  
Product Big Data
Component Component
Problem Description With 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 cause This 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 number TBD-5803
Version history
Revision #:
6 of 6
Last update:
‎02-14-2018 12:32 PM
Updated by:
 
Contributors