Skip to content

Block MemorySplitManager until dynamic filters are delivered#14329

Merged
arhimondr merged 1 commit intotrinodb:masterfrom
arhimondr:memory-connector-lazy-dynamic-filter
Sep 29, 2022
Merged

Block MemorySplitManager until dynamic filters are delivered#14329
arhimondr merged 1 commit intotrinodb:masterfrom
arhimondr:memory-connector-lazy-dynamic-filter

Conversation

@arhimondr
Copy link
Copy Markdown
Contributor

Description

Otherwise the execution will be blocked at the TableScan level.

In fault tolerant execution we are considering split availability as a signal that a stage is ready for execution. If splits are enumerated before dynamic filters are available the stage might get blocked indefinitely at TableScan as there might not be enough slots to schedule tasks that collect necessary dynamic filters.

Non-technical explanation

N/A

Release notes

(X) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
( ) Release notes are required, with the following suggested text:

# Section
* Fix some things. ({issue}`issuenumber`)

@arhimondr
Copy link
Copy Markdown
Contributor Author

@raunaqmorarka @sopel39 Not sure if that the best way to provide this signal though. Maybe we should think of a better way (take into account consumed / produced dynamic filters). It may require more thoughts. This PR doesn't impact real deployments as usually there's a timeout on how long does a connector wait for dynamic filter. This change is more about making sure the tests are not timing out sporadically.

Copy link
Copy Markdown
Member

@losipiuk losipiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me - as it solves testing problem.
But I would love to hear what @raunaqmorarka has to say about this.

Otherwise the execution will be blocked at the TableScan level
@arhimondr arhimondr force-pushed the memory-connector-lazy-dynamic-filter branch from 6fe0a42 to 467e4ad Compare September 28, 2022 15:39
@arhimondr arhimondr merged commit 0ac63b0 into trinodb:master Sep 29, 2022
@arhimondr arhimondr deleted the memory-connector-lazy-dynamic-filter branch September 29, 2022 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants