[KAFKA-193] Missing required configuration "topic" which has no default value Created: 09/Feb/21  Updated: 09/Feb/21  Resolved: 09/Feb/21

Status: Closed
Project: Kafka Connector
Component/s: Sink
Affects Version/s: 1.3.0
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Nitin Kapoor Assignee: Ross Lawley
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

MongoDb and Confluent Kafka


Issue Links:
Duplicate
is duplicated by KAFKA-195 Sink don't validate topic config when... Closed

 Description   

Hi Team,

While creating a mongoSink , When I try to give a topic regex , it gives an error :

 

Missing required configuration "topic" which has no default value

individual topics are working .

This configuration is not working

name = digestSink
connector.class = com.mongodb.kafka.connect.MongoSinkConnector
tasks.max = 1
topics.regex = ^digest.*
connection.uri = mongodb://admin:xxxxxxx@192.168.0.162:27017/
database = central
delete.on.null.values = false
document.id.strategy = com.mongodb.kafka.connect.sink.processor.id.strategy.ProvidedInValueStrategy

 Any Suggestions .

Best Regards
Nitin



 Comments   
Comment by Nitin Kapoor [ 09/Feb/21 ]

Thanks Ross

Comment by Ross Lawley [ 09/Feb/21 ]

Hi officialnitinkapoor@gmail.com,

Thanks for the report, I've added KAFKA-195 to track the issue. Essentially, this is a synthetic configuration property that shouldn't be included in the validation.

It can safely be ignored.

Ross

Generated at Thu Feb 08 09:05:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.