Occurrent 0.16.8 is released with the following changes:
- Upgraded jakarta-api from 1.3.5 to 2.11 (which means that all javax annotations have been replaced by jakarta)
- Fixed a bug in CatchupSubscriptionModel that prevented it from working in MongoDB clusters that doesn’t have access to the
hostInfocommand such as Atlas free-tier.
- Several changes to the
RetryInfomodel that is a part of
getAttemptNumberwhich is the number of the current attempt
onErroris now only called if the end result is an error. I.e. it will only be called at most once, and not for intermediate errors. Because of this, the variant of
onErrorthat took a
BiConsumer<RetryInfo, Throwable>has been removed (because there’s no need for
RetryInfowhen the operation has failed).
- Added the
onBeforeRetrymethod, which is called before a retry attempt is made. This function takes a
BiConsumer<RetryInfo, Throwable>in which the
RetryInfoinstance contains details about the current retry attempt.