We have also (very rarely) experienced the following exception:
DataAlreadyAcceptedException: The given batch of log events has already been accepted. The next batch can be sent with sequenceToken: 49575434191296632061558566622677474456728342287823744514
It looks like we can just re-submit it with the new sequence token on the exception similar to InvalidSequenceTokenException. Unfortunately, DataAlreadyAcceptedException and InvalidSequenceTokenException do not share a common class that has the getExpectedSequenceToken() method so I think we'll have to keep them in separate catch blocks for now.
Hey Gio,
We have also (very rarely) experienced the following exception:
DataAlreadyAcceptedException: The given batch of log events has already been accepted. The next batch can be sent with sequenceToken: 49575434191296632061558566622677474456728342287823744514
It looks like we can just re-submit it with the new sequence token on the exception similar to
InvalidSequenceTokenException
. Unfortunately,DataAlreadyAcceptedException
andInvalidSequenceTokenException
do not share a common class that has thegetExpectedSequenceToken()
method so I think we'll have to keep them in separate catch blocks for now.Thanks much!