You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Dag H. Wanvik (JIRA)" <ji...@apache.org> on 2011/01/20 19:09:46 UTC

[jira] Created: (DERBY-4980) Replication tests lose derby.log for slave

Replication tests lose derby.log for slave
------------------------------------------

                 Key: DERBY-4980
                 URL: https://issues.apache.org/jira/browse/DERBY-4980
             Project: Derby
          Issue Type: Bug
          Components: Test
    Affects Versions: 10.8.0.0
            Reporter: Dag H. Wanvik


After running  ReplicationRun_Local_3_p1 I notice that of the two directories created, db_master and db_slave, only db_master contains a derby.log file. This is not so nice, since the log file is sometimes needed for test debugging ;-)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DERBY-4980) Replication tests lose derby.log for slave

Posted by "Dag H. Wanvik (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dag H. Wanvik updated DERBY-4980:
---------------------------------

    Attachment: derby-4980-1.diff

Uploading a preliminary patch that seems to fix this problem, derby-4980-1. The error is that
when starting the Derby server for the slave, the same path name is used for the server's working directory as for the master server ("db_master"). This means that the slave server can't open derby.log for writing since it's already opened by the master server. (Does this fact get logged to the console?) 

The patch sets the working directory for the slave correctly to the "db_slave" directory. 

SInce the fix is done in the replication test ReplicationRun superclass, other replication tests suffer from the same problem.

> Replication tests lose derby.log for slave
> ------------------------------------------
>
>                 Key: DERBY-4980
>                 URL: https://issues.apache.org/jira/browse/DERBY-4980
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.8.0.0
>            Reporter: Dag H. Wanvik
>         Attachments: derby-4980-1.diff
>
>
> After running  ReplicationRun_Local_3_p1 I notice that of the two directories created, db_master and db_slave, only db_master contains a derby.log file. This is not so nice, since the log file is sometimes needed for test debugging ;-)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DERBY-4980) Replication tests lose derby.log for slave

Posted by "Dag H. Wanvik (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dag H. Wanvik updated DERBY-4980:
---------------------------------

    Affects Version/s:     (was: 10.8.0.0)
                       10.6.1.0
                       10.6.2.1
                       10.7.1.1

> Replication tests lose derby.log for slave
> ------------------------------------------
>
>                 Key: DERBY-4980
>                 URL: https://issues.apache.org/jira/browse/DERBY-4980
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.6.1.0, 10.6.2.1, 10.7.1.1
>            Reporter: Dag H. Wanvik
>         Attachments: derby-4980-1.diff
>
>
> After running  ReplicationRun_Local_3_p1 I notice that of the two directories created, db_master and db_slave, only db_master contains a derby.log file. This is not so nice, since the log file is sometimes needed for test debugging ;-)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DERBY-4980) Replication tests lose derby.log for slave

Posted by "Dag H. Wanvik (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984396#action_12984396 ] 

Dag H. Wanvik commented on DERBY-4980:
--------------------------------------

Just to answer my own question, "Does this fact get logged to the console?":

derby.log is being opened with "-Dderby.infolog.append=true" so that means the contents of both servers logs go to the same derby.log file. Without this option, I still see no error on the console when I start two servers with the same current directory, but stuff would likely be lost.

> Replication tests lose derby.log for slave
> ------------------------------------------
>
>                 Key: DERBY-4980
>                 URL: https://issues.apache.org/jira/browse/DERBY-4980
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.6.1.0, 10.6.2.1, 10.7.1.1
>            Reporter: Dag H. Wanvik
>         Attachments: derby-4980-1.diff
>
>
> After running  ReplicationRun_Local_3_p1 I notice that of the two directories created, db_master and db_slave, only db_master contains a derby.log file. This is not so nice, since the log file is sometimes needed for test debugging ;-)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (DERBY-4980) Replication tests lose derby.log for slave

Posted by "Dag H. Wanvik (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984327#action_12984327 ] 

Dag H. Wanvik edited comment on DERBY-4980 at 1/20/11 2:17 PM:
---------------------------------------------------------------

The behavior was introduced by DERBY-4417 (since 10.6), revision 894607.


      was (Author: dagw):
    The behavior was introduced by DERBY-4417 (since 10.6).

  
> Replication tests lose derby.log for slave
> ------------------------------------------
>
>                 Key: DERBY-4980
>                 URL: https://issues.apache.org/jira/browse/DERBY-4980
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.6.1.0, 10.6.2.1, 10.7.1.1
>            Reporter: Dag H. Wanvik
>         Attachments: derby-4980-1.diff
>
>
> After running  ReplicationRun_Local_3_p1 I notice that of the two directories created, db_master and db_slave, only db_master contains a derby.log file. This is not so nice, since the log file is sometimes needed for test debugging ;-)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (DERBY-4980) Replication tests lose derby.log for slave

Posted by "Dag H. Wanvik (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dag H. Wanvik closed DERBY-4980.
--------------------------------

          Resolution: Fixed
       Fix Version/s: 10.8.0.0
    Issue & fix info:   (was: [Patch Available])

Committed fix as svn 1067366, closing.


> Replication tests lose derby.log for slave
> ------------------------------------------
>
>                 Key: DERBY-4980
>                 URL: https://issues.apache.org/jira/browse/DERBY-4980
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.6.1.0, 10.6.2.1, 10.7.1.1
>            Reporter: Dag H. Wanvik
>            Assignee: Dag H. Wanvik
>             Fix For: 10.8.0.0
>
>         Attachments: derby-4980-1.diff
>
>
> After running  ReplicationRun_Local_3_p1 I notice that of the two directories created, db_master and db_slave, only db_master contains a derby.log file. This is not so nice, since the log file is sometimes needed for test debugging ;-)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (DERBY-4980) Replication tests lose derby.log for slave

Posted by "Dag H. Wanvik (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dag H. Wanvik updated DERBY-4980:
---------------------------------

    Bug behavior facts: [Regression]

> Replication tests lose derby.log for slave
> ------------------------------------------
>
>                 Key: DERBY-4980
>                 URL: https://issues.apache.org/jira/browse/DERBY-4980
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.6.1.0, 10.6.2.1, 10.7.1.1
>            Reporter: Dag H. Wanvik
>         Attachments: derby-4980-1.diff
>
>
> After running  ReplicationRun_Local_3_p1 I notice that of the two directories created, db_master and db_slave, only db_master contains a derby.log file. This is not so nice, since the log file is sometimes needed for test debugging ;-)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DERBY-4980) Replication tests lose derby.log for slave

Posted by "Dag H. Wanvik (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984327#action_12984327 ] 

Dag H. Wanvik commented on DERBY-4980:
--------------------------------------

The behavior was introduced by DERBY-4417 (since 10.6).


> Replication tests lose derby.log for slave
> ------------------------------------------
>
>                 Key: DERBY-4980
>                 URL: https://issues.apache.org/jira/browse/DERBY-4980
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.6.1.0, 10.6.2.1, 10.7.1.1
>            Reporter: Dag H. Wanvik
>         Attachments: derby-4980-1.diff
>
>
> After running  ReplicationRun_Local_3_p1 I notice that of the two directories created, db_master and db_slave, only db_master contains a derby.log file. This is not so nice, since the log file is sometimes needed for test debugging ;-)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DERBY-4980) Replication tests lose derby.log for slave

Posted by "Dag H. Wanvik (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dag H. Wanvik updated DERBY-4980:
---------------------------------

    Issue & fix info: [Patch Available]

> Replication tests lose derby.log for slave
> ------------------------------------------
>
>                 Key: DERBY-4980
>                 URL: https://issues.apache.org/jira/browse/DERBY-4980
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.6.1.0, 10.6.2.1, 10.7.1.1
>            Reporter: Dag H. Wanvik
>         Attachments: derby-4980-1.diff
>
>
> After running  ReplicationRun_Local_3_p1 I notice that of the two directories created, db_master and db_slave, only db_master contains a derby.log file. This is not so nice, since the log file is sometimes needed for test debugging ;-)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (DERBY-4980) Replication tests lose derby.log for slave

Posted by "Dag H. Wanvik (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dag H. Wanvik reassigned DERBY-4980:
------------------------------------

    Assignee: Dag H. Wanvik

> Replication tests lose derby.log for slave
> ------------------------------------------
>
>                 Key: DERBY-4980
>                 URL: https://issues.apache.org/jira/browse/DERBY-4980
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.6.1.0, 10.6.2.1, 10.7.1.1
>            Reporter: Dag H. Wanvik
>            Assignee: Dag H. Wanvik
>             Fix For: 10.8.0.0
>
>         Attachments: derby-4980-1.diff
>
>
> After running  ReplicationRun_Local_3_p1 I notice that of the two directories created, db_master and db_slave, only db_master contains a derby.log file. This is not so nice, since the log file is sometimes needed for test debugging ;-)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DERBY-4980) Replication tests lose derby.log for slave

Posted by "Dag H. Wanvik (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984388#action_12984388 ] 

Dag H. Wanvik commented on DERBY-4980:
--------------------------------------

ReplicationSuite ran ok with the patch.


> Replication tests lose derby.log for slave
> ------------------------------------------
>
>                 Key: DERBY-4980
>                 URL: https://issues.apache.org/jira/browse/DERBY-4980
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.6.1.0, 10.6.2.1, 10.7.1.1
>            Reporter: Dag H. Wanvik
>         Attachments: derby-4980-1.diff
>
>
> After running  ReplicationRun_Local_3_p1 I notice that of the two directories created, db_master and db_slave, only db_master contains a derby.log file. This is not so nice, since the log file is sometimes needed for test debugging ;-)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.