Skip to content

feat(sync-v2): Improve logging when unexpected TRANSACTIONS-END or BLOCKS-END are received#945

Merged
msbrogli merged 1 commit intomasterfrom
feat/sync-v2-unexpected-logging
Feb 8, 2024
Merged

feat(sync-v2): Improve logging when unexpected TRANSACTIONS-END or BLOCKS-END are received#945
msbrogli merged 1 commit intomasterfrom
feat/sync-v2-unexpected-logging

Conversation

@msbrogli
Copy link
Member

@msbrogli msbrogli commented Feb 8, 2024

Motivation

It seems we are getting some unexpected TRANSACTIONS-END and BLOCKS-END messages due to a race condition caused by concurrent syncing. This logging improvement will help us to understand what's causing the race condition so it can be properly handled. This is not a major issue since the sync-v2 protocol easy recovers from this situation and keeps syncing.

Acceptance Criteria

  1. Add the response_code to the unexpected TRANSACTIONS-END log message.
  2. Add the response_code to the unexpected BLOCKS-END log message.

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged

@msbrogli msbrogli requested a review from jansegre as a code owner February 8, 2024 18:55
@msbrogli msbrogli self-assigned this Feb 8, 2024
@msbrogli msbrogli added the enhancement New feature or request label Feb 8, 2024
@msbrogli msbrogli force-pushed the feat/sync-v2-unexpected-logging branch from ae3bd94 to 128b3d9 Compare February 8, 2024 18:56
@msbrogli msbrogli force-pushed the feat/sync-v2-unexpected-logging branch from 128b3d9 to 6e4bfff Compare February 8, 2024 19:02
@msbrogli msbrogli merged commit 6e4bfff into master Feb 8, 2024
@msbrogli msbrogli deleted the feat/sync-v2-unexpected-logging branch February 8, 2024 21:49
@jansegre jansegre mentioned this pull request Feb 15, 2024
2 tasks
@jansegre jansegre mentioned this pull request Feb 26, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants