GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Empty catch swallows exceptions in IpcNamedLock.tryUnlock() · Issue #1994 · apache/maven-resolver

Empty catch swallows exceptions in IpcNamedLock.tryUnlock() #1994

New issue
Copy link
New issue
Copy link
Closed
#2045
Closed
Empty catch swallows exceptions in IpcNamedLock.tryUnlock()#1994
#2045
Copy link
Labels
bugSomething isn't workingpriority:minorMinor loss of function, or other problem where easy workaround is present

Description

@elharo
elharo
opened on Jul 21, 2026
Issue body actions

Affected version: HEAD

File: maven-resolver-named-locks-ipc/src/main/java/org/eclipse/aether/named/ipc/IpcNamedLock.java:108-115

private void tryUnlock(String contextId) {
    try {
        client.unlock(contextId);
    } catch (Exception e) {
        // Best-effort cleanup
    }
}

All exceptions from unlock() during timeout cleanup are silently discarded. While documented as intentional, this can mask real IO/connectivity issues.

Originally reported in #1944.

Activity

  1. elharo
    added
    bugSomething isn't working
    priority:minorMinor loss of function, or other problem where easy workaround is present
    on Jul 21, 2026
  2. elharo
    closed this as completedin #2045on Aug 9, 2026
  3. cstamas
    added a commit that references this issue on Aug 19, 2026

    Fix apache#1994: log exceptions from IpcNamedLock.tryUnlock() (apache…

    This issue will close once commit 8b3b700 is merged into the 'master' branch.
    8b3b700
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:minorMinor loss of function, or other problem where easy workaround is present

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      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.