Skip to content

Conversation

@fbac
Copy link
Collaborator

@fbac fbac commented Jul 15, 2025

Change RPCLogStreamer.watchContract method to terminate application instead of gracefully stopping when subscription rebuilding fails to guarantee data integrity after sub fails completely

The error handling in the RPCLogStreamer.watchContract method in rpc_log_streamer.go is modified to call logger.Fatal() instead of logging an error and calling r.Stop() when subscription rebuilding fails after the maximum disconnect time. This change occurs in two locations within the method and causes the application to terminate rather than attempt graceful shutdown when persistent connection failures occur.

📍Where to Start

Start with the RPCLogStreamer.watchContract method in rpc_log_streamer.go where the error handling behavior has been modified.


Macroscope summarized 534f60c.

@fbac fbac requested a review from a team as a code owner July 15, 2025 20:07
@graphite-app
Copy link

graphite-app bot commented Jul 15, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • Queue - adds this PR to the back of the merge queue
  • Hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@fbac fbac merged commit d4ca0d5 into main Jul 21, 2025
9 checks passed
@fbac fbac deleted the 07-15-guarantee_data_integrity branch July 21, 2025 21:56
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