You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by "Ivan Kelly (JIRA)" <ji...@apache.org> on 2012/11/23 17:24:58 UTC

[jira] [Created] (BOOKKEEPER-476) Log to file during tests

Ivan Kelly created BOOKKEEPER-476:
-------------------------------------

             Summary: Log to file during tests
                 Key: BOOKKEEPER-476
                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-476
             Project: Bookkeeper
          Issue Type: Bug
            Reporter: Ivan Kelly
            Assignee: Ivan Kelly
             Fix For: 4.2.0


We should log to file during tests to allow us to debug flakey tests more easily.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (BOOKKEEPER-476) Log to file during tests

Posted by "Ivan Kelly (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BOOKKEEPER-476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan Kelly updated BOOKKEEPER-476:
----------------------------------

    Attachment: 0001-Store-test-logs-in-output-file.patch

logs get stored in target/surefire-reports/<testname>-output.txt

I've also modified BookKeeperClusterTestBase to log the individual test names, so we can see which test is running where.
                
> Log to file during tests
> ------------------------
>
>                 Key: BOOKKEEPER-476
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-476
>             Project: Bookkeeper
>          Issue Type: Bug
>            Reporter: Ivan Kelly
>            Assignee: Ivan Kelly
>             Fix For: 4.2.0
>
>         Attachments: 0001-Store-test-logs-in-output-file.patch
>
>
> We should log to file during tests to allow us to debug flakey tests more easily.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (BOOKKEEPER-476) Log to file during tests

Posted by "Ivan Kelly (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BOOKKEEPER-476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan Kelly updated BOOKKEEPER-476:
----------------------------------

    Attachment: 0001-BOOKKEEPER-476-Store-test-logs-in-output-file.patch
    
> Log to file during tests
> ------------------------
>
>                 Key: BOOKKEEPER-476
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-476
>             Project: Bookkeeper
>          Issue Type: Bug
>            Reporter: Ivan Kelly
>            Assignee: Ivan Kelly
>             Fix For: 4.2.0
>
>         Attachments: 0001-BOOKKEEPER-476-Store-test-logs-in-output-file.patch, 0001-Store-test-logs-in-output-file.patch
>
>
> We should log to file during tests to allow us to debug flakey tests more easily.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (BOOKKEEPER-476) Log to file during tests

Posted by "Flavio Junqueira (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504719#comment-13504719 ] 

Flavio Junqueira commented on BOOKKEEPER-476:
---------------------------------------------

Ivan, Is it intentional to change the log4j properties?
                
> Log to file during tests
> ------------------------
>
>                 Key: BOOKKEEPER-476
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-476
>             Project: Bookkeeper
>          Issue Type: Bug
>            Reporter: Ivan Kelly
>            Assignee: Ivan Kelly
>             Fix For: 4.2.0
>
>         Attachments: 0001-BOOKKEEPER-476-Store-test-logs-in-output-file.patch, 0001-Store-test-logs-in-output-file.patch
>
>
> We should log to file during tests to allow us to debug flakey tests more easily.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (BOOKKEEPER-476) Log to file during tests

Posted by "Flavio Junqueira (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504756#comment-13504756 ] 

Flavio Junqueira commented on BOOKKEEPER-476:
---------------------------------------------

I just noticed that my previous question was not very clear. I was thinking that we could log to files without this: 

+log4j.rootLogger=INFO, CONSOLE

and using a different appender, but from the rest of the patch, it sounds like this part of the change. It looks fine for me otherwise.
                
> Log to file during tests
> ------------------------
>
>                 Key: BOOKKEEPER-476
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-476
>             Project: Bookkeeper
>          Issue Type: Bug
>            Reporter: Ivan Kelly
>            Assignee: Ivan Kelly
>             Fix For: 4.2.0
>
>         Attachments: 0001-BOOKKEEPER-476-Store-test-logs-in-output-file.patch, 0001-Store-test-logs-in-output-file.patch
>
>
> We should log to file during tests to allow us to debug flakey tests more easily.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (BOOKKEEPER-476) Log to file during tests

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504539#comment-13504539 ] 

Hadoop QA commented on BOOKKEEPER-476:
--------------------------------------

Testing JIRA BOOKKEEPER-476

WARNING: Running test-patch on a dirty local svn workspace

Patch <a href="/jira/secure/attachment/12554738/0001-Store-test-logs-in-output-file.patch">/jira/secure/attachment/12554738/0001-Store-test-logs-in-output-file.patch</a> downloaded at Tue Nov 27 11:07:23 UTC 2012

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

{color:red}-1{color} Patch failed to apply to head of branch

----------------------------
                
> Log to file during tests
> ------------------------
>
>                 Key: BOOKKEEPER-476
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-476
>             Project: Bookkeeper
>          Issue Type: Bug
>            Reporter: Ivan Kelly
>            Assignee: Ivan Kelly
>             Fix For: 4.2.0
>
>         Attachments: 0001-Store-test-logs-in-output-file.patch
>
>
> We should log to file during tests to allow us to debug flakey tests more easily.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (BOOKKEEPER-476) Log to file during tests

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505053#comment-13505053 ] 

Hudson commented on BOOKKEEPER-476:
-----------------------------------

Integrated in bookkeeper-trunk #825 (See [https://builds.apache.org/job/bookkeeper-trunk/825/])
    BOOKKEEPER-476: Log to file during tests (ivank via fpj) (Revision 1414382)

     Result = FAILURE
fpj : 
Files : 
* /zookeeper/bookkeeper/trunk/CHANGES.txt
* /zookeeper/bookkeeper/trunk/bookkeeper-benchmark/src/test/resources/log4j.properties
* /zookeeper/bookkeeper/trunk/bookkeeper-server/src/test/java/org/apache/bookkeeper/test/BookKeeperClusterTestCase.java
* /zookeeper/bookkeeper/trunk/bookkeeper-server/src/test/resources/log4j.properties
* /zookeeper/bookkeeper/trunk/hedwig-server/src/test/resources/log4j.properties
* /zookeeper/bookkeeper/trunk/pom.xml

                
> Log to file during tests
> ------------------------
>
>                 Key: BOOKKEEPER-476
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-476
>             Project: Bookkeeper
>          Issue Type: Improvement
>            Reporter: Ivan Kelly
>            Assignee: Ivan Kelly
>             Fix For: 4.2.0
>
>         Attachments: 0001-BOOKKEEPER-476-Store-test-logs-in-output-file.patch, 0001-Store-test-logs-in-output-file.patch
>
>
> We should log to file during tests to allow us to debug flakey tests more easily.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (BOOKKEEPER-476) Log to file during tests

Posted by "Ivan Kelly (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504761#comment-13504761 ] 

Ivan Kelly commented on BOOKKEEPER-476:
---------------------------------------

This is part of the patch. Mvn will take the stdout from each test and put it in a separate file.
                
> Log to file during tests
> ------------------------
>
>                 Key: BOOKKEEPER-476
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-476
>             Project: Bookkeeper
>          Issue Type: Bug
>            Reporter: Ivan Kelly
>            Assignee: Ivan Kelly
>             Fix For: 4.2.0
>
>         Attachments: 0001-BOOKKEEPER-476-Store-test-logs-in-output-file.patch, 0001-Store-test-logs-in-output-file.patch
>
>
> We should log to file during tests to allow us to debug flakey tests more easily.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (BOOKKEEPER-476) Log to file during tests

Posted by "Flavio Junqueira (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BOOKKEEPER-476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Flavio Junqueira updated BOOKKEEPER-476:
----------------------------------------

    Issue Type: Improvement  (was: Bug)
    
> Log to file during tests
> ------------------------
>
>                 Key: BOOKKEEPER-476
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-476
>             Project: Bookkeeper
>          Issue Type: Improvement
>            Reporter: Ivan Kelly
>            Assignee: Ivan Kelly
>             Fix For: 4.2.0
>
>         Attachments: 0001-BOOKKEEPER-476-Store-test-logs-in-output-file.patch, 0001-Store-test-logs-in-output-file.patch
>
>
> We should log to file during tests to allow us to debug flakey tests more easily.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira