-
Notifications
You must be signed in to change notification settings - Fork 55
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
Does not GRAFT after receiving subscription #554
Comments
Is your node subscribed to that topic? If not the heardbeat won't rebalance that specific topic as no mesh is needed in such case, (fanout will deliver) |
Just realized there are logs attached, altho they are "colorized" will try to read them :) |
Why is the log silent after |
To sum up, first of all something is blocking it seems, and that's bad. |
So this Nim-Waku node was started as part of a test suite. Indeed, nothing happens after that and then I kill the node timeout elapse. Should I be waiting for a heartbeat? How often do they occur? |
If you look at the start of the log file you can see that the Nim-Waku node subscribe to a topic. This is the same topic than the peer subscribe to at the end. |
Sorry, I'll be sure to clean them up next time :) |
1 second if everything is default I see no traces of heartbeat and maintenance in the logs.. something is wrong. |
Right I missed that |
Thanks! Indeed, looking at the nim-waku node deployed in the fleet, I do not see any heartbeat either. @jm-clius, what do you think? Are we missing something? |
Starting nim-waku aa9a74c60bb809c04936843ad9ea1cda2c292fec locally with trace logs, I cannot see any |
Mmm, I'll try to trace this and let you know. |
Seems like this could be a pretty serious bug -> waku-org/nwaku#445. Working on a fix, but just trying to determine to what extent we should change the order in which we mount protocols and start listening. |
Closing, as issue was fixed and will be tested on |
Hi, I noticed this behaviour using nim-waku. Can you please clarify the expected behaviour?
Scenario
no_graft_after_subscribe.log
Steps:
4. Expected
nim node sends graft message to js node to inform that nim node added js node to local mesh for default topic
4. Actual
No further processing is done. From my logs, the subscription has been received at
TRC 2021-03-30 10:47:14.497+11:00 peer subscribed to topic
but nothing happens until nim waku is killed at
nim-waku 4093597 getting SIGINT at 10:47:19 am
(5 seconds).Notes
Heartbeat
What is the heartbeat configuration for nim-waku? Is the issue that the graft message is sent at heartbeat time but I do not leave enough time for it to happen?
Subscribe before identify
In the attached logs, we can see that nim-waku sends the subscription message at
TRC 2021-03-30 10:47:14.443+11:00 sending msg to peer topics="libp2p pubsubpeer" tid=4093597 file=pubsubpeer.nim:237 peer=QmS*x2SoN8 rpcMsg="(subscriptions: @[(subscribe: true, topic: \"/waku/2/default-waku/proto\")], messages: @[], control: (ihave: @[], iwant: @[], graft: @[], prune: @[]))"
.However, the dial did not really finish at this stage as we can see the identify protocol still happening after:
As the identify is not yet done when nim waku sends a subscribe to js waku, I believe it is dropped simply because js waku does not know yet that nim waku supports the waku relay protocol.
The text was updated successfully, but these errors were encountered: