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

Fix bug in Supervisors when pipeline is distributed #556

Merged
merged 9 commits into from
May 18, 2023

Conversation

FelonEkonom
Copy link
Member

@FelonEkonom FelonEkonom added the no-changelog This label has to be added if changes from the PR are not meant to be placed in the CHANGELOG.md label May 17, 2023
@FelonEkonom FelonEkonom force-pushed the distribution-bug-fix branch from 3e2decb to d5f84fc Compare May 17, 2023 12:23
@FelonEkonom FelonEkonom force-pushed the distribution-bug-fix branch from 6a20c35 to b62a149 Compare May 17, 2023 12:26
@FelonEkonom FelonEkonom marked this pull request as ready for review May 17, 2023 12:33
@FelonEkonom FelonEkonom requested a review from mat-hek as a code owner May 17, 2023 12:33
Comment on lines 229 to 238
try do
Process.link(pid)
rescue
e in ErlangError ->
with %ErlangError{original: :noproc} <- e do
send(self(), {:EXIT, pid, e.reason})
else
e -> reraise e, __STACKTRACE__
end
end
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
try do
Process.link(pid)
rescue
e in ErlangError ->
with %ErlangError{original: :noproc} <- e do
send(self(), {:EXIT, pid, e.reason})
else
e -> reraise e, __STACKTRACE__
end
end
Process.link(pid)

on_exit(fn -> kill_node(hostname) end)
{my_node, another_node} = start_nodes()
on_exit(fn -> kill_node(another_node) end)
[first_node: my_node, second_node: another_node]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
[first_node: my_node, second_node: another_node]
[first_node: node(self()), second_node: another_node]

def handle_init(_ctx, _opts) do
spec =
bin_input()
|> via_in(:input, toilet_capacity: 100, throttling_factor: 50)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
|> via_in(:input, toilet_capacity: 100, throttling_factor: 50)

@FelonEkonom FelonEkonom requested a review from mat-hek May 17, 2023 13:26
@FelonEkonom FelonEkonom merged commit ec655c0 into master May 18, 2023
@FelonEkonom FelonEkonom deleted the distribution-bug-fix branch May 18, 2023 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog This label has to be added if changes from the PR are not meant to be placed in the CHANGELOG.md
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants