akka / akka-edge-rs

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

Recover the last offset correctly #88

Closed huntc closed 1 year ago

huntc commented 1 year ago

The change here principally fixes a bug with the new offset store where we weren't recovering the last offset. However, I then found a race condition where the consumer projection wasn't waiting for the offset store to finish its recovery. Further, the offset store had no means to convey that it had fully recovered, nor any entity manager for that matter. Consequently, a new on_initial_recovery_completed method has been added to the entity behaviour trait, and called by the entity manager.

Fixes #https://github.com/lightbend/akka-edge-rs/issues/86