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

TxPool autorecover #6789

Merged
merged 1 commit into from
Feb 28, 2024
Merged

TxPool autorecover #6789

merged 1 commit into from
Feb 28, 2024

Conversation

MarekM25
Copy link
Contributor

Changes

TxPool autorecovering if it exceeded capacity

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a change that causes existing functionality not to work as expected)
  • Optimization
  • Refactoring
  • Documentation update
  • Build-related changes
  • Other: Description

Testing

Requires testing

  • Yes
  • No

If yes, did you write tests?

  • Yes
  • [] No

Notes on testing

For now I am experimenting

Documentation

Requires documentation update

  • Yes
  • No

If yes, link the PR to the docs update or the issue with the details labeled docs. Remove if not applicable.

Requires explanation in Release Notes

  • Yes
  • No

If yes, fill in the details here. Remove if not applicable.

Remarks

Optional. Remove if not applicable.


var pool = new WithFinalizerDistinctPool(Capacity, comparer, new WithFinalizerComparer(), LimboLogs.Instance);
[Test]
public void Capacity_is_never_exceeded()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this run in parallel or should their be a Parallel varient of it? (Since txPool is running concurrently with adds)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is Capacity_is_never_exceeded_with_multiple_threads
and I've just refactored Capacity_is_never_exceeded

@MarekM25 MarekM25 merged commit 84ff7e8 into master Feb 28, 2024
67 checks passed
@MarekM25 MarekM25 deleted the bugfix/txpool_autorecover branch February 28, 2024 13:37
jmederosalvarado added a commit that referenced this pull request Mar 18, 2024
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.

2 participants