-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removed sequenceToken from PeriodicBatchingSinkImplementationCallback #143
Removed sequenceToken from PeriodicBatchingSinkImplementationCallback #143
Conversation
…plementationCallback class and tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a lot more places to update if this is indeed true. See the message in the docs:
The sequence token is now ignored in PutLogEvents actions. PutLogEvents actions are always accepted and never return InvalidSequenceTokenException or DataAlreadyAcceptedException even if the sequence token is not valid. You can use parallel PutLogEvents actions on the same log stream.
Is the sequence token required by the library? What happens for the minimum supported AWSSDK.CloudWatchLogs version if the SequenceToken isn't specified?
Brilliant questions, thanks for highlighting them! Regarding removing catches for mentioned exceptions - I saw it but really wasn't sure if the sequence token is the only source throwing them. Would suggest to remove them few versions later, but don't insist. Regarding AWSSDK.CloudWatchLogs version that introduced this change - from changelog documentation it is 3.7.454.0 (2023-01-04 19:21 UTC). Regarding necessity of sequence token - honestly I have no other idea than stated in SDK documentation and you've already seen and mentioned it. |
So, I think the only thing I want to avoid is an in-between state. Assuming we continue with this PR, we can remove those exceptions as they are directly called out by the sequenceToken warning, and from experience they are only thrown when using an invalid sequence token. My biggest concern is that right now, we support versions of the AWSSDK.CloudWatchLogs version My recommendation here would be:
|
…s handling dropped from main code and tests, same for PutLogEventsResponse.NextSequenceToken and PutLogEventsRequest.SequenceToken
Done |
PeriodicBatchingSinkImplementationCallback class and related tests are fixed
Code related to issue #142