You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Paulex Yang (JIRA)" <ji...@apache.org> on 2006/04/13 07:41:59 UTC

[jira] Created: (HARMONY-339) some network channel test cases are unstable

some network channel test cases are unstable
--------------------------------------------

         Key: HARMONY-339
         URL: http://issues.apache.org/jira/browse/HARMONY-339
     Project: Harmony
        Type: Bug

  Components: Classlib  
    Reporter: Paulex Yang


DatagramChannelTest is platform dependent, which fails in receiveByChannel() on SUSE linux, SocketChannelTest and 
ServerSocketChannelTest are unstable and fails sometimes because of race condition, they should be improved or commented out. I'll attach patch soon.


-- 
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


[jira] Closed: (HARMONY-339) some network channel test cases are unstable

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-339?page=all ]
     
Tim Ellison closed HARMONY-339:
-------------------------------

    Resolution: Fixed

Closing as per Paulex's request.


> some network channel test cases are unstable
> --------------------------------------------
>
>          Key: HARMONY-339
>          URL: http://issues.apache.org/jira/browse/HARMONY-339
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: Tim Ellison
>  Attachments: 01.Harmony339.java.nio.test.diff, revert.part.of.339.that.is.causing.linux.test.failures.diff
>
> DatagramChannelTest is platform dependent, which fails in receiveByChannel() on SUSE linux, SocketChannelTest and 
> ServerSocketChannelTest are unstable and fails sometimes because of race condition, they should be improved or commented out. I'll attach patch soon.

-- 
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


[jira] Updated: (HARMONY-339) some network channel test cases are unstable

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-339?page=all ]

Paulex Yang updated HARMONY-339:
--------------------------------

    Attachment: 01.Harmony339.java.nio.test.diff

pls. try this patch to improve the channel test cases. thanks a lot.

> some network channel test cases are unstable
> --------------------------------------------
>
>          Key: HARMONY-339
>          URL: http://issues.apache.org/jira/browse/HARMONY-339
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>  Attachments: 01.Harmony339.java.nio.test.diff
>
> DatagramChannelTest is platform dependent, which fails in receiveByChannel() on SUSE linux, SocketChannelTest and 
> ServerSocketChannelTest are unstable and fails sometimes because of race condition, they should be improved or commented out. I'll attach patch soon.

-- 
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


[jira] Commented: (HARMONY-339) some network channel test cases are unstable

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-339?page=comments#action_12377995 ] 

Tim Ellison commented on HARMONY-339:
-------------------------------------

Thanks Mark -- I've applied a modified version of your rollback patch.  Some of the original assertions are checking for specific error messages on an exception, and that doesn't make sense -- I've commented out those assertions with a FIXME flag.

> some network channel test cases are unstable
> --------------------------------------------
>
>          Key: HARMONY-339
>          URL: http://issues.apache.org/jira/browse/HARMONY-339
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: Tim Ellison
>  Attachments: 01.Harmony339.java.nio.test.diff, revert.part.of.339.that.is.causing.linux.test.failures.diff
>
> DatagramChannelTest is platform dependent, which fails in receiveByChannel() on SUSE linux, SocketChannelTest and 
> ServerSocketChannelTest are unstable and fails sometimes because of race condition, they should be improved or commented out. I'll attach patch soon.

-- 
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


[jira] Updated: (HARMONY-339) some network channel test cases are unstable

Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-339?page=all ]

Mark Hindess updated HARMONY-339:
---------------------------------

    Attachment: revert.part.of.339.that.is.causing.linux.test.failures.diff

We've been seeing Linux test failures since this change went in.  The attached revert.*diff undoes the changes that cause the problems.  I should also note that since this patch has been applied there is still a test failing quite frequently on windows:

testReadByteBuffer_NonBlocking_ReadWriteRealTooLargeData	Error:

java.lang.IllegalArgumentException at java.nio.Buffer.position(Buffer.java:235) at org.apache.harmony.nio.internal.SocketChannelImpl.writeImpl(SocketChannelImpl.java:491) at org.apache.harmony.nio.internal.SocketChannelImpl.write(SocketChannelImpl.java:447) at org.apache.harmony.tests.java.nio.channels.SocketChannelTest.testReadByteBuffer_NonBlocking_ReadWriteRealTooLargeData(SocketChannelTest.java:2477) at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)	



> some network channel test cases are unstable
> --------------------------------------------
>
>          Key: HARMONY-339
>          URL: http://issues.apache.org/jira/browse/HARMONY-339
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: Tim Ellison
>  Attachments: 01.Harmony339.java.nio.test.diff, revert.part.of.339.that.is.causing.linux.test.failures.diff
>
> DatagramChannelTest is platform dependent, which fails in receiveByChannel() on SUSE linux, SocketChannelTest and 
> ServerSocketChannelTest are unstable and fails sometimes because of race condition, they should be improved or commented out. I'll attach patch soon.

-- 
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


[jira] Reopened: (HARMONY-339) some network channel test cases are unstable

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-339?page=all ]
     
Tim Ellison reopened HARMONY-339:
---------------------------------


Showing failures on Linux build.

> some network channel test cases are unstable
> --------------------------------------------
>
>          Key: HARMONY-339
>          URL: http://issues.apache.org/jira/browse/HARMONY-339
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: Tim Ellison
>  Attachments: 01.Harmony339.java.nio.test.diff, revert.part.of.339.that.is.causing.linux.test.failures.diff
>
> DatagramChannelTest is platform dependent, which fails in receiveByChannel() on SUSE linux, SocketChannelTest and 
> ServerSocketChannelTest are unstable and fails sometimes because of race condition, they should be improved or commented out. I'll attach patch soon.

-- 
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


[jira] Resolved: (HARMONY-339) some network channel test cases are unstable

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-339?page=all ]
     
Tim Ellison resolved HARMONY-339:
---------------------------------

    Resolution: Fixed

Thanks Paulex.

Patch applied to NIO module tests at repo revision 399241.

Please check that the patch was applied as you expected.


> some network channel test cases are unstable
> --------------------------------------------
>
>          Key: HARMONY-339
>          URL: http://issues.apache.org/jira/browse/HARMONY-339
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: Tim Ellison
>  Attachments: 01.Harmony339.java.nio.test.diff
>
> DatagramChannelTest is platform dependent, which fails in receiveByChannel() on SUSE linux, SocketChannelTest and 
> ServerSocketChannelTest are unstable and fails sometimes because of race condition, they should be improved or commented out. I'll attach patch soon.

-- 
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


[jira] Commented: (HARMONY-339) some network channel test cases are unstable

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-339?page=comments#action_12412141 ] 

Paulex Yang commented on HARMONY-339:
-------------------------------------

About the new failures introduced by my original patch, I have identified that this is a platform difference between Linux and Windows, so I'll raise another JIRA to reconstruct NIO-channel test cases to platform dependent according to the testing convention. (http://incubator.apache.org/harmony/subcomponents/classlibrary/testing.html)

About the testReadByteBuffer_NonBlocking_ReadWriteRealTooLargeData Error, I cannot reproduce it locally, but by reviewing codes, I suspect this is not a bug of test case but one of  SocketChannelImpl.write() method, and I'll try to identify it and raise another JIRA on it.

If no objection, I suggest to close this JIRA for now.

> some network channel test cases are unstable
> --------------------------------------------
>
>          Key: HARMONY-339
>          URL: http://issues.apache.org/jira/browse/HARMONY-339
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: Tim Ellison
>  Attachments: 01.Harmony339.java.nio.test.diff, revert.part.of.339.that.is.causing.linux.test.failures.diff
>
> DatagramChannelTest is platform dependent, which fails in receiveByChannel() on SUSE linux, SocketChannelTest and 
> ServerSocketChannelTest are unstable and fails sometimes because of race condition, they should be improved or commented out. I'll attach patch soon.

-- 
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


[jira] Assigned: (HARMONY-339) some network channel test cases are unstable

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-339?page=all ]

Tim Ellison reassigned HARMONY-339:
-----------------------------------

    Assign To: Tim Ellison

> some network channel test cases are unstable
> --------------------------------------------
>
>          Key: HARMONY-339
>          URL: http://issues.apache.org/jira/browse/HARMONY-339
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: Tim Ellison
>  Attachments: 01.Harmony339.java.nio.test.diff
>
> DatagramChannelTest is platform dependent, which fails in receiveByChannel() on SUSE linux, SocketChannelTest and 
> ServerSocketChannelTest are unstable and fails sometimes because of race condition, they should be improved or commented out. I'll attach patch soon.

-- 
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