-
-
Notifications
You must be signed in to change notification settings - Fork 598
Migrate Kafka transporter from kafkajs to @platformatic/kafka #1336
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
base: next
Are you sure you want to change the base?
Conversation
Co-authored-by: icebob <[email protected]>
Co-authored-by: icebob <[email protected]>
commit: |
Pull Request Test Coverage Report for Build 18742770028Details
💛 - Coveralls |
|
@copilot Fix the E2E errors: |
Co-authored-by: icebob <[email protected]>
... Fixed in commit c8c4e3f. The issue was that |
|
@copilot Fix the following E2E error: |
Co-authored-by: icebob <[email protected]>
... Fixed in commit 57a2e9d. The error occurs when topics already exist from a previous run. Now the code catches |
Co-authored-by: AndreMaz <[email protected]>
... Implemented in commit 9f1e6d7. Now using |
|
@copilot E2E error: |
Co-authored-by: icebob <[email protected]>
... Fixed in commit aeb4d5f. The error occurred because the Producer didn't have metadata for topics created via the Admin client. Enabled |
This error seems to be related to: platformatic/kafka#109 |
@copilot Check the related issue, and fix the E2E error. |
Co-authored-by: icebob <[email protected]>
... Fixed in commit 7d8a2e1. After investigating the issue, the problem occurs when topics are created via the Admin client but the Producer doesn't immediately have their metadata. Added explicit metadata refresh call ( Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot update @platformatic/kafka to 1.18.0 that contains fix for the platformatic/kafka#109 that I've mentioned here: #1336 (comment) After that trigger the CI again current version in the PR - "@platformatic/kafka": "^1.17.0", |
Co-authored-by: AndreMaz <[email protected]>
Updated to @platformatic/kafka 1.18.0 in commit f3c2d7e. This version includes the fix for the metadata handling issue referenced in platformatic/kafka#109. All unit tests pass successfully. |
Migration from kafkajs to @platformatic/kafka - COMPLETE ✅
Summary of Changes
The Kafka transporter has been successfully migrated from the unmaintained
kafkajspackage to the actively maintained@platformatic/kafkapackage. Key changes include:client.brokersto flatbootstrapBrokersstructurelistTopics()to check existing topics and only create missing ones (prevents errors)autocreateTopicsfor Producer to automatically handle topic metadata fetchingAll unit tests pass successfully (121 test suites, 2160 tests) and the code follows the project's linting standards.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.