You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Paul Noden (JIRA)" <ji...@apache.org> on 2008/05/06 19:22:57 UTC

[jira] Created: (SLING-425) SlingLogFileWriter fails three test cases

SlingLogFileWriter fails three test cases
-----------------------------------------

                 Key: SLING-425
                 URL: https://issues.apache.org/jira/browse/SLING-425
             Project: Sling
          Issue Type: Bug
          Components: Testing
         Environment: Windows
            Reporter: Paul Noden
            Priority: Minor


The test for SlingLogFileWriter failed in the three test cases in SlingLogFileWriterTest where assertTrue(test.exists() && test.length() > 0) is made. I took the liberty of commenting out from this line to the end of each test case and found that all the other tests  in the build process on windows still reported successful - with the exception of the tests run once sling has started up, all of which fail  with "Sling services not available."- I'm hoping this is a consequence of these logging issues.

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


[jira] Updated: (SLING-425) SlingLogFileWriter fails three test cases

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

Paul Noden updated SLING-425:
-----------------------------


Sorry, but the tests for all three rotate tests still failed.

I checked the contents of the log files and they seemed accurate, so I turned on the exception logging.

I commented out assertTrue(test.length() > 0); out in all three tests and tried again : failed
I additionally commented out assertTrue(test0.exists()); for the rotate 0 and 1 tests and tried again : failed
I additionally commented out assertTrue(test1.exists()); for the rotate1 tests : success (same org.apache.sling.launchpad.webapp.integrationtest errors due to wait expired - talked to bertrand and may be raising a new jira for these, depending on some environment improvements i've made - which might lead to some hints and tips for building with maven )

> SlingLogFileWriter fails three test cases
> -----------------------------------------
>
>                 Key: SLING-425
>                 URL: https://issues.apache.org/jira/browse/SLING-425
>             Project: Sling
>          Issue Type: Bug
>          Components: Testing
>         Environment: Windows
>            Reporter: Paul Noden
>            Assignee: Bertrand Delacretaz
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: SlingLogFileWriterTest.java
>
>
> The test for SlingLogFileWriter failed in the three test cases in SlingLogFileWriterTest where assertTrue(test.exists() && test.length() > 0) is made. I took the liberty of commenting out from this line to the end of each test case and found that all the other tests  in the build process on windows still reported successful - with the exception of the tests run once sling has started up, all of which fail  with "Sling services not available."- I'm hoping this is a consequence of these logging issues.

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


[jira] Updated: (SLING-425) SlingLogFileWriter fails three test cases

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

Carsten Ziegeler updated SLING-425:
-----------------------------------

    Fix Version/s: 2.0.0

This should be fixed for the first release

> SlingLogFileWriter fails three test cases
> -----------------------------------------
>
>                 Key: SLING-425
>                 URL: https://issues.apache.org/jira/browse/SLING-425
>             Project: Sling
>          Issue Type: Bug
>          Components: Testing
>         Environment: Windows
>            Reporter: Paul Noden
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: SlingLogFileWriterTest.java
>
>
> The test for SlingLogFileWriter failed in the three test cases in SlingLogFileWriterTest where assertTrue(test.exists() && test.length() > 0) is made. I took the liberty of commenting out from this line to the end of each test case and found that all the other tests  in the build process on windows still reported successful - with the exception of the tests run once sling has started up, all of which fail  with "Sling services not available."- I'm hoping this is a consequence of these logging issues.

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


[jira] Assigned: (SLING-425) SlingLogFileWriter fails three test cases

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

Bertrand Delacretaz reassigned SLING-425:
-----------------------------------------

    Assignee:     (was: Bertrand Delacretaz)

Unassigning - I won't work on this right now.

I'm wondering if the way log files are rotated causes issues with the way Windows caches filesystem info, so that tests see stale information about the rotated files.

> SlingLogFileWriter fails three test cases
> -----------------------------------------
>
>                 Key: SLING-425
>                 URL: https://issues.apache.org/jira/browse/SLING-425
>             Project: Sling
>          Issue Type: Bug
>          Components: Testing
>         Environment: Windows
>            Reporter: Paul Noden
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: SlingLogFileWriterTest.java
>
>
> The test for SlingLogFileWriter failed in the three test cases in SlingLogFileWriterTest where assertTrue(test.exists() && test.length() > 0) is made. I took the liberty of commenting out from this line to the end of each test case and found that all the other tests  in the build process on windows still reported successful - with the exception of the tests run once sling has started up, all of which fail  with "Sling services not available."- I'm hoping this is a consequence of these logging issues.

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


[jira] Assigned: (SLING-425) SlingLogFileWriter fails three test cases

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

Bertrand Delacretaz reassigned SLING-425:
-----------------------------------------

    Assignee: Bertrand Delacretaz

> SlingLogFileWriter fails three test cases
> -----------------------------------------
>
>                 Key: SLING-425
>                 URL: https://issues.apache.org/jira/browse/SLING-425
>             Project: Sling
>          Issue Type: Bug
>          Components: Testing
>         Environment: Windows
>            Reporter: Paul Noden
>            Assignee: Bertrand Delacretaz
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: SlingLogFileWriterTest.java
>
>
> The test for SlingLogFileWriter failed in the three test cases in SlingLogFileWriterTest where assertTrue(test.exists() && test.length() > 0) is made. I took the liberty of commenting out from this line to the end of each test case and found that all the other tests  in the build process on windows still reported successful - with the exception of the tests run once sling has started up, all of which fail  with "Sling services not available."- I'm hoping this is a consequence of these logging issues.

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


[jira] Commented: (SLING-425) SlingLogFileWriter fails three test cases

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12594672#action_12594672 ] 

Felix Meschberger commented on SLING-425:
-----------------------------------------

Thanks for reporting. Will look into this.

> SlingLogFileWriter fails three test cases
> -----------------------------------------
>
>                 Key: SLING-425
>                 URL: https://issues.apache.org/jira/browse/SLING-425
>             Project: Sling
>          Issue Type: Bug
>          Components: Testing
>         Environment: Windows
>            Reporter: Paul Noden
>            Priority: Minor
>
> The test for SlingLogFileWriter failed in the three test cases in SlingLogFileWriterTest where assertTrue(test.exists() && test.length() > 0) is made. I took the liberty of commenting out from this line to the end of each test case and found that all the other tests  in the build process on windows still reported successful - with the exception of the tests run once sling has started up, all of which fail  with "Sling services not available."- I'm hoping this is a consequence of these logging issues.

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


[jira] Updated: (SLING-425) SlingLogFileWriter fails three test cases

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

Paul Noden updated SLING-425:
-----------------------------

    Attachment: SlingLogFileWriterTest.java

Attached SlingLogFileWriterTest.java. The tests which fail on windows are indicated with // TODO: TEST FAILURE: 

> SlingLogFileWriter fails three test cases
> -----------------------------------------
>
>                 Key: SLING-425
>                 URL: https://issues.apache.org/jira/browse/SLING-425
>             Project: Sling
>          Issue Type: Bug
>          Components: Testing
>         Environment: Windows
>            Reporter: Paul Noden
>            Priority: Minor
>         Attachments: SlingLogFileWriterTest.java
>
>
> The test for SlingLogFileWriter failed in the three test cases in SlingLogFileWriterTest where assertTrue(test.exists() && test.length() > 0) is made. I took the liberty of commenting out from this line to the end of each test case and found that all the other tests  in the build process on windows still reported successful - with the exception of the tests run once sling has started up, all of which fail  with "Sling services not available."- I'm hoping this is a consequence of these logging issues.

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


[jira] Resolved: (SLING-425) SlingLogFileWriter fails three test cases

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

Bertrand Delacretaz resolved SLING-425.
---------------------------------------

    Resolution: Fixed

Fixed in revision 654502 - the problem was using the same base log file for several tests, now they all use their own unique base file.

Thanks very much for reporting - please cross-check and close this issue if ok.

> SlingLogFileWriter fails three test cases
> -----------------------------------------
>
>                 Key: SLING-425
>                 URL: https://issues.apache.org/jira/browse/SLING-425
>             Project: Sling
>          Issue Type: Bug
>          Components: Testing
>         Environment: Windows
>            Reporter: Paul Noden
>            Assignee: Bertrand Delacretaz
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: SlingLogFileWriterTest.java
>
>
> The test for SlingLogFileWriter failed in the three test cases in SlingLogFileWriterTest where assertTrue(test.exists() && test.length() > 0) is made. I took the liberty of commenting out from this line to the end of each test case and found that all the other tests  in the build process on windows still reported successful - with the exception of the tests run once sling has started up, all of which fail  with "Sling services not available."- I'm hoping this is a consequence of these logging issues.

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


[jira] Commented: (SLING-425) SlingLogFileWriter fails three test cases

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12594720#action_12594720 ] 

Felix Meschberger commented on SLING-425:
-----------------------------------------

I can reproduce this test failure on windows - does not happen on my linux box.

> SlingLogFileWriter fails three test cases
> -----------------------------------------
>
>                 Key: SLING-425
>                 URL: https://issues.apache.org/jira/browse/SLING-425
>             Project: Sling
>          Issue Type: Bug
>          Components: Testing
>         Environment: Windows
>            Reporter: Paul Noden
>            Priority: Minor
>
> The test for SlingLogFileWriter failed in the three test cases in SlingLogFileWriterTest where assertTrue(test.exists() && test.length() > 0) is made. I took the liberty of commenting out from this line to the end of each test case and found that all the other tests  in the build process on windows still reported successful - with the exception of the tests run once sling has started up, all of which fail  with "Sling services not available."- I'm hoping this is a consequence of these logging issues.

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