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

Create top span in ExecutorRun hook if needed #11

Merged
merged 1 commit into from
May 7, 2024
Merged

Conversation

bonnefoa
Copy link
Collaborator

@bonnefoa bonnefoa commented May 7, 2024

What does this PR do?

When fetching an existing cursors, the portal already exists and the query directly starts from ExecutorRun without going through planner, post_parse or ExecutorStart. Since top spans were only initialised within those 3 hooks, cursor fetch wouldn't have a matching top span.

This commit fixes the issue by creating the top span in ExecutorRun if it doesn't exist.

Fixes #10

When fetching an existing cursors, the portal already exists and the
query directly starts from ExecutorRun without going through planner,
post_parse or ExecutorStart. Since top spans were only initialised
within those 3 hooks, cursor fetch wouldn't have a matching top span.

This commit fixes the issue by creating the top span in ExecutorRun if
it doesn't exist.

Fixes #10
@bonnefoa bonnefoa merged commit ab2ed54 into main May 7, 2024
3 checks passed
@bonnefoa bonnefoa deleted the fix-cursor branch May 7, 2024 08:34
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.

Assertion failure with cursor
1 participant