Skip to content

Conversation

@Bohlski
Copy link
Contributor

@Bohlski Bohlski commented Oct 14, 2022

This has been fixed along with changing audit trail collection/preservation TimerTasks to now only wake once on their respective intervals instead of waking 10 times for no apparent reason.

The underlying bug has now been fixed. Included in this AuditTrailCollector and LocalAuditTrailPreserver now inherit from the new AuditTrailTaskStarter class, which allows similarities between the two to be abstracted away.
Both the TimerTasks for collection and preservation were set to wake 10 times within their intervals checking if it was time to do stuff and otherwise doing nothing. So waking 9 times with no purpose. No explaining comment as to why. Timer#scheduleAtFixedRate only schedules tasks on one thread, so scheduling more tasks than needed does not seem to have any benefit even if it was in case tasks were taking long to complete. The TimerTasks now only wake on their intervals.
@Bohlski Bohlski requested a review from m-atlantis October 14, 2022 08:56
@Bohlski Bohlski merged commit 3c67d42 into master Nov 18, 2022
@Bohlski Bohlski deleted the BITMAG-1190-preservation-wrong-time branch November 18, 2022 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants