-
Notifications
You must be signed in to change notification settings - Fork 57
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
bug: Filter relay/v1/messages GET returns duplicate messages #2320
Comments
Hi @fbarbu15, could you clarify 'same message'? I sent the same payload with the same timestamp, and it wasn't received by the filter on node2. However, with the same payload but a different timestamp, it was received. |
Identical payload: same message test, topic and timestamp |
I just retried the test and it still fails. Here's the log maybe it could help
|
Hi @darshankabariya, @fbarbu15, node1 is a relay node and a filter service. This way when node2 subscribes to node1 filter service it will instantly get (pushed) messages from node1 surrounding the relay which would probably filter out duplicate message on gossip-sub level. We have a filterHandler installed for relay, that is responsible to push filtered message to subscribers, which happens in this case. Yeah, it is a good question on what level node shall check dups.... |
Hi @fbarbu15 Could you plz check my config file? Maybe I missed something, it's not replicated locally. Left side :- relay node (node1) |
on my side
|
Yes this matches my assumption, the second node is a filter-client in other words. This way node1 is not relaying the message to node2 but "filter push" it upon filter subscription. |
To reproduce
If you can reproduce the behavior, steps to reproduce:
Actual behavior
Filter message receives again the message
Expected behavior
I think this is a bug because:
relay/v1/messages
instead the duplicate message will not be retrieved.Screenshots/logs
If applicable, add screenshots or logs to help explain your problem.
nwaku version/commit hash
harbor.status.im/wakuorg/nwaku:latest
Docker logs
node2_2023-12-27_17-59-51__a326b384-8ecf-45e5-a65a-081f58c49657__harbor.status.im_wakuorg_nwakulatest.log
node1_2023-12-27_17-59-51__a326b384-8ecf-45e5-a65a-081f58c49657__harbor.status.im_wakuorg_nwakulatest.log
Test logs
The text was updated successfully, but these errors were encountered: