You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "tatyana doubtsova (JIRA)" <ji...@apache.org> on 2007/01/24 12:19:49 UTC

[jira] Created: (HARMONY-3046) [classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest

[classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest
------------------------------------------------------------------------------

                 Key: HARMONY-3046
                 URL: https://issues.apache.org/jira/browse/HARMONY-3046
             Project: Harmony
          Issue Type: Bug
         Environment: winXP, msvs, debug, r498914
            Reporter: tatyana doubtsova


The luni module test  tests.api.java.net.DatagramSocketTest seems to be unstable.

While iterative cc run tests.api.java.net.DatagramSocketTest failed 1 time out og 50:
test_connectLjava_net_InetAddressIClass:  tests.api.java.net.DatagramSocketTest
junit.framework.AssertionFailedError: Failed to set up datagram server for native connected Dgram socket test 
	at tests.api.java.net.DatagramSocketTest.test_connectLjava_net_InetAddressI(DatagramSocketTest.java:299)
	at java.lang.reflect.VMReflection.invokeMethod(Native Method)

Running the test separately:
#!sh
JRE_HOME=<PATH_TO_JRE>
A=0
while [ "$A" -lt "50" ]; do                                                -
	ant -Dbuild.module=luni -Dhy.test.forkmode=once -Dhy.test.vm.name=drl \
	-Dtest.jre.home=$JRE_HOME \
    	-Dtest.case=tests.api.java.net.DatagramSocketTest test 2>&1 | tee test.log
 	R=`grep "BUILD FAILED" test.log | wc -l` 		        
	if [ "$R" = 0 ]; then 
	    rm -rf build/test_report 
	else 
	    mv build/test_report build/test_report_${A} 
	fi 										      
	A=`expr $A + 1`
done

I observed 2 more failures (also 1 time outof 50):

test_getPort Failure
 unexpected exception during getPort test : The address is already in use
junit.framework.AssertionFailedError: unexpected exception during getPort test : The address is already in use at tests.api.java.net.DatagramSocketTest.test_getPort(DatagramSocketTest.java:672) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 

test_receiveLjava_net_DatagramPacket Failure 
port 1899 Exception: java.net.SocketTimeoutException: The operation timed out during oversize send test

junit.framework.AssertionFailedError: port 1899 Exception: java.net.SocketTimeoutException: The operation timed out during oversize send test at tests.api.java.net.DatagramSocketTest.receive_oversize_java_net_DatagramPacket(DatagramSocketTest.java:1991) at tests.api.java.net.DatagramSocketTest.test_receiveLjava_net_DatagramPacket(DatagramSocketTest.java) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 

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


[jira] Commented: (HARMONY-3046) [classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest

Posted by "Mikhail Markov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12476227 ] 

Mikhail Markov commented on HARMONY-3046:
-----------------------------------------

Thanks, Alexei! Integrated as expected.
The only thing: could you please remove DatagramSocketTest from the list of intermittently failed tests (exclude.windows.x86.drl.interm)?

> [classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-3046
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3046
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: winXP, msvs, debug, r498914
>            Reporter: tatyana doubtsova
>         Assigned To: Alexei Zakharov
>         Attachments: H-3046.patch, H-3046_1.patch
>
>
> The luni module test  tests.api.java.net.DatagramSocketTest seems to be unstable.
> While iterative cc run tests.api.java.net.DatagramSocketTest failed 1 time out og 50:
> test_connectLjava_net_InetAddressIClass:  tests.api.java.net.DatagramSocketTest
> junit.framework.AssertionFailedError: Failed to set up datagram server for native connected Dgram socket test 
> 	at tests.api.java.net.DatagramSocketTest.test_connectLjava_net_InetAddressI(DatagramSocketTest.java:299)
> 	at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> Running the test separately:
> #!sh
> JRE_HOME=<PATH_TO_JRE>
> A=0
> while [ "$A" -lt "50" ]; do                                                -
> 	ant -Dbuild.module=luni -Dhy.test.forkmode=once -Dhy.test.vm.name=drl \
> 	-Dtest.jre.home=$JRE_HOME \
>     	-Dtest.case=tests.api.java.net.DatagramSocketTest test 2>&1 | tee test.log
>  	R=`grep "BUILD FAILED" test.log | wc -l` 		        
> 	if [ "$R" = 0 ]; then 
> 	    rm -rf build/test_report 
> 	else 
> 	    mv build/test_report build/test_report_${A} 
> 	fi 										      
> 	A=`expr $A + 1`
> done
> I observed 2 more failures (also 1 time outof 50):
> test_getPort Failure
>  unexpected exception during getPort test : The address is already in use
> junit.framework.AssertionFailedError: unexpected exception during getPort test : The address is already in use at tests.api.java.net.DatagramSocketTest.test_getPort(DatagramSocketTest.java:672) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 
> test_receiveLjava_net_DatagramPacket Failure 
> port 1899 Exception: java.net.SocketTimeoutException: The operation timed out during oversize send test
> junit.framework.AssertionFailedError: port 1899 Exception: java.net.SocketTimeoutException: The operation timed out during oversize send test at tests.api.java.net.DatagramSocketTest.receive_oversize_java_net_DatagramPacket(DatagramSocketTest.java:1991) at tests.api.java.net.DatagramSocketTest.test_receiveLjava_net_DatagramPacket(DatagramSocketTest.java) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 

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


[jira] Updated: (HARMONY-3046) [classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest

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

Mikhail Markov updated HARMONY-3046:
------------------------------------

    Attachment: H-3046_1.patch

Here is the updated patch fixing all UDP tests, i.e. DatagramSocketTest, MulticastSocketTest and DatagramPacketTest which could intermittently fail.

Fix description (the same as for HARMONY-2860): I've modified the way of obtaining available ports for the UDP-testing tests: 
right now instead of multiple calls to getNextPortForUDP(), the test is expected to call only once a newly introduced method: getNextPortsForUDP(int ports_num) method reserving the requested number of ports and returning the array containing these ports numbers. After that all ports in the test should be chosen from the pool returned by this method and no no-arg constructor or constructor with zero port of DatagramSocket() (or MulticastSocket()) should be used in the tests explicitly. 

As the fix for HARMONY-2860 is integrated and looks ok for the several test runs, this patch also could be applied.

> [classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-3046
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3046
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: winXP, msvs, debug, r498914
>            Reporter: tatyana doubtsova
>         Assigned To: Alexei Zakharov
>         Attachments: H-3046.patch, H-3046_1.patch
>
>
> The luni module test  tests.api.java.net.DatagramSocketTest seems to be unstable.
> While iterative cc run tests.api.java.net.DatagramSocketTest failed 1 time out og 50:
> test_connectLjava_net_InetAddressIClass:  tests.api.java.net.DatagramSocketTest
> junit.framework.AssertionFailedError: Failed to set up datagram server for native connected Dgram socket test 
> 	at tests.api.java.net.DatagramSocketTest.test_connectLjava_net_InetAddressI(DatagramSocketTest.java:299)
> 	at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> Running the test separately:
> #!sh
> JRE_HOME=<PATH_TO_JRE>
> A=0
> while [ "$A" -lt "50" ]; do                                                -
> 	ant -Dbuild.module=luni -Dhy.test.forkmode=once -Dhy.test.vm.name=drl \
> 	-Dtest.jre.home=$JRE_HOME \
>     	-Dtest.case=tests.api.java.net.DatagramSocketTest test 2>&1 | tee test.log
>  	R=`grep "BUILD FAILED" test.log | wc -l` 		        
> 	if [ "$R" = 0 ]; then 
> 	    rm -rf build/test_report 
> 	else 
> 	    mv build/test_report build/test_report_${A} 
> 	fi 										      
> 	A=`expr $A + 1`
> done
> I observed 2 more failures (also 1 time outof 50):
> test_getPort Failure
>  unexpected exception during getPort test : The address is already in use
> junit.framework.AssertionFailedError: unexpected exception during getPort test : The address is already in use at tests.api.java.net.DatagramSocketTest.test_getPort(DatagramSocketTest.java:672) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 
> test_receiveLjava_net_DatagramPacket Failure 
> port 1899 Exception: java.net.SocketTimeoutException: The operation timed out during oversize send test
> junit.framework.AssertionFailedError: port 1899 Exception: java.net.SocketTimeoutException: The operation timed out during oversize send test at tests.api.java.net.DatagramSocketTest.receive_oversize_java_net_DatagramPacket(DatagramSocketTest.java:1991) at tests.api.java.net.DatagramSocketTest.test_receiveLjava_net_DatagramPacket(DatagramSocketTest.java) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 

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


[jira] Commented: (HARMONY-3046) [classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest

Posted by "Ruth Cao (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12476490 ] 

Ruth Cao commented on HARMONY-3046:
-----------------------------------

And how about the MulticastSocketTest? It seems that the test is passed on both Windows XP and Red hat Linux for me. Is it also possible to remove it from the exclude list (exclude.common) ? Thanks.

> [classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-3046
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3046
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: winXP, msvs, debug, r498914
>            Reporter: tatyana doubtsova
>         Assigned To: Alexei Zakharov
>         Attachments: H-3046.patch, H-3046_1.patch
>
>
> The luni module test  tests.api.java.net.DatagramSocketTest seems to be unstable.
> While iterative cc run tests.api.java.net.DatagramSocketTest failed 1 time out og 50:
> test_connectLjava_net_InetAddressIClass:  tests.api.java.net.DatagramSocketTest
> junit.framework.AssertionFailedError: Failed to set up datagram server for native connected Dgram socket test 
> 	at tests.api.java.net.DatagramSocketTest.test_connectLjava_net_InetAddressI(DatagramSocketTest.java:299)
> 	at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> Running the test separately:
> #!sh
> JRE_HOME=<PATH_TO_JRE>
> A=0
> while [ "$A" -lt "50" ]; do                                                -
> 	ant -Dbuild.module=luni -Dhy.test.forkmode=once -Dhy.test.vm.name=drl \
> 	-Dtest.jre.home=$JRE_HOME \
>     	-Dtest.case=tests.api.java.net.DatagramSocketTest test 2>&1 | tee test.log
>  	R=`grep "BUILD FAILED" test.log | wc -l` 		        
> 	if [ "$R" = 0 ]; then 
> 	    rm -rf build/test_report 
> 	else 
> 	    mv build/test_report build/test_report_${A} 
> 	fi 										      
> 	A=`expr $A + 1`
> done
> I observed 2 more failures (also 1 time outof 50):
> test_getPort Failure
>  unexpected exception during getPort test : The address is already in use
> junit.framework.AssertionFailedError: unexpected exception during getPort test : The address is already in use at tests.api.java.net.DatagramSocketTest.test_getPort(DatagramSocketTest.java:672) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 
> test_receiveLjava_net_DatagramPacket Failure 
> port 1899 Exception: java.net.SocketTimeoutException: The operation timed out during oversize send test
> junit.framework.AssertionFailedError: port 1899 Exception: java.net.SocketTimeoutException: The operation timed out during oversize send test at tests.api.java.net.DatagramSocketTest.receive_oversize_java_net_DatagramPacket(DatagramSocketTest.java:1991) at tests.api.java.net.DatagramSocketTest.test_receiveLjava_net_DatagramPacket(DatagramSocketTest.java) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 

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


[jira] Closed: (HARMONY-3046) [classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest

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

Alexei Zakharov closed HARMONY-3046.
------------------------------------


Was verified by Mikhail. Closed. 

> [classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-3046
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3046
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: winXP, msvs, debug, r498914
>            Reporter: tatyana doubtsova
>         Assigned To: Alexei Zakharov
>         Attachments: H-3046.patch, H-3046_1.patch
>
>
> The luni module test  tests.api.java.net.DatagramSocketTest seems to be unstable.
> While iterative cc run tests.api.java.net.DatagramSocketTest failed 1 time out og 50:
> test_connectLjava_net_InetAddressIClass:  tests.api.java.net.DatagramSocketTest
> junit.framework.AssertionFailedError: Failed to set up datagram server for native connected Dgram socket test 
> 	at tests.api.java.net.DatagramSocketTest.test_connectLjava_net_InetAddressI(DatagramSocketTest.java:299)
> 	at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> Running the test separately:
> #!sh
> JRE_HOME=<PATH_TO_JRE>
> A=0
> while [ "$A" -lt "50" ]; do                                                -
> 	ant -Dbuild.module=luni -Dhy.test.forkmode=once -Dhy.test.vm.name=drl \
> 	-Dtest.jre.home=$JRE_HOME \
>     	-Dtest.case=tests.api.java.net.DatagramSocketTest test 2>&1 | tee test.log
>  	R=`grep "BUILD FAILED" test.log | wc -l` 		        
> 	if [ "$R" = 0 ]; then 
> 	    rm -rf build/test_report 
> 	else 
> 	    mv build/test_report build/test_report_${A} 
> 	fi 										      
> 	A=`expr $A + 1`
> done
> I observed 2 more failures (also 1 time outof 50):
> test_getPort Failure
>  unexpected exception during getPort test : The address is already in use
> junit.framework.AssertionFailedError: unexpected exception during getPort test : The address is already in use at tests.api.java.net.DatagramSocketTest.test_getPort(DatagramSocketTest.java:672) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 
> test_receiveLjava_net_DatagramPacket Failure 
> port 1899 Exception: java.net.SocketTimeoutException: The operation timed out during oversize send test
> junit.framework.AssertionFailedError: port 1899 Exception: java.net.SocketTimeoutException: The operation timed out during oversize send test at tests.api.java.net.DatagramSocketTest.receive_oversize_java_net_DatagramPacket(DatagramSocketTest.java:1991) at tests.api.java.net.DatagramSocketTest.test_receiveLjava_net_DatagramPacket(DatagramSocketTest.java) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 

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


[jira] Updated: (HARMONY-3046) [classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest

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

Alexey Varlamov updated HARMONY-3046:
-------------------------------------

    Component/s: Classlib

> [classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-3046
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3046
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: winXP, msvs, debug, r498914
>            Reporter: tatyana doubtsova
>         Assigned To: Alexei Zakharov
>         Attachments: H-3046.patch
>
>
> The luni module test  tests.api.java.net.DatagramSocketTest seems to be unstable.
> While iterative cc run tests.api.java.net.DatagramSocketTest failed 1 time out og 50:
> test_connectLjava_net_InetAddressIClass:  tests.api.java.net.DatagramSocketTest
> junit.framework.AssertionFailedError: Failed to set up datagram server for native connected Dgram socket test 
> 	at tests.api.java.net.DatagramSocketTest.test_connectLjava_net_InetAddressI(DatagramSocketTest.java:299)
> 	at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> Running the test separately:
> #!sh
> JRE_HOME=<PATH_TO_JRE>
> A=0
> while [ "$A" -lt "50" ]; do                                                -
> 	ant -Dbuild.module=luni -Dhy.test.forkmode=once -Dhy.test.vm.name=drl \
> 	-Dtest.jre.home=$JRE_HOME \
>     	-Dtest.case=tests.api.java.net.DatagramSocketTest test 2>&1 | tee test.log
>  	R=`grep "BUILD FAILED" test.log | wc -l` 		        
> 	if [ "$R" = 0 ]; then 
> 	    rm -rf build/test_report 
> 	else 
> 	    mv build/test_report build/test_report_${A} 
> 	fi 										      
> 	A=`expr $A + 1`
> done
> I observed 2 more failures (also 1 time outof 50):
> test_getPort Failure
>  unexpected exception during getPort test : The address is already in use
> junit.framework.AssertionFailedError: unexpected exception during getPort test : The address is already in use at tests.api.java.net.DatagramSocketTest.test_getPort(DatagramSocketTest.java:672) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 
> test_receiveLjava_net_DatagramPacket Failure 
> port 1899 Exception: java.net.SocketTimeoutException: The operation timed out during oversize send test
> junit.framework.AssertionFailedError: port 1899 Exception: java.net.SocketTimeoutException: The operation timed out during oversize send test at tests.api.java.net.DatagramSocketTest.receive_oversize_java_net_DatagramPacket(DatagramSocketTest.java:1991) at tests.api.java.net.DatagramSocketTest.test_receiveLjava_net_DatagramPacket(DatagramSocketTest.java) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 

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


[jira] Commented: (HARMONY-3046) [classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest

Posted by "Mikhail Markov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12476655 ] 

Mikhail Markov commented on HARMONY-3046:
-----------------------------------------

I still have 7 failures in MulticastSocketTest on my WinXP and 4 failures on SLES 9.

> [classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-3046
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3046
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: winXP, msvs, debug, r498914
>            Reporter: tatyana doubtsova
>         Assigned To: Alexei Zakharov
>         Attachments: H-3046.patch, H-3046_1.patch
>
>
> The luni module test  tests.api.java.net.DatagramSocketTest seems to be unstable.
> While iterative cc run tests.api.java.net.DatagramSocketTest failed 1 time out og 50:
> test_connectLjava_net_InetAddressIClass:  tests.api.java.net.DatagramSocketTest
> junit.framework.AssertionFailedError: Failed to set up datagram server for native connected Dgram socket test 
> 	at tests.api.java.net.DatagramSocketTest.test_connectLjava_net_InetAddressI(DatagramSocketTest.java:299)
> 	at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> Running the test separately:
> #!sh
> JRE_HOME=<PATH_TO_JRE>
> A=0
> while [ "$A" -lt "50" ]; do                                                -
> 	ant -Dbuild.module=luni -Dhy.test.forkmode=once -Dhy.test.vm.name=drl \
> 	-Dtest.jre.home=$JRE_HOME \
>     	-Dtest.case=tests.api.java.net.DatagramSocketTest test 2>&1 | tee test.log
>  	R=`grep "BUILD FAILED" test.log | wc -l` 		        
> 	if [ "$R" = 0 ]; then 
> 	    rm -rf build/test_report 
> 	else 
> 	    mv build/test_report build/test_report_${A} 
> 	fi 										      
> 	A=`expr $A + 1`
> done
> I observed 2 more failures (also 1 time outof 50):
> test_getPort Failure
>  unexpected exception during getPort test : The address is already in use
> junit.framework.AssertionFailedError: unexpected exception during getPort test : The address is already in use at tests.api.java.net.DatagramSocketTest.test_getPort(DatagramSocketTest.java:672) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 
> test_receiveLjava_net_DatagramPacket Failure 
> port 1899 Exception: java.net.SocketTimeoutException: The operation timed out during oversize send test
> junit.framework.AssertionFailedError: port 1899 Exception: java.net.SocketTimeoutException: The operation timed out during oversize send test at tests.api.java.net.DatagramSocketTest.receive_oversize_java_net_DatagramPacket(DatagramSocketTest.java:1991) at tests.api.java.net.DatagramSocketTest.test_receiveLjava_net_DatagramPacket(DatagramSocketTest.java) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 

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


[jira] Updated: (HARMONY-3046) [classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest

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

Mikhail Markov updated HARMONY-3046:
------------------------------------

    Attachment: H-3046.patch

Here is the patch changing the way of obaining next available port for UDP sockets for testing (it modifies DatagramSocketTest & MulticastSocketTest). It should be applied after applying the patch for HARMONY-2860. See the comment there for details.

> [classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-3046
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3046
>             Project: Harmony
>          Issue Type: Bug
>         Environment: winXP, msvs, debug, r498914
>            Reporter: tatyana doubtsova
>         Attachments: H-3046.patch
>
>
> The luni module test  tests.api.java.net.DatagramSocketTest seems to be unstable.
> While iterative cc run tests.api.java.net.DatagramSocketTest failed 1 time out og 50:
> test_connectLjava_net_InetAddressIClass:  tests.api.java.net.DatagramSocketTest
> junit.framework.AssertionFailedError: Failed to set up datagram server for native connected Dgram socket test 
> 	at tests.api.java.net.DatagramSocketTest.test_connectLjava_net_InetAddressI(DatagramSocketTest.java:299)
> 	at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> Running the test separately:
> #!sh
> JRE_HOME=<PATH_TO_JRE>
> A=0
> while [ "$A" -lt "50" ]; do                                                -
> 	ant -Dbuild.module=luni -Dhy.test.forkmode=once -Dhy.test.vm.name=drl \
> 	-Dtest.jre.home=$JRE_HOME \
>     	-Dtest.case=tests.api.java.net.DatagramSocketTest test 2>&1 | tee test.log
>  	R=`grep "BUILD FAILED" test.log | wc -l` 		        
> 	if [ "$R" = 0 ]; then 
> 	    rm -rf build/test_report 
> 	else 
> 	    mv build/test_report build/test_report_${A} 
> 	fi 										      
> 	A=`expr $A + 1`
> done
> I observed 2 more failures (also 1 time outof 50):
> test_getPort Failure
>  unexpected exception during getPort test : The address is already in use
> junit.framework.AssertionFailedError: unexpected exception during getPort test : The address is already in use at tests.api.java.net.DatagramSocketTest.test_getPort(DatagramSocketTest.java:672) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 
> test_receiveLjava_net_DatagramPacket Failure 
> port 1899 Exception: java.net.SocketTimeoutException: The operation timed out during oversize send test
> junit.framework.AssertionFailedError: port 1899 Exception: java.net.SocketTimeoutException: The operation timed out during oversize send test at tests.api.java.net.DatagramSocketTest.receive_oversize_java_net_DatagramPacket(DatagramSocketTest.java:1991) at tests.api.java.net.DatagramSocketTest.test_receiveLjava_net_DatagramPacket(DatagramSocketTest.java) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 

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


[jira] Resolved: (HARMONY-3046) [classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest

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

Alexei Zakharov resolved HARMONY-3046.
--------------------------------------

    Resolution: Fixed

Tatyana, thank you for raising this issue; Mikhail, thanks for the patch. The patch was applied at the revision 512257. Please verify that everything is ok.

> [classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-3046
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3046
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: winXP, msvs, debug, r498914
>            Reporter: tatyana doubtsova
>         Assigned To: Alexei Zakharov
>         Attachments: H-3046.patch, H-3046_1.patch
>
>
> The luni module test  tests.api.java.net.DatagramSocketTest seems to be unstable.
> While iterative cc run tests.api.java.net.DatagramSocketTest failed 1 time out og 50:
> test_connectLjava_net_InetAddressIClass:  tests.api.java.net.DatagramSocketTest
> junit.framework.AssertionFailedError: Failed to set up datagram server for native connected Dgram socket test 
> 	at tests.api.java.net.DatagramSocketTest.test_connectLjava_net_InetAddressI(DatagramSocketTest.java:299)
> 	at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> Running the test separately:
> #!sh
> JRE_HOME=<PATH_TO_JRE>
> A=0
> while [ "$A" -lt "50" ]; do                                                -
> 	ant -Dbuild.module=luni -Dhy.test.forkmode=once -Dhy.test.vm.name=drl \
> 	-Dtest.jre.home=$JRE_HOME \
>     	-Dtest.case=tests.api.java.net.DatagramSocketTest test 2>&1 | tee test.log
>  	R=`grep "BUILD FAILED" test.log | wc -l` 		        
> 	if [ "$R" = 0 ]; then 
> 	    rm -rf build/test_report 
> 	else 
> 	    mv build/test_report build/test_report_${A} 
> 	fi 										      
> 	A=`expr $A + 1`
> done
> I observed 2 more failures (also 1 time outof 50):
> test_getPort Failure
>  unexpected exception during getPort test : The address is already in use
> junit.framework.AssertionFailedError: unexpected exception during getPort test : The address is already in use at tests.api.java.net.DatagramSocketTest.test_getPort(DatagramSocketTest.java:672) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 
> test_receiveLjava_net_DatagramPacket Failure 
> port 1899 Exception: java.net.SocketTimeoutException: The operation timed out during oversize send test
> junit.framework.AssertionFailedError: port 1899 Exception: java.net.SocketTimeoutException: The operation timed out during oversize send test at tests.api.java.net.DatagramSocketTest.receive_oversize_java_net_DatagramPacket(DatagramSocketTest.java:1991) at tests.api.java.net.DatagramSocketTest.test_receiveLjava_net_DatagramPacket(DatagramSocketTest.java) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 

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


[jira] Commented: (HARMONY-3046) [classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12476921 ] 

Alexei Zakharov commented on HARMONY-3046:
------------------------------------------

I've also got 5 failures on WinXP for MulticastSocketTest. Seems it needs more investigation and a separate JIRA. I've removed DatagramSocketTest from the exclude list at r513305.

> [classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-3046
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3046
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: winXP, msvs, debug, r498914
>            Reporter: tatyana doubtsova
>         Assigned To: Alexei Zakharov
>         Attachments: H-3046.patch, H-3046_1.patch
>
>
> The luni module test  tests.api.java.net.DatagramSocketTest seems to be unstable.
> While iterative cc run tests.api.java.net.DatagramSocketTest failed 1 time out og 50:
> test_connectLjava_net_InetAddressIClass:  tests.api.java.net.DatagramSocketTest
> junit.framework.AssertionFailedError: Failed to set up datagram server for native connected Dgram socket test 
> 	at tests.api.java.net.DatagramSocketTest.test_connectLjava_net_InetAddressI(DatagramSocketTest.java:299)
> 	at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> Running the test separately:
> #!sh
> JRE_HOME=<PATH_TO_JRE>
> A=0
> while [ "$A" -lt "50" ]; do                                                -
> 	ant -Dbuild.module=luni -Dhy.test.forkmode=once -Dhy.test.vm.name=drl \
> 	-Dtest.jre.home=$JRE_HOME \
>     	-Dtest.case=tests.api.java.net.DatagramSocketTest test 2>&1 | tee test.log
>  	R=`grep "BUILD FAILED" test.log | wc -l` 		        
> 	if [ "$R" = 0 ]; then 
> 	    rm -rf build/test_report 
> 	else 
> 	    mv build/test_report build/test_report_${A} 
> 	fi 										      
> 	A=`expr $A + 1`
> done
> I observed 2 more failures (also 1 time outof 50):
> test_getPort Failure
>  unexpected exception during getPort test : The address is already in use
> junit.framework.AssertionFailedError: unexpected exception during getPort test : The address is already in use at tests.api.java.net.DatagramSocketTest.test_getPort(DatagramSocketTest.java:672) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 
> test_receiveLjava_net_DatagramPacket Failure 
> port 1899 Exception: java.net.SocketTimeoutException: The operation timed out during oversize send test
> junit.framework.AssertionFailedError: port 1899 Exception: java.net.SocketTimeoutException: The operation timed out during oversize send test at tests.api.java.net.DatagramSocketTest.receive_oversize_java_net_DatagramPacket(DatagramSocketTest.java:1991) at tests.api.java.net.DatagramSocketTest.test_receiveLjava_net_DatagramPacket(DatagramSocketTest.java) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 

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


[jira] Assigned: (HARMONY-3046) [classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest

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

Alexei Zakharov reassigned HARMONY-3046:
----------------------------------------

    Assignee: Alexei Zakharov

> [classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-3046
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3046
>             Project: Harmony
>          Issue Type: Bug
>         Environment: winXP, msvs, debug, r498914
>            Reporter: tatyana doubtsova
>         Assigned To: Alexei Zakharov
>         Attachments: H-3046.patch
>
>
> The luni module test  tests.api.java.net.DatagramSocketTest seems to be unstable.
> While iterative cc run tests.api.java.net.DatagramSocketTest failed 1 time out og 50:
> test_connectLjava_net_InetAddressIClass:  tests.api.java.net.DatagramSocketTest
> junit.framework.AssertionFailedError: Failed to set up datagram server for native connected Dgram socket test 
> 	at tests.api.java.net.DatagramSocketTest.test_connectLjava_net_InetAddressI(DatagramSocketTest.java:299)
> 	at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> Running the test separately:
> #!sh
> JRE_HOME=<PATH_TO_JRE>
> A=0
> while [ "$A" -lt "50" ]; do                                                -
> 	ant -Dbuild.module=luni -Dhy.test.forkmode=once -Dhy.test.vm.name=drl \
> 	-Dtest.jre.home=$JRE_HOME \
>     	-Dtest.case=tests.api.java.net.DatagramSocketTest test 2>&1 | tee test.log
>  	R=`grep "BUILD FAILED" test.log | wc -l` 		        
> 	if [ "$R" = 0 ]; then 
> 	    rm -rf build/test_report 
> 	else 
> 	    mv build/test_report build/test_report_${A} 
> 	fi 										      
> 	A=`expr $A + 1`
> done
> I observed 2 more failures (also 1 time outof 50):
> test_getPort Failure
>  unexpected exception during getPort test : The address is already in use
> junit.framework.AssertionFailedError: unexpected exception during getPort test : The address is already in use at tests.api.java.net.DatagramSocketTest.test_getPort(DatagramSocketTest.java:672) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 
> test_receiveLjava_net_DatagramPacket Failure 
> port 1899 Exception: java.net.SocketTimeoutException: The operation timed out during oversize send test
> junit.framework.AssertionFailedError: port 1899 Exception: java.net.SocketTimeoutException: The operation timed out during oversize send test at tests.api.java.net.DatagramSocketTest.receive_oversize_java_net_DatagramPacket(DatagramSocketTest.java:1991) at tests.api.java.net.DatagramSocketTest.test_receiveLjava_net_DatagramPacket(DatagramSocketTest.java) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 

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