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

distributed application weird behaviour #5083

Open
crownedgrouse opened this issue Jul 31, 2021 · 0 comments
Open

distributed application weird behaviour #5083

crownedgrouse opened this issue Jul 31, 2021 · 0 comments
Labels
bug Issue is reported as a bug priority:low team:VM Assigned to OTP team VM

Comments

@crownedgrouse
Copy link
Contributor

crownedgrouse commented Jul 31, 2021

Describe the bug
When a node y@b is listed in distributed option for a kernel application distribution and not belonging to at least sync_nodes_optional, main node x@a is waiting forever (infinity timeout ?) if y@b not started.

To Reproduce
Example of kernel configuration :

[{kernel,
  [
    {distributed, [{my_app, 5000, [x@a, y@b]}]},
    {sync_nodes_mandatory, []},
    %{sync_nodes_optional, [y@b]},
    {sync_nodes_timeout, 15000}
  ]}
 ].

Expected behavior
Maybe I missed this in documentation, and it is a (strange) feature, or it is a bug.
I would expect main node x@a to start anyway after timeout set, considering y@b node optional, or at least a failure for an invalid configuration.
Does it mean that all nodes listed in distributedmust be either in sync_nodes_mandatoryor sync_nodes_optional ?

note that below configuration is working as expected (x@a starting after timeout), while x@a not listed in sync_nodes_mandatoryor sync_nodes_optional :

[{kernel,
  [
    {distributed, [{my_app, 5000, [x@a, y@b]}]},
    {sync_nodes_mandatory, []},
    {sync_nodes_optional, [y@b]},
    {sync_nodes_timeout, 15000}
  ]}
 ].

Affected versions
24.0 (at least)

@crownedgrouse crownedgrouse added the bug Issue is reported as a bug label Jul 31, 2021
@RaimoNiskanen RaimoNiskanen added the team:VM Assigned to OTP team VM label Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug priority:low team:VM Assigned to OTP team VM
Projects
None yet
Development

No branches or pull requests

3 participants