Skip to content

Intermittent subscription failures like "Declare subscriber 7 for unknown scope 2!" #2106

@andrew-otiv

Description

@andrew-otiv

Describe the bug

We are encountering a intermittent subscription-time issue where we get error messages like:

2025-08-27T07:50:21.324664Z ERROR /home/doruk/.cargo/git/checkouts/zenoh-cc237f2570fab813/361773b/zenoh/src/net/routing/dispatcher/pubsub.rs:100
Declare subscriber 7 for unknown scope 2!

This is in a context of launching ~6 peers subscribing to ~10 channels each, all running on one laptop.
Some messages are not delivered after we see this error.

This was observed on zenoh 1.3.4.
The failure is intermittent: on our codebase it was 6 fails / 18 runs... so about 30% of the time.

This is harder to reproduce on zenoh 1.5.0 (0 fails/25 runs); it occurs less frequently.

To reproduce

System info

Ubuntu 24.04.2 LTS
Zenoh 1.3.4, harder to reproduce in 1.5.0

This was observed on a large-ish codebase; we haven't made a minimal example yet.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions