I have tested my service having one instance using SeekToCurrentErrorHandler, which is having one consumer in one consumer group. In case of failure, retry happens and the records get committed as I have user ACK mode as RECORD and did not use ACK mode as MANUAL, as that creates a problem.
Now, let us have 2 more instances of my service, which has the same consumer with same consumer group.
My question: Are these 2 new instances going to retry like the first instance do exactly the same if in case the records have been committed by the first instance?
ContainerProperties containerProperties = factory.getContainerProperties();
containerProperties.setAckOnError(false);
containerProperties.setAckMode(AckMode.RECORD);
containerProperties.setErrorHandler(new SeekToCurrentErrorHandler());