GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [1.9.x] Fix listener error swallowing (#1990), SyncContext double-close (#1992), and test flakiness (#1350) by slachiewicz · Pull Request #2109 · apache/maven-resolver Conversation
Member
Backport of #1990, #1992, and #1350 to the Summary of Fixes
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…le-close (apache#1992), and test flakiness (apache#1350) - apache#1990: Log listener exceptions in ChainedRepositoryListener and ChainedTransferListener; add unit tests for multicast resilience. - apache#1992: Prevent SyncContext double-close in DefaultArtifactResolver and DefaultMetadataResolver; add verification test. - apache#1350: Derandomize GenericVersionTest.testCompareUuidRandom with fixed seed. Review follow-up, same change as on master: the shared context was created outside any try block, so a SyncContextFactory that throws while creating the exclusive context leaked it. The request loop now runs before either context is created, and the shared context is closed if the exclusive one cannot be obtained. The shared-to-exclusive hand-over reassigns before closing so a throwing close() cannot leave the shared context to be closed twice. The lifecycle test uses distinct instances. …faultMetadataResolver …faultMetadataResolver on 1.9.x
slachiewicz
marked this pull request as ready for review
gnodet
approved these changes
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Clean backport of three fixes (listener error swallowing, SyncContext double-close, test flakiness) to the 1.9.x branch. All critical review findings from master PR #2108 (resource leaks, misleading test) have been addressed. SyncContext lifecycle correctness verified: All code paths correctly manage the shared→exclusive hand-over, and the nested try-finally ensures no leaks even under exception conditions. Low-severity observations (non-blocking):
Note: Master PR #2108 is still open (not yet merged). If it receives further review-driven changes, the two PRs could diverge — consider merging the master version first. This review was generated by an AI agent and may contain inaccuracies. Please verify all suggestions before applying. Claude Code on behalf of Guillaume Nodet
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesLabelsProjectsDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |