I have two replicas of the same microservice. Both use
PooledEventProcessors, the same
MongoDB as a
TokenStore and the same user to connect to said
MongoDB. If I start the replicas one after another and then rebalance, everything works fine. But if I start up both replicas at the same time, I get a warning about duplicate segment claims on some event processors and on the console appear errors on one of the services which says “Invalid token type provided”. Is that caused by a wrong configuration of the services or do I need, in fact, to be careful with the deployment?