I am trying to replay few events to rebuild my projection using the events replay api.
processingConfiguration.eventProcessor(processorName, StreamingEventProcessor.class)
.ifPresent(streamingProcessor -> {
// shutdown this streaming processor
streamingProcessor.shutDown();
// reset the tokens to prepare the processor
streamingProcessor.resetTokens(resetContext);
// start the processor to initiate the replay
streamingProcessor.start();
});
While resetting the token I get this exception:
Unable to claim token 'com.sample.query[0]'. It is owned by 'xxx'
There are multiple instances running for this application. It works when I only have 1 instance of the application running.
Does the events replay api support replaying with multiple running application instances?