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

[WIP] Introduce barrier type #1373

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

[WIP] Introduce barrier type #1373

wants to merge 5 commits into from

Conversation

rsmmr
Copy link
Member

@rsmmr rsmmr commented Feb 10, 2023

The new barrier types provides a synchronization point for multiple parsing streams, such as the two sides of a connection. It comes with an expected number N of parties to reach the synchronization point. Each party must call arrive() to signal it has done so. Each party may call wait() to block until all parties have arrived.

This remains experimental for now, feedback welcome. The Zeek plugin still needs to be adapted for this.

This will close #1328.

This is just the main type scaffolding, most of the actually barrier
functionality (i.e., the methods) isn't implemented yet.
We test it by sending bi-directional batch input into spicy-driver,
which we then parse with two units synchronizing on a joint barrier.

To make this work, `spicy-driver` learns to attempt resuming parsing
on the opposite side of a connection if that one currently blocked at
a barrier, in case the current data released that barrier.

The Zeek plugin will receive a similar change as `spicy-driver`.
@rsmmr rsmmr changed the title Introduce barrier type [WIP] Introduce barrier type May 8, 2023
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.

Provide a mechanism to synchronize two parse streams
1 participant