JDK-7158947 : (fs) java/nio/file/WatchService/Basic.java hangs periodically [sol11]
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 7,8,9
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: solaris_11
  • CPU: x86
  • Submitted: 2012-04-04
  • Updated: 2025-03-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Description
TESTFAIL:java/nio/file/WatchService/Basic.java
test java/nio/file/WatchService/Basic.java failed on solaris 11 x86 since fcs with timeout because WatchService.take() doesn't receive WatchKey after remove directory with jdk7u6b02, jdk7u5b01 and jdk7b148

failed with jdk8b31 too
 
WatchService.take() works fine when test remove file:
register /var/tmp/name97488885698793905 for ENTRY_DELETE
delete /var/tmp/name97488885698793905/foo
take events...
got event: type=ENTRY_DELETE, count=1, context=foo

test passed on solaris 10 x86, solaris 11 sparc, failed on both available solaris 11 x86: stt-125.ru, stt-129.ru

see comments for more details

Comments
No sightings of this problem have been reported in more than six years and it concerns Solaris-x86 which is no longer supported. Resolving as WnF.
01-07-2022

Release team: Approved for deferral to 9.
19-09-2013

Also affect test: java_nio/file/TestWatchKey/TestWatchKey02 [2013-08-31T23:46:44.96] ${JAVAC} ${JAVAC_OPTS} -d ${test_work_dir} ${test_work_dir}/TestWatchKey02.java [2013-08-31T23:46:44.96] # Actual: /home/aurora/sandbox/jdk/bin/javac -d /home/aurora/sandbox/results/ResultDir/TestWatchKey02 /home/aurora/sandbox/results/ResultDir/TestWatchKey02/TestWatchKey02.java [2013-08-31T23:46:46.24] ${JAVA} ${JAVA_OPTS} ${EXECUTE_CLASS} ${TEST_ARGS} [2013-08-31T23:46:46.26] # Actual: /home/aurora/sandbox/jdk/bin/java -d64 -server TestWatchKey02 [2013-08-31T23:46:46.56] Total tests for TestWatchKey02 : 2 [2013-08-31T23:46:46.58] TestWatchKey02Test01()Fail [2013-08-31T23:46:56.59] TestWatchKey02Test02()Pass [2013-08-31T23:47:01.60] Pass count: 1 [2013-08-31T23:47:01.60] Fail count: 1 [2013-08-31T23:47:01.60] Test for TestWatchKey02.java Failed [2013-08-31T23:47:01.60] # Test level exit status: 1 # Host info: SunOS jsn-sfx4200-3 5.11 11.0 i86pc i386 i86pc
03-09-2013

This test also failed for the TL JDK 8 nightly aurora run on 7/3/2013: JavaTest Message: Test threw exception: java.lang.RuntimeException #Test Results (version 2) #Tue Jul 02 20:22:37 PDT 2013 #checksum:421a91d718292924 #-----testdescription----- $file=/home/aurora/sandbox/testbase/test/java/nio/file/WatchService/Basic.java $root=/home/aurora/sandbox/testbase/test keywords=bug4313887 bug6838333 bug7017446 library=.. run=USER_SPECIFIED main Basic\n source=Basic.java title=Unit test for java.nio.file.WatchService #-----environment----- #-----testresult----- description=file\:/home/aurora/sandbox/testbase/test/java/nio/file/WatchService/Basic.java elapsed=480875 0\:08\:00.875 end=Tue Jul 02 20\:22\:37 PDT 2013 environment=regtest execStatus=Error. Timeout hostname=jsn-sfx4200-3 javatestOS=SunOS 5.11 (x86) javatestVersion=4.4 jtregVersion=jtreg 4.1 fcs b06 script=com.sun.javatest.regtest.RegressionScript sections=script_messages build compile main start=Tue Jul 02 20\:14\:36 PDT 2013 test=java/nio/file/WatchService/Basic.java user.name=aurora work=/home/aurora/sandbox/gresults/testoutput/jdk_nio/JTwork/java/nio/file/WatchService #section:script_messages ----------messages:(5/214)---------- JDK under test: (/home/aurora/sandbox/jdk) java version "1.8.0-ea" Java(TM) SE Runtime Environment (build 1.8.0-ea-langtools-nightly-h4992-20130702-b97-b00) Java HotSpot(TM) Server VM (build 25.0-b38, mixed mode) #section:build ----------messages:(3/90)---------- command: build Basic reason: Named class compiled on demand elapsed time (seconds): 0.111 result: Passed. Build successful #section:compile ----------messages:(3/196)---------- command: compile -XDignore.symbol.file=true /home/aurora/sandbox/testbase/test/java/nio/file/WatchService/Basic.java reason: .class file out of date or does not exist elapsed time (seconds): 0.11 result: Passed. Compilation successful #section:main ----------messages:(4/135)---------- command: main Basic reason: User specified action: run main Basic Timeout signalled after 480 seconds elapsed time (seconds): 480.761 ----------System.out:(28/841)---------- -- Standard Events -- register /var/tmp/name7535657617000081028 for ENTRY_CREATE create /var/tmp/name7535657617000081028/foo take events... got event: type=ENTRY_CREATE, count=1, context=foo reset key OKAY register /var/tmp/name7535657617000081028 for ENTRY_DELETE delete /var/tmp/name7535657617000081028/foo take events... got event: type=ENTRY_DELETE, count=1, context=foo reset key OKAY register /var/tmp/name7535657617000081028 for ENTRY_MODIFY update: /var/tmp/name7535657617000081028/foo take events... got event: type=ENTRY_MODIFY, count=1, context=foo OKAY -- Cancel -- register /var/tmp/name7535657617000081028 for events cancel key create: /var/tmp/name7535657617000081028/mars poll... OKAY -- Automatic Cancel -- register /var/tmp/name7535657617000081028/bar for events delete: /var/tmp/name7535657617000081028/bar take events... ----------System.err:(22/1281)---------- java.lang.RuntimeException: java.lang.InterruptedException at Basic.takeExpectedKey(Basic.java:58) at Basic.testAutomaticCancel(Basic.java:215) at Basic.main(Basic.java:477) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:491) at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:728) at java.lang.Thread.run(Thread.java:724) Caused by: java.lang.InterruptedException at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2012) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2046) at java.util.concurrent.LinkedBlockingDeque.takeFirst(LinkedBlockingDeque.java:489) at java.util.concurrent.LinkedBlockingDeque.take(LinkedBlockingDeque.java:678) at sun.nio.fs.AbstractWatchService.take(AbstractWatchService.java:118) at Basic.takeExpectedKey(Basic.java:55) ... 8 more JavaTest Message: Test threw exception: java.lang.RuntimeException JavaTest Message: shutting down test result: Error. Timeout test result: Error. Timeout
03-07-2013