Skip to content

[BUG] Three-body connections produces messages duplicationΒ #2

@picolino

Description

@picolino

πŸ› Bug Report

Imagine we have SSC applications connections structure like that:


  β”Œβ”€β”€β”€β”€β”€β”€ A ──────┐
  β”‚               β”‚
  β”‚               β”‚
 msg1            msg1
  β”‚               β”‚
  β”‚               β”‚
  β–Ό               β–Ό
  B ───────────── C

If A produces msg1, it sends it to B and C according to configured known peers (KnownRemotePeers property in appsettings.yaml). B and C both recieves this message and if they knows about each other - they retranslate same message to each other what produces messages duplication.


  β”Œβ”€β”€β”€β”€β”€β”€ A ──────┐
  β”‚               β”‚
  β”‚               β”‚
  β”‚               β”‚
  β”‚               β”‚
  B ──── msg1 ──► C
  β–²               β”‚
  └───── msg1 β”€β”€β”€β”€β”˜

Expected behavior

We should retranslate message, but on client side should exists something like messages deduplication, that will prevent from handle and retranslate messages that already have been delivered to it.

Reproduction steps

  1. Prepare three separated machines
  2. Setup KnownRemotePeers into appsettings.yaml to connect all three machines with each others.
    Each machine should know about both others
  3. Launch app on first machine
  4. Launch app on second machine
  5. Launch app on third machine
  6. Send message from one machine
  7. See message duplication on both other machines

Version: 1.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions