Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-5607

Deadlock in Java 5 VM when using NATIVE authentication with a client running in the same VM as the server

    XMLWordPrintableJSON

Details

    • Normal
    • Patch Available, Repro attached
    • Regression Test Failure

    Description

      A deadlock in the Java 5 VM hangs connection attempts if you are using NATIVE authentication with a client which runs in the same VM as the server. I will attach a test case which demonstrates this. This bug is implicated in the failures being discussed on https://issues.apache.org/jira/browse/DERBY-5601 and was disclosed by the discussion on this email thread: http://old.nabble.com/-URGENT--Critical-test-situation-on-trunk-to33259629.html#a33259629

      The bug arises when NativeAuthenticationServiceImpl attempts a nested connection to the Credentials database during database creation. The nested connection is attempted in order to dertermine whether the user has system-wide privilege to create databases.

      Attachments

        1. derby-5607-01-aa-userInternalDriver.diff
          2 kB
          Richard N. Hillegas
        2. NASTHang.java
          1 kB
          Richard N. Hillegas

        Issue Links

          Activity

            People

              rhillegas Richard N. Hillegas
              rhillegas Richard N. Hillegas
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: