Skip to content

fix: prevent filter scheduler cancellation during reinstall failure#2276

Open
Dev10-sys wants to merge 2 commits intoLFDT-web3j:mainfrom
Dev10-sys:fix/filter-reinstall-recovery
Open

fix: prevent filter scheduler cancellation during reinstall failure#2276
Dev10-sys wants to merge 2 commits intoLFDT-web3j:mainfrom
Dev10-sys:fix/filter-reinstall-recovery

Conversation

@Dev10-sys
Copy link
Copy Markdown
Contributor

Fixes an issue where filter re-installation failure would stop the scheduler permanently.

Previously, if getInitialFilterLogs() failed during reinstall, the existing schedule was already cancelled and not recreated, causing the filter to stop polling.

This change ensures the scheduler remains active and allows the filter to retry on the next cycle.

A test is added to verify recovery behavior after failure.

Fixes #1993

Signed-off-by: Dev10-sys <dev10.sys@gmail.com>
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.

log filter not work, case: on reinstallFilter() called, if getInitialFilterLogs() throw Exception, schedule is Cancelled on reinstallFilter.

1 participant