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

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

Merged
merged 1 commit into from
Feb 8, 2024

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
hathor/p2p/sync_v2/agent.py Outdated Show resolved Hide resolved
hathor/p2p/sync_v2/agent.py Outdated Show resolved Hide resolved
@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
9 of 11 checks passed
@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