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

Node Manager: display glitch while adding nodes #400

Open
rkuhn opened this issue Mar 27, 2023 · 5 comments
Open

Node Manager: display glitch while adding nodes #400

rkuhn opened this issue Mar 27, 2023 · 5 comments
Labels
Node Manager This issue leads to a version bump of the Node Manager.

Comments

@rkuhn
Copy link
Member

rkuhn commented Mar 27, 2023

Right after adding new nodes using the discovery pane, all existing nodes are shown without node names for 2sec. This is probably caused by setting the AppState without transporting already known node details.

@Kelerchian
Copy link
Contributor

Can't reproduce the issue.

But when I add a bit of delay to getNodeDetail. This is the behavior I see. The behavior may or may not be related. This issue might be a side-effect of that behavior.

data-race-in-nodelist.webm

Should we fix this as a part of this issue, or a separate issue? Either way, I'm going to fix the behavior and see if the reported issue is fixed too on the consumer's side.

@rkuhn
Copy link
Member Author

rkuhn commented Mar 28, 2023

Hmm, this looks weird. What kind of delay did you add where? This might well be something that needs fixing.

@Kelerchian
Copy link
Contributor

Kelerchian commented Mar 28, 2023

I added this on one of the getNodeDetails call.

getNodeDetails({ peer: n.peer, timeout: getTimeoutSec })
  .then(async (res) => {
    await new Promise((res) => setTimeout(res, 5000))
    return res
  })

@rkuhn
Copy link
Member Author

rkuhn commented Mar 28, 2023

Ah, interesting, yes: if getting responses from Actyx takes longer than the 2sec cycle then there will be problems. But that is part of the design in that we don’t wait for that long for responses from Actyx.

@jmg-duarte jmg-duarte added the Node Manager This issue leads to a version bump of the Node Manager. label Oct 9, 2023
@jmg-duarte
Copy link
Contributor

Next steps for this issue:

  • Try to reproduce the issue with a forced 1s delay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Node Manager This issue leads to a version bump of the Node Manager.
Projects
None yet
Development

No branches or pull requests

3 participants