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

Backport to 2.18.x: #7711: Load hypercore handler eagerly #7717

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

timescale-automation
Copy link
Member

This is an automated backport of #7711: Load hypercore handler eagerly.
The original issue is #7702.
This PR will be merged automatically after all the relevant CI checks pass. If this fix should not be backported, or will be backported manually, just close this PR. You can use the backport branch to add your changes, it won't be modified automatically anymore.

For more details, please see the documentation

Original description

Load hypercore handler eagerly

If a crossmodule wrapper function is called as part of a query on a fresh backend, it will generate a license error even if the license is set correctly. This happens because the module load happens very late (in post_parse_analyze_hook) but the function call is quite early.

This is fixed by eagerly loading the TSL module in the hypercore handler function and hypercore index proxy handler function.

If a crossmodule wrapper function is called as part of a query on a
fresh backend, it will generate a license error even if the license is
set correctly. This happens because the module load happens very late
(in `post_parse_analyze_hook`) but the function call is quite early.

This is fixed by eagerly loading the TSL module in the hypercore
handler function and hypercore index proxy handler function.

(cherry picked from commit 63ccf6a)
@timescale-automation timescale-automation merged commit b5ace10 into 2.18.x Feb 18, 2025
40 of 41 checks passed
@timescale-automation timescale-automation deleted the backport/2.18.x/7711 branch February 18, 2025 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is-auto-backport PR created by backport automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants