Derby
  1. Derby
  2. DERBY-4298

Derby should give clearer error message (not Database not found) or succeed if user attempts to shutdown a database that is not booted

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: 10.1.3.1, 10.2.2.0, 10.3.3.0, 10.4.2.0, 10.5.1.1, 10.6.1.0
    • Fix Version/s: None
    • Component/s: Services
    • Labels:
      None
    • Issue & fix info:
      Newcomer, Repro attached, Workaround attached

      Description

      If a Derby database is not booted and a user attempts to shut it down, they will get a Database not found message which can be misleading. We should have a better error message at least or perhaps just boot the database and then shutdown. I think the later would be preferable but don't know if there is some reason against it.

      [C:/test5] java org.apache.derby.tools.ij
      ij version 10.6
      ij> connect 'jdbc:derby:wombat;create=true';
      ij> exit;
      [C:/test5] java org.apache.derby.tools.ij
      ij version 10.6
      ij> connect 'jdbc:derby:wombat;shutdown=true';
      ERROR XJ004: Database 'wombat' not found.

      To workaround the issue, you can first make a connection to the database and then shutdown.

      ij> connect 'jdbc:derby:wombat';
      ij> connect 'jdbc:derby:wombat;shutdown=true';
      ERROR 08006: Database 'wombat' shutdown.

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Kathey Marsden
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development