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

Don't overwrite existing UDFs on local filesystem #784

Merged
merged 1 commit into from
Nov 12, 2024
Merged

Conversation

mwylde
Copy link
Member

@mwylde mwylde commented Nov 7, 2024

On startup the worker will download all UDF dylibs needed for the pipeline, then write them to a shared directory (/tmp/arroyo/local_udfs/{name}_{hash}.so) where it can be loaded. When using the process scheduler, this means that if two pipelines are using the same UDF, when the second one starts up it will overwrite the dylib that's already being used by the first.

For reasons that are not clear to me, it appears that certain UDFs can segfault when their shared library is replaced. This PR addresses that issue by not overwriting the UDF if it already exists (note that any changes to the UDF will give it a different hash, so it will still be written).

@mwylde mwylde merged commit bd3acb3 into master Nov 12, 2024
14 checks passed
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

Successfully merging this pull request may close these issues.

1 participant