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

[TEST only] A test for memory leak when creating/deleting consumers #5603

Closed
wants to merge 3 commits into from

Conversation

levb
Copy link
Contributor

@levb levb commented Jun 27, 2024

Verifies the fix in #5600

When ran locally, it was using ~180MB extra for the test before, and under 40Mb after.

@levb levb requested a review from a team as a code owner June 27, 2024 18:26
@levb
Copy link
Contributor Author

levb commented Jun 27, 2024

@derekcollison @neilalexander https://app.travis-ci.com/github/nats-io/nats-server/jobs/623464530 is causing a race in raft, do you mind taking a look?

This line here is not being executed under a lock. https://github.com/nats-io/nats-server/pull/5600/files#diff-0a3d4e9b87bb3880bdb735fa489ef618b571de3370dae31d8f509b26e2fb852eR1737 when called from n.runAsLeader()

levb and others added 2 commits June 28, 2024 10:22
Signed-off-by: Derek Collison <derek@nats.io>
@levb levb force-pushed the GH-5471-leak-JS-only branch from cacf693 to eb79e36 Compare June 28, 2024 17:23
@levb levb force-pushed the GH-5471-leak-JS-only branch from eb79e36 to a1e2de7 Compare June 28, 2024 17:27
@levb
Copy link
Contributor Author

levb commented Jun 28, 2024

Apologies, but either I messed something up when merging/rebasing or GitHub is having issues, I will close this PR and submit a new one since there's little history here anyway.

image

@levb levb closed this Jun 28, 2024
@levb levb deleted the GH-5471-leak-JS-only branch June 28, 2024 17:29
derekcollison added a commit that referenced this pull request Jul 22, 2024
…5607)

Verifies the fix in #5600

When ran locally, it was using ~180MB extra for the test before, and
under 40Mb after.

(this is a replacement for #5603 that ran into some git issues.
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