Skip to content

Fix the datagram source #1622

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

Merged
merged 1 commit into from
May 3, 2021

Conversation

dominiklohmann
Copy link
Member

@dominiklohmann dominiklohmann commented May 3, 2021

📔 Description

Every so often, we break the DATAGRAM SOURCE actor. This happens because we cannot make the behavior-returning datagram_source function returns a typed broker behavior, since that is absolutely broken in CAF 0.17.6 which we're still stuck on, and so we miss changing it when we change the interface of the SOURCE actor. But, as it turns out, we can still define the typed actor and typed broker interfaces, and simply unbox the underlying untyped behaviors before returning them.

Additionally, this aligns the interfaces again so the datagram source works once more.

📝 Checklist

  • All user-facing changes have changelog entries.
  • The changes are reflected on docs.tenzir.com/vast, if necessary.
  • The PR description contains instructions for the reviewer, if necessary.

🎯 Review Instructions

Read code. Test locally with netcat or similar.

@dominiklohmann dominiklohmann added the bug Incorrect behavior label May 3, 2021
@dominiklohmann dominiklohmann requested a review from a team May 3, 2021 09:07
@dominiklohmann dominiklohmann force-pushed the story/ch25162/unbreak-datagram-source branch from 52ece84 to fc9c8ab Compare May 3, 2021 09:10
Every so often, we break the DATAGRAM SOURCE actor. This happens because
we cannot make the behavior-returning `datagram_source` function returns
a typed broker behavior, since that is absolutely broken in CAF 0.17.6
which we're still stuck on, and so we miss changing it when we change
the interface of the SOURCE actor. But, as it turns out, we can still
define the typed actor and typed broker interfaces, and simply unbox the
underlying untyped behaviors before returning them.

Additionally, this aligns the interfaces again so the datagram source
works once more.
@dominiklohmann dominiklohmann force-pushed the story/ch25162/unbreak-datagram-source branch from fc9c8ab to c95347d Compare May 3, 2021 11:31
Copy link
Member

@lava lava left a comment

Choose a reason for hiding this comment

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

Looks good, this should solve 95% of the problem.

@dominiklohmann dominiklohmann merged commit 5607ec9 into master May 3, 2021
@dominiklohmann dominiklohmann deleted the story/ch25162/unbreak-datagram-source branch May 3, 2021 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants