akka / akka-edge-rs

Akka Edge support in Rust
https://doc.akka.io/docs/akka-edge/current/
Other
9 stars 1 forks source link

Duplicate Registered events #51

Closed patriknw closed 1 year ago

patriknw commented 1 year ago

Strange. I registered 10 entities in iot-service-scala. I happened to have some println in on_event in the temperature entity and noticed that there are many duplicate Registered events, and more are emitted at the end when keeping the systems running idle.

println output, where the first number is the entity id:

1 on_event: Registered foo
1 on_event: Registered foo
1 on_event: Registered foo
1 on_event: Registered foo
1 on_event: Registered foo
1 on_event: Registered foo
1 on_event: Registered foo
1 on_event: Registered foo
1 on_event: Registered foo
1 on_event: Registered foo
2 on_event: Registered foo2
2 on_event: Registered foo2
3 on_event: Registered foo2
4 on_event: Registered foo2
4 on_event: Registered foo2
5 on_event: Registered foo2
5 on_event: Registered foo2
6 on_event: Registered foo2
6 on_event: Registered foo2
7 on_event: Registered foo2
7 on_event: Registered foo2
3 on_event: Registered foo2
4 on_event: Registered foo2
5 on_event: Registered foo2
6 on_event: Registered foo2
7 on_event: Registered foo2
2 on_event: Registered foo2
3 on_event: Registered foo2
4 on_event: Registered foo2
5 on_event: Registered foo2
6 on_event: Registered foo2
7 on_event: Registered foo2
2 on_event: Registered foo2
3 on_event: Registered foo2
4 on_event: Registered foo2
5 on_event: Registered foo2
6 on_event: Registered foo2
7 on_event: Registered foo2
2 on_event: Registered foo2
3 on_event: Registered foo2
4 on_event: Registered foo2
5 on_event: Registered foo2
6 on_event: Registered foo2
7 on_event: Registered foo2
2 on_event: Registered foo2
3 on_event: Registered foo2
4 on_event: Registered foo2
5 on_event: Registered foo2
6 on_event: Registered foo2
7 on_event: Registered foo2
2 on_event: Registered foo2
3 on_event: Registered foo2
4 on_event: Registered foo2
5 on_event: Registered foo2
6 on_event: Registered foo2
7 on_event: Registered foo2
2 on_event: Registered foo2
3 on_event: Registered foo2
4 on_event: Registered foo2
5 on_event: Registered foo2
6 on_event: Registered foo2
7 on_event: Registered foo2
2 on_event: Registered foo2
3 on_event: Registered foo2
4 on_event: Registered foo2
5 on_event: Registered foo2
6 on_event: Registered foo2
7 on_event: Registered foo2
2 on_event: Registered foo2
3 on_event: Registered foo2
4 on_event: Registered foo2
5 on_event: Registered foo2
6 on_event: Registered foo2
7 on_event: Registered foo2
2 on_event: Registered foo2
3 on_event: Registered foo2
4 on_event: Registered foo2
5 on_event: Registered foo2
6 on_event: Registered foo2
7 on_event: Registered foo2
2 on_event: Registered foo2
3 on_event: Registered foo2
4 on_event: Registered foo2
5 on_event: Registered foo2
6 on_event: Registered foo2
7 on_event: Registered foo2
2 on_event: Registered foo2
3 on_event: Registered foo2
4 on_event: Registered foo2
5 on_event: Registered foo2
6 on_event: Registered foo2
7 on_event: Registered foo2
2 on_event: Registered foo2
3 on_event: Registered foo2
4 on_event: Registered foo2
5 on_event: Registered foo2
6 on_event: Registered foo2
7 on_event: Registered foo2
2 on_event: Registered foo2
3 on_event: Registered foo2
4 on_event: Registered foo2
5 on_event: Registered foo2
6 on_event: Registered foo2
7 on_event: Registered foo2
2 on_event: Registered foo2
3 on_event: Registered foo2
4 on_event: Registered foo2
5 on_event: Registered foo2
6 on_event: Registered foo2
7 on_event: Registered foo2
8 on_event: Registered foo2
9 on_event: Registered foo2
8 on_event: Registered foo2
10 on_event: Registered foo2
10 on_event: Registered foo2
9 on_event: Registered foo2
10 on_event: Registered foo2
8 on_event: Registered foo2
9 on_event: Registered foo2
10 on_event: Registered foo2
8 on_event: Registered foo2
9 on_event: Registered foo2
10 on_event: Registered foo2
8 on_event: Registered foo2
9 on_event: Registered foo2
10 on_event: Registered foo2
8 on_event: Registered foo2
9 on_event: Registered foo2
10 on_event: Registered foo2
8 on_event: Registered foo2
9 on_event: Registered foo2
10 on_event: Registered foo2
8 on_event: Registered foo2
9 on_event: Registered foo2
10 on_event: Registered foo2
8 on_event: Registered foo2
huntc commented 1 year ago

Would it be possible to provide the steps to reproduce given a clean Postgres container and removal of /temp/var/lib files (Streambed dirs)?

patriknw commented 1 year ago

Verified, fixed