Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect taskConfigs appears to choke on large config #11

Closed
slominskir opened this issue May 18, 2022 · 2 comments
Closed

Connect taskConfigs appears to choke on large config #11

slominskir opened this issue May 18, 2022 · 2 comments

Comments

@slominskir
Copy link
Member

slominskir commented May 18, 2022

If I try to add a large set of channels (25,500) the Connector will run (status RUNNING), but the tasks array will be empty (no task will be started). I'm not seeing any errors in the log file either. The workaround is to use a patch code branch config-from-file that writes/reads the configuration from a file. Using a smaller config works too.

See:
https://stackoverflow.com/questions/72296071/kafka-connect-tasks-empty-with-large-config

@slominskir
Copy link
Member Author

slominskir commented May 19, 2022

I've added a Docker compose file that reproduces the issue. Launch with:

git clone https://github.com/JeffersonLab/epics2kafka
cd epics2kafka
docker compose -f test-large.yml up

Observe the DEBUG task start() is never called. Check the Connect status in another terminal to observe empty task array:

docker exec connect bash -c "/scripts/show-status.sh"
{
  "name": "ca-source",
  "connector": {
    "state": "RUNNING",
    "worker_id": "172.18.0.5:8083"
  },
  "tasks": [],
  "type": "source"
}

@slominskir
Copy link
Member Author

slominskir commented May 23, 2022

Must add max.request.size=5242880 to connect-distributed.properties and max.message.bytes=5242880 to topic configuration of topic connect-configs.

See: Kafka Users Discussion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant