You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Andrew Zhang (JIRA)" <ji...@apache.org> on 2006/07/27 05:36:13 UTC
[jira] Created: (HARMONY-991) [classlib][nio] An unstable test in
o.a.h.tests.java.nio.channels.DatagramChannelTest
[classlib][nio] An unstable test in o.a.h.tests.java.nio.channels.DatagramChannelTest
--------------------------------------------------------------------------------------
Key: HARMONY-991
URL: http://issues.apache.org/jira/browse/HARMONY-991
Project: Harmony
Issue Type: Test
Components: Classlib
Reporter: Andrew Zhang
Test testReceiveSend_NonBlock_Empty_S2C() in DatagramChannelTest is unstable.
Consider:
public void testReceiveSend_NonBlock_Empty_S2C() throws Exception {
this.channel1.configureBlocking(false);
this.channel2.configureBlocking(false);
this.channel1.socket().bind(localAddr2);
sendByDatagramSocket("", localAddr2);
// It may fail here sometimes
receiveByChannel(CAPACITY_NORMAL, localAddr2, "");
}
receiveByChannel() could not guarantee that data can always be receieved from a non-blocking channel. The test fails on my machine sometimes, though infrequently.
I'll upload a patch to fix this problem.
Thanks!
Best regards,
Andrew
--
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-991) [classlib][nio] An unstable test
in o.a.h.tests.java.nio.channels.DatagramChannelTest
Posted by "Andrew Zhang (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-991?page=comments#action_12424032 ]
Andrew Zhang commented on HARMONY-991:
--------------------------------------
Hi Paulex,
The fix looks fine. Thank you very much!
Best regards,
Andrew
> [classlib][nio] An unstable test in o.a.h.tests.java.nio.channels.DatagramChannelTest
> --------------------------------------------------------------------------------------
>
> Key: HARMONY-991
> URL: http://issues.apache.org/jira/browse/HARMONY-991
> Project: Harmony
> Issue Type: Test
> Components: Classlib
> Reporter: Andrew Zhang
> Assigned To: Paulex Yang
> Attachments: nio.diff
>
>
> Test testReceiveSend_NonBlock_Empty_S2C() in DatagramChannelTest is unstable.
> Consider:
> public void testReceiveSend_NonBlock_Empty_S2C() throws Exception {
> this.channel1.configureBlocking(false);
> this.channel2.configureBlocking(false);
> this.channel1.socket().bind(localAddr2);
> sendByDatagramSocket("", localAddr2);
> // It may fail here sometimes
> receiveByChannel(CAPACITY_NORMAL, localAddr2, "");
> }
> receiveByChannel() could not guarantee that data can always be receieved from a non-blocking channel. The test fails on my machine sometimes, though infrequently.
> I'll upload a patch to fix this problem.
> Thanks!
> Best regards,
> Andrew
--
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-991) [classlib][nio] An unstable test in
o.a.h.tests.java.nio.channels.DatagramChannelTest
Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-991?page=all ]
Paulex Yang closed HARMONY-991.
-------------------------------
Verified by Andrew.
> [classlib][nio] An unstable test in o.a.h.tests.java.nio.channels.DatagramChannelTest
> --------------------------------------------------------------------------------------
>
> Key: HARMONY-991
> URL: http://issues.apache.org/jira/browse/HARMONY-991
> Project: Harmony
> Issue Type: Test
> Components: Classlib
> Reporter: Andrew Zhang
> Assigned To: Paulex Yang
> Attachments: nio.diff
>
>
> Test testReceiveSend_NonBlock_Empty_S2C() in DatagramChannelTest is unstable.
> Consider:
> public void testReceiveSend_NonBlock_Empty_S2C() throws Exception {
> this.channel1.configureBlocking(false);
> this.channel2.configureBlocking(false);
> this.channel1.socket().bind(localAddr2);
> sendByDatagramSocket("", localAddr2);
> // It may fail here sometimes
> receiveByChannel(CAPACITY_NORMAL, localAddr2, "");
> }
> receiveByChannel() could not guarantee that data can always be receieved from a non-blocking channel. The test fails on my machine sometimes, though infrequently.
> I'll upload a patch to fix this problem.
> Thanks!
> Best regards,
> Andrew
--
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-991) [classlib][nio] An unstable test in
o.a.h.tests.java.nio.channels.DatagramChannelTest
Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-991?page=all ]
Paulex Yang reassigned HARMONY-991:
-----------------------------------
Assignee: Paulex Yang
> [classlib][nio] An unstable test in o.a.h.tests.java.nio.channels.DatagramChannelTest
> --------------------------------------------------------------------------------------
>
> Key: HARMONY-991
> URL: http://issues.apache.org/jira/browse/HARMONY-991
> Project: Harmony
> Issue Type: Test
> Components: Classlib
> Reporter: Andrew Zhang
> Assigned To: Paulex Yang
> Attachments: nio.diff
>
>
> Test testReceiveSend_NonBlock_Empty_S2C() in DatagramChannelTest is unstable.
> Consider:
> public void testReceiveSend_NonBlock_Empty_S2C() throws Exception {
> this.channel1.configureBlocking(false);
> this.channel2.configureBlocking(false);
> this.channel1.socket().bind(localAddr2);
> sendByDatagramSocket("", localAddr2);
> // It may fail here sometimes
> receiveByChannel(CAPACITY_NORMAL, localAddr2, "");
> }
> receiveByChannel() could not guarantee that data can always be receieved from a non-blocking channel. The test fails on my machine sometimes, though infrequently.
> I'll upload a patch to fix this problem.
> Thanks!
> Best regards,
> Andrew
--
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-991) [classlib][nio] An unstable test in
o.a.h.tests.java.nio.channels.DatagramChannelTest
Posted by "Andrew Zhang (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-991?page=all ]
Andrew Zhang updated HARMONY-991:
---------------------------------
Attachment: nio.diff
Hello,
Would you please try my patch?
Thanks!
Best regards,
Andrew
> [classlib][nio] An unstable test in o.a.h.tests.java.nio.channels.DatagramChannelTest
> --------------------------------------------------------------------------------------
>
> Key: HARMONY-991
> URL: http://issues.apache.org/jira/browse/HARMONY-991
> Project: Harmony
> Issue Type: Test
> Components: Classlib
> Reporter: Andrew Zhang
> Attachments: nio.diff
>
>
> Test testReceiveSend_NonBlock_Empty_S2C() in DatagramChannelTest is unstable.
> Consider:
> public void testReceiveSend_NonBlock_Empty_S2C() throws Exception {
> this.channel1.configureBlocking(false);
> this.channel2.configureBlocking(false);
> this.channel1.socket().bind(localAddr2);
> sendByDatagramSocket("", localAddr2);
> // It may fail here sometimes
> receiveByChannel(CAPACITY_NORMAL, localAddr2, "");
> }
> receiveByChannel() could not guarantee that data can always be receieved from a non-blocking channel. The test fails on my machine sometimes, though infrequently.
> I'll upload a patch to fix this problem.
> Thanks!
> Best regards,
> Andrew
--
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-991) [classlib][nio] An unstable test in
o.a.h.tests.java.nio.channels.DatagramChannelTest
Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-991?page=all ]
Paulex Yang resolved HARMONY-991.
---------------------------------
Resolution: Fixed
Andrew, patch applied at revision r426436, thanks a lot for this enhancement, please verify that the problem is fully fixed as you expected.
> [classlib][nio] An unstable test in o.a.h.tests.java.nio.channels.DatagramChannelTest
> --------------------------------------------------------------------------------------
>
> Key: HARMONY-991
> URL: http://issues.apache.org/jira/browse/HARMONY-991
> Project: Harmony
> Issue Type: Test
> Components: Classlib
> Reporter: Andrew Zhang
> Assigned To: Paulex Yang
> Attachments: nio.diff
>
>
> Test testReceiveSend_NonBlock_Empty_S2C() in DatagramChannelTest is unstable.
> Consider:
> public void testReceiveSend_NonBlock_Empty_S2C() throws Exception {
> this.channel1.configureBlocking(false);
> this.channel2.configureBlocking(false);
> this.channel1.socket().bind(localAddr2);
> sendByDatagramSocket("", localAddr2);
> // It may fail here sometimes
> receiveByChannel(CAPACITY_NORMAL, localAddr2, "");
> }
> receiveByChannel() could not guarantee that data can always be receieved from a non-blocking channel. The test fails on my machine sometimes, though infrequently.
> I'll upload a patch to fix this problem.
> Thanks!
> Best regards,
> Andrew
--
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