-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BCFR-899] MaxLogsKept implementation (#14574)
* Add PruneExcessLogs for MaxLogsKept * Update contract_transmitter.go for MaxLogsKept * Fix unreachable code * pnpm changeset * Re-use block-range paging from DeleteBlocksBefore for SelectExcessLogs Also: add block_number >= lower * Use ExecPagedQuery for SelectUnmatchedLogIDs Also: add deduping of ids for logs matching multiple filters * Improve logging * Add test for SelectExcessLogIDs Also, remove some extraneous lines in orm_test.go * Only activate count-based log pruning when needed * Typo in changeset * Refactor ExecPagedQuery into method of generic type RangedQuery[T] * Fix setting of countBasedPruningActive flag * Change sql comments to go comments * Address remaining PR comments - Remove topics from SelectExcessLogs query - Early exit from loadFilters - upper >= end * Take Jordan's suggestion of replacing *atomic.Bool with atomic.Bool
- Loading branch information
1 parent
275bcf0
commit accbf0f
Showing
6 changed files
with
448 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"chainlink": minor | ||
--- | ||
|
||
#added LogPoller MaxLogsKept feature: recency count-based instead of time based log retention |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.