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

Shutting down just a single database should log a different message than shutting down the system

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.5.3.0
    • Fix Version/s: 10.5.3.2, 10.6.2.4, 10.7.1.1
    • Component/s: Services
    • Labels:
      None
    • Issue & fix info:
      Newcomer, Repro attached

      Description

      When shutting down just a single database and not the Derby system, the log should print a message that just that database was shutdown as I believe Derby is still loaded.

      e.g.

      ij version 10.6
      ij> run 'testMessages.sql';
      ij> connect 'jdbc:derby:wombat';
      ij> connect 'jdbc:derby:wombat2';
      ij(CONNECTION1)> connect 'jdbc:derby:wombat2;shutdown=true';
      ERROR 08006: Database 'wombat2' shutdown.
      ij(CONNECTION1)> connect 'jdbc:derby:;shutdown=true';
      ERROR XJ015: Derby system shutdown.

      yields the following log:
      2010-03-26 15:27:16.375 GMT:
      Booting Derby version The Apache Software Foundation - Apache Derby - 10.6.0.0 alpha - (927879M): instance a816c00e-0127-9b15-988d-0000002083e0
      on database directory C:\kmarsden\repro\DERBY-4588\wombat with class loader sun.misc.Launcher$AppClassLoader@42c042c0

      Database Class Loader started - derby.database.classpath=''

      ----------------------------------------------------------------

      2010-03-26 15:27:16.921 GMT:
      Booting Derby version The Apache Software Foundation - Apache Derby - 10.6.0.0 alpha - (927879M): instance 601a400f-0127-9b15-988d-0000002083e0
      on database directory C:\kmarsden\repro\DERBY-4588\wombat2 with class loader sun.misc.Launcher$AppClassLoader@42c042c0

      Database Class Loader started - derby.database.classpath=''

      2010-03-26 15:27:17.171 GMT:
      Shutting down instance 601a400f-0127-9b15-988d-0000002083e0 with class loader sun.misc.Launcher$AppClassLoader@42c042c0

      ----------------------------------------------------------------

      2010-03-26 15:27:17.218 GMT:
      Shutting down instance a816c00e-0127-9b15-988d-0000002083e0 with class loader sun.misc.Launcher$AppClassLoader@42c042c0

      ----------------------------------------------------------------

      The first shutdown should say that just the database wombat2 was shutdown, not the entire system.

        Attachments

        1. ASF.LICENSE.NOT.GRANTED--derby-4601.diff
          0.8 kB
          Eranda Sooriyabandara
        2. derby.log
          4 kB
          Mamta A. Satoor
        3. DERBY4601_patch1_diff.txt
          4 kB
          Mamta A. Satoor
        4. DERBY4601_patch2_diff.txt
          4 kB
          Mamta A. Satoor
        5. DERBY4601_stat1_diff.txt
          0.3 kB
          Mamta A. Satoor
        6. DERBY4601_stat2_diff.txt
          0.3 kB
          Mamta A. Satoor

          Issue Links

            Activity

              People

              • Assignee:
                mamtas Mamta A. Satoor
                Reporter:
                kmarsden Kathey Marsden
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: