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

v2.16.0 hot fix for LogPoller pruning issue #14462

Merged
merged 2 commits into from
Sep 17, 2024

Conversation

reductionista
Copy link
Contributor

@reductionista reductionista commented Sep 17, 2024

This fixes a subtle but critical bug in LogPoller's expired logs pruning which was introduced recently:
e0850a6

Changing the join from INNER to LEFT rendered the ON l.evm_chain_id=$1 ineffectual becaues ON cannot filter any rows from the left table. This could have caused the entire evm.logs table to get wiped on multichain nodes, because each LogPoller would prune all logs not matching its own chain.

Instead of ON evm_chain_id=$1 we need WHERE evm_chain_id=$1. This will ensure that each LogPoller can only delete logs from its own chain.

BCFR-906

This fix was merged separately this morning to develop as a part of a much larger PR, most of which will not go into 2.16:
e514727

@reductionista reductionista requested review from a team as code owners September 17, 2024 16:50
@reductionista reductionista requested review from jmank88 and removed request for a team September 17, 2024 16:50
@reductionista reductionista changed the base branch from develop to release/2.16.0 September 17, 2024 16:51
@reductionista reductionista force-pushed the hotfix/BCFR-906-logpoller-pruner branch from 9f35ce5 to d7333b0 Compare September 17, 2024 18:54
@reductionista reductionista force-pushed the hotfix/BCFR-906-logpoller-pruner branch from d7333b0 to 11b3a57 Compare September 17, 2024 19:25
@reductionista reductionista force-pushed the hotfix/BCFR-906-logpoller-pruner branch from 11b3a57 to 10113c5 Compare September 17, 2024 19:57
@momentmaker momentmaker merged commit a0580bc into release/2.16.0 Sep 17, 2024
129 of 132 checks passed
@momentmaker momentmaker deleted the hotfix/BCFR-906-logpoller-pruner branch September 17, 2024 21:12
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