Closed finalchild closed 10 months ago
I think you are right, it is possible. It would only happen if the node dies instantly (not a clean stop) without calling unregister
and it getting assignments is slower than going to the registerSingleton
call.
I opened https://github.com/devsisters/shardcake/pull/100 to make sure we get the initial assignments before we register any singleton or entity.
Can this sequence of events cause a singleton entity not to spawn properly?
sharding.refreshAssignments
, which runs with .forkDaemon.sharding.registerSingleton
andsharding.register
both runs. The pod thinks it has no assignment.sharding.refreshAssignments
finishes