Skip to content

Improve refcounting in testClientCancellation#110309

Merged
DaveCTurner merged 2 commits intoelastic:mainfrom
DaveCTurner:2024/06/30/improve-Netty4ChunkedContinuationsIT-testClientCancellation
Jul 1, 2024
Merged

Improve refcounting in testClientCancellation#110309
DaveCTurner merged 2 commits intoelastic:mainfrom
DaveCTurner:2024/06/30/improve-Netty4ChunkedContinuationsIT-testClientCancellation

Conversation

@DaveCTurner
Copy link
Copy Markdown
Member

With the changes in #109519 we now do one more async step while serving
the response, so we need to acquire another ref to track the new step.

Relates #109866
Relates #110118
Relates #110175
Relates #110249

With the changes in elastic#109519 we now do one more async step while serving
the response, so we need to acquire another ref to track the new step.

Relates elastic#109866
Relates elastic#110118
Relates elastic#110175
Relates elastic#110249
@DaveCTurner DaveCTurner added >test Issues or PRs that are addressing/adding tests :Distributed/Network Http and internode communication implementations v8.15.0 labels Jun 30, 2024
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

final ReachabilityChecker reachabilityChecker = new ReachabilityChecker();
final var latch = new CountDownLatch(1);
refs = LeakTracker.wrap(reachabilityChecker.register(AbstractRefCounted.of(latch::countDown)));
refs = AbstractRefCounted.of(latch::countDown);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are you sure it's not worth leaving the leak tracking in? it did make it much easier to troubleshoot.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm not sure, no, although I'd generally rather keep debug stuff out of tests while they're not known to be flaky. If we keep having problems here then we can put it back easily enough.

@DaveCTurner DaveCTurner merged commit 21fb5af into elastic:main Jul 1, 2024
@DaveCTurner DaveCTurner deleted the 2024/06/30/improve-Netty4ChunkedContinuationsIT-testClientCancellation branch July 1, 2024 05:54
@ywangd
Copy link
Copy Markdown
Member

ywangd commented Jul 2, 2024

Post-merge LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Network Http and internode communication implementations Team:Distributed Meta label for distributed team. >test Issues or PRs that are addressing/adding tests v8.15.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants