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

fix: handle p2p events properly in cluster tests #3452

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

zivkovicmilos
Copy link
Member

@zivkovicmilos zivkovicmilos commented Jan 7, 2025

Description

This PR fixes an issue with the p2p event stream where events can be missed due to not being actively scooped from the channel, causing tests to hang. This non-blocking nature is by design, the p2p event stream should be non-blocking for subscribers at all times when new events are added.

The PR increases the buffer size for events (from 1 to a reasonable value). For larger event loads, subscribers can handle channel draining caller side without any issues

@zivkovicmilos zivkovicmilos added the 📦 🌐 tendermint v2 Issues or PRs tm2 related label Jan 7, 2025
@zivkovicmilos zivkovicmilos self-assigned this Jan 7, 2025
@Gno2D2
Copy link
Collaborator

Gno2D2 commented Jan 7, 2025

🛠 PR Checks Summary

All Automated Checks passed. ✅

Manual Checks (for Reviewers):
  • IGNORE the bot requirements for this PR (force green CI check)
Read More

🤖 This bot helps streamline PR reviews by verifying automated checks and providing guidance for contributors and reviewers.

✅ Automated Checks (for Contributors):

No automated checks match this pull request.

☑️ Contributor Actions:
  1. Fix any issues flagged by automated checks.
  2. Follow the Contributor Checklist to ensure your PR is ready for review.
    • Add new tests, or document why they are unnecessary.
    • Provide clear examples/screenshots, if necessary.
    • Update documentation, if required.
    • Ensure no breaking changes, or include BREAKING CHANGE notes.
    • Link related issues/PRs, where applicable.
☑️ Reviewer Actions:
  1. Complete manual checks for the PR, including the guidelines and additional checks if applicable.
📚 Resources:
Debug
Manual Checks
**IGNORE** the bot requirements for this PR (force green CI check)

If

🟢 Condition met
└── 🟢 On every pull request

Can be checked by

  • Any user with comment edit permission

@zivkovicmilos zivkovicmilos merged commit faf70cb into master Jan 7, 2025
33 checks passed
@zivkovicmilos zivkovicmilos deleted the dev/zivkovicmilos/p2p-events branch January 7, 2025 16:14
albttx pushed a commit that referenced this pull request Jan 10, 2025
## Description

This PR fixes an issue with the p2p event stream where events can be
missed due to not being actively scooped from the channel, causing tests
to hang. This non-blocking nature is by design, the p2p event stream
should be non-blocking for subscribers at all times when new events are
added.

The PR increases the buffer size for events (from 1 to a reasonable
value). For larger event loads, subscribers can handle channel draining
caller side without any issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 🌐 tendermint v2 Issues or PRs tm2 related
Projects
Development

Successfully merging this pull request may close these issues.

3 participants