And @rick it is ruinning fine but i am expecting the task will be distributed across all the 3 workers.
$ curl localhost:8085/connectors/mongo-sink-distributed2/status |jq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 852 100 852 0 0 3527 0 --:--:-- --:--:-- --:--:-- 3550
{
"name": "mongo-sink-distributed2",
"connector": {
"state": "RUNNING",
"worker_id": "null:-1"
},
"tasks": [
{
"id": 0,
"state": "RUNNING",
"worker_id": "null:-1"
},
{
"id": 1,
"state": "RUNNING",
"worker_id": "null:-1"
},
{
"id": 2,
"state": "RUNNING",
"worker_id": "null:-1"
},
{
"id": 3,
"state": "RUNNING",
"worker_id": "null:-1"
},
{
"id": 4,
"state": "RUNNING",
"worker_id": "null:-1"
},
{
"id": 5,
"state": "RUNNING",
"worker_id": "null:-1"
},
{
"id": 6,
"state": "RUNNING",
"worker_id": "null:-1"
},
{
"id": 7,
"state": "RUNNING",
"worker_id": "null:-1"
},
{
"id": 8,
"state": "RUNNING",
"worker_id": "null:-1"
},
{
"id": 9,
"state": "RUNNING",
"worker_id": "null:-1"
},
{
"id": 10,
"state": "RUNNING",
"worker_id": "null:-1"
},
{
"id": 11,
"state": "RUNNING",
"worker_id": "null:-1"
},
{
"id": 12,
"state": "RUNNING",
"worker_id": "null:-1"
},
{
"id": 13,
"state": "RUNNING",
"worker_id": "null:-1"
},
{
"id": 14,
"state": "RUNNING",
"worker_id": "null:-1"
}
],
"type": "sink"
}
You see above worker_id is null.