Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
10.1.3.1, 10.2.2.0, 10.3.3.0, 10.4.2.0, 10.5.1.1, 10.6.1.0
-
None
-
None
-
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.
Attachments
Issue Links
- duplicates
-
DERBY-2068 Misleading XJ004 exception when shutting down a database that is already shutdown.
- Open