Skip to content
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

Fix rare case where the file info poller will re-process old files #854

Closed
wants to merge 2 commits into from

Conversation

maplant
Copy link
Contributor

@maplant maplant commented Aug 9, 2024

We found a case where on devnet, the reward indexer would re-process old files after cleaning out the files processed table. This is due to the offset being further back in time than the oldest file in the files processed table due to a burst of files. This PR fixes that by checking for a full files processed table, and if it is full limiting the offset to be at most the oldest timestamp in the table.

@maplant maplant requested review from andymck and bbalser August 9, 2024 16:00
@bbalser
Copy link
Contributor

bbalser commented Aug 20, 2024

This PR still exhibits a bug that could occur when the cleaner runs 12 hours after boot. Closing in favor a solution to only modifies the cleaning algorithm.

@bbalser bbalser closed this Aug 20, 2024
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.

2 participants