Skip to content

Fix unbounded heap growth in the priority mempool.#9058

Merged
creachadair merged 1 commit intov0.36.xfrom
mjf/pm-bport-36
Jul 20, 2022
Merged

Fix unbounded heap growth in the priority mempool.#9058
creachadair merged 1 commit intov0.36.xfrom
mjf/pm-bport-36

Conversation

@creachadair
Copy link

This is a manual forward-port of #8944 and related fixes from v0.35.x.

One difference of note is that the CheckTx response messages no longer have a
field to record an error from the ABCI application. The code is set up so that
these could be reported directly to the CheckTx caller, but it would be an API
change, and right now a bunch of test plumbing depends on the existing semantics.

Also fix up tests relying on implementation-specific mempool behavior.

  • Commit was setting the expected mempool size incorrectly.
  • Fix sequence test not to depend on the incorrect size.

This is a manual forward-port of #8944 and related fixes from v0.35.x.

One difference of note is that the CheckTx response messages no longer have a
field to record an error from the ABCI application. The code is set up so that
these could be reported directly to the CheckTx caller, but it would be an API
change, and right now a bunch of test plumbing depends on the existing semantics.

Also fix up tests relying on implementation-specific mempool behavior.

- Commit was setting the expected mempool size incorrectly.
- Fix sequence test not to depend on the incorrect size.
@creachadair creachadair changed the title Fix unbounded heap growth in the priority mempool. (#9052) Fix unbounded heap growth in the priority mempool. Jul 20, 2022
@creachadair creachadair merged commit 8e9ae68 into v0.36.x Jul 20, 2022
@creachadair creachadair deleted the mjf/pm-bport-36 branch July 20, 2022 22:53
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