[
http://issues.apache.org/jira/browse/DERBY-1376?page=comments#action_12415666 ]
Halley Pacheco de Oliveira commented on DERBY-1376:
---------------------------------------------------
To trow this error message I executed the test shown below, that uses the same
directory for the logDevice of two databases:
#java -cp classes/ -Dij.protocol=jdbc:derby: org.apache.derby.tools.ij
ij version 10.2
ij> CONNECT 'jdbc:derby:firstdb;create=true;logDevice=/var/log/derby';
ij> CONNECT 'jdbc:derby:seconddb;create=true;logDevice=/var/log/derby';
ERROR XJ041: Failed to create database 'seconddb', see the next exception for
details.
ERROR XSLAT: The log directory /var/log/derby/log exists. The directory might
belong to another database. Check that the location specified for the logDevice
attribute is correct.
I think the text of the error mesage is fine, but it could include single
quotation marks to delimit the directory name:
The log directory ''{0}'' exists. The directory might belong to another
database. Check that the location specified for the logDevice attribute is
correct.
> File java/engine/org/apache/derby/loc/messages_en.properties - Message XSLAT.D
> ------------------------------------------------------------------------------
>
> Key: DERBY-1376
> URL: http://issues.apache.org/jira/browse/DERBY-1376
> Project: Derby
> Type: Improvement
> Components: Localization
> Versions: 10.1.2.5, 10.1.3.0
> Environment: Text for exceptions
> Reporter: Halley Pacheco de Oliveira
> Priority: Minor
> Fix For: 10.1.3.0
>
> The message XSLAT.D (String LOG_SEGMENT_EXIST = "XSLAT.D";) states:
> XSLAT.D=Log directory {0} exists. Please make sure specified logDevice
> location is correct.
> But it seems by the source code that the problem is not that this directory
> exists, but the fact that it is not empty (// make sure log directory is
> empty, in LogToFile.java). So it seems to me that the following message would
> be better:
> XSLAT.D=Log directory {0} is not empty. Please make sure specified logDevice
> location is correct.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira