fix(connectors): don't use posix function names as FFI interface#2771
Merged
Conversation
Contributor
|
rename title to |
Contributor
Author
|
Is the connector SDK used by external connectors in |
Contributor
|
AFAIR these are part of e.g. Flink ecosystem, not our connectors runtime. |
Contributor
|
These external connectors are just using the Iggy Java SDK client (TCP protocol). In principle, these should be in flink repository, not ours. |
mmodzelewski
approved these changes
Feb 18, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2771 +/- ##
============================================
- Coverage 68.34% 67.91% -0.43%
+ Complexity 656 585 -71
============================================
Files 741 741
Lines 62165 62165
Branches 58578 58578
============================================
- Hits 42484 42217 -267
- Misses 17571 17860 +289
+ Partials 2110 2088 -22
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
hubcio
approved these changes
Feb 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2770
Rationale
The sink_connector! and source_connector! macros export a generic open symbol, which collides with POSIX open() in a cdylib. As a result, calls to open() resolve to the plugin’s FFI function instead of libc, causing argument misinterpretation and a segfault.
What changed?
Renamed the exported FFI symbols to avoid collision with libc/POSIX names:
open → iggy_sink_open / iggy_source_open
close → iggy_sink_close / iggy_source_close
consume → iggy_sink_consume
handle → iggy_source_handle
version → iggy_sink_version / iggy_source_version
Local Execution
AI Usage
If AI tools were used, please answer: