I have many Debezium/connect JDBC Source connectors (with tasks.max=5) for Oracle DB.
Even though tasks.max=5, it creates only 1 task for one connector. But for other connectors, it creates the mentioned tasks.max =5 tasks. But for this particular connector it creates only 1 task instead of 5. No difference in configurations, but this particular connector is publishing large batches of records to the topic. Below is the connector config.
curl -iX POST -H "Accept:application/json" -H "Content-Type:application/json" https://xxxxxxxxxx/connectors -d '{"name": "my_source_connector",
"config": {
"connector.class": "io.confluent.connect.jdbc.JdbcSourceConnector",
"tasks.max": "5",
"connection.url": "jdbc:oracle:thin:@",
"connection.user": "USER_ID",
"connection.password": "MyPassowrd001",
"mode": "timestamp+incrementing",
"incrementing.column.name": "ID",
"timestamp.column.name": "LAST_UPDATED_TS",
"topic.prefix": "",
"batch.max.rows": "50",
"timestamp.delay.interval.ms": "240000",
"table.whitelist": "TABLE001",
"numeric.mapping": "best_fit"
}}' -k
If you have any input to get this resolved, it'll be a great time savor for me.
Debezium base image is debezium/connect:1.7 and Kafka version is 2.8.1
As expected, 5 tasks should be created but only 1 is created. Finding why all 5 not created.