195 Commits

Author SHA1 Message Date
Brian Burkhalter
a5deccf860 8180085: (ch) java/nio/channels/SocketChannel/VectorIO.java: add debug instrumentation
Add some print statements potentially useful in solving JDK-8177801.

Reviewed-by: alanb
2017-05-11 07:43:36 -07:00
Brian Burkhalter
db8bc54f61 8179452: Remove intermittent key from some tests which appear no longer to fail
Remove "intermittent" key

Reviewed-by: alanb, lancea, darcy
2017-04-28 16:14:57 -07:00
Chris Hegarty
c122be4029 8158270: MulticastSendReceiveTests.java failed with "Expected message not received"
Reviewed-by: alanb
2017-04-25 14:46:43 +01:00
Brian Burkhalter
06164475de 8178074: (ch) java/nio/channels/etc/AdaptorCloseAndInterrupt.java: add instrumentation
Add some print statements to indicate state at strategic points

Reviewed-by: chegar
2017-04-07 11:31:57 -07:00
Brian Burkhalter
6b38dd561d 8177984: (ch) java/nio/channels/SocketChannel/VectorIO.java should use RandomFactory
Obtain Random from RandomFactory instead of directly.

Reviewed-by: clanger
2017-04-04 08:10:13 -07:00
Brian Burkhalter
ec2626b88e 8177559: Enable java/nio/channels/Selector/OutOfBand.java for macOS >= 10.10.5
Enable test for macOS 10.10.5 and newer and remove from problem list

Reviewed-by: alanb, amlu
2017-03-28 09:02:59 -07:00
Brian Burkhalter
b9cff83140 8177565: java/nio/channels/Selector/SelectorLimit.java disabled for Windows release >= 6.0
Remove check of Windows version

Reviewed-by: alanb
2017-03-24 15:02:19 -07:00
Brian Burkhalter
cc398424f9 8177564: Remove check for Windows XP and Server 2003 in java/nio/channels/DatagramChannel/NetworkConfiguration.java
Remove check for XP and Server 2003 in IPv6 support determination.

Reviewed-by: alanb
2017-03-24 14:46:52 -07:00
Brian Burkhalter
fe9e5e1b5e 8177550: (fc) Enable java/nio/channels/FileChannel/{Transfer4GBFile.java,TransferTo6GBFile.java} on Linux and Windows
Re-enabled tests currently suppressed on Linux and Windows as the timeouts have been increased.

Reviewed-by: alanb
2017-03-24 09:16:58 -07:00
Brian Burkhalter
8f68c5a17d 8176895: (fc) Split java/nio/channels/FileChannel/Transfer.java into smaller tests
Move sub-tests writing 4GB and 6GB files into two separate tests

Reviewed-by: clanger
2017-03-17 08:38:12 -07:00
Brian Burkhalter
ad6392624e 8176846: (fc) Increase timeouts of and instrument some tests using FileChannel#write
Change tests to improve odds of passing on slow file systems.

Reviewed-by: clanger, rriggs
2017-03-16 08:58:31 -07:00
Brian Burkhalter
990e5a380e 8176744: Improve internal timing of java/nio/channels/Selector/SelectAndClose.java
Replace two sleeps with CountDownLatch+sleep and Thread.join()

Reviewed-by: rriggs, alanb
2017-03-14 16:43:59 -07:00
Brian Burkhalter
ac6b3c4d5d 8176332: Increase sleep time in java/nio/channels/Selector/ChangingInterests.java write1()
Increase sleep from 50 to 150 ms.

Reviewed-by: alanb
2017-03-09 08:55:59 -08:00
Felix Yang
61c3a29e0c 8176195: Fix misc module dependencies in jdk_core tests
Reviewed-by: mchung
2017-03-08 17:17:41 -08:00
Brian Burkhalter
8835635183 8176394: Incorrect relational operator in java/nio/channels/FileChannel/InterruptDeadlock.java
Change Reader thread run method so it reads continuously as intended

Reviewed-by: alanb
2017-03-08 12:14:25 -08:00
Brian Burkhalter
53c99e5093 8176317: (ch) Add print of timeout value to java/nio/channels/AsynchronousSocketChannel/Basic.java
Add print of timeout value.

Reviewed-by: alanb
2017-03-08 09:53:19 -08:00
Brian Burkhalter
13f5b93e8c 8175209: Account for race condition in java/nio/channels/AsynchronousSocketChannel/Basic.java
Pause until the channel reaches a pended state instead of for a fixed time.

Reviewed-by: prappo, mli, alanb
2017-03-08 09:49:46 -08:00
Hamlin Li
af9013c96e 8176337: Mark several tests as intermittently failing
Reviewed-by: darcy
2017-03-07 23:01:51 -08:00
Amy Lu
12ca4e48e7 8175062: Mark java/nio/channels/AsyncCloseAndInterrupt.java as intermittently failing
Reviewed-by: bpb
2017-02-17 14:10:24 +08:00
Brian Burkhalter
eff1703b33 8175041: Add success message to java/nio/channels/FileChannel/LoopingTruncate.java
Print "Test succeeded" to stdout at the end of main()

Reviewed-by: alanb
2017-02-16 14:55:34 -08:00
Brian Burkhalter
a66653d1dc 8175033: (se) Improve internal timing of java/nio/channels/Selector/WakeupAfterClose.java
Add print of expected ClosedSelectorException

Reviewed-by: alanb
2017-02-16 12:26:23 -08:00
Joe Darcy
52bf1f47f2 8174960: Mark WakeupAfterClose.java as failing intermittentl
Reviewed-by: rriggs, bpb
2017-02-14 13:08:33 -08:00
Brian Burkhalter
6ae128f2d3 8174127: (ch) Add instrumentation to java/nio/channels/FileChannel/Transfer.java
Convert to TestNG and add some debugging output for large file creation time

Reviewed-by: alanb
2017-02-09 14:49:09 -08:00
Brian Burkhalter
1e4efa15be 8173387: java/nio/channels/Selector/SelectTimeout.java failed with "Test timed out early with timeout 100000000999"
Corrected timing problem with multiple threads setting static variables

Reviewed-by: clanger, alanb
2017-02-09 07:48:19 -08:00
Brian Burkhalter
5aa0f30214 8172547: (se) Selector.select(Long.MAX_VALUE) fires repeatedly
Clamp the jlong-valued select() timeout to INT_MAX for struct timeval

Reviewed-by: rriggs, clanger, alanb
2017-01-19 13:46:45 -08:00
Joe Darcy
ea8bb5ad41 8172200: Mark StressLoopback.java as intermittently failing
Reviewed-by: lancea, bpb, rriggs
2017-01-04 10:20:12 -08:00
Brian Burkhalter
d8e5d53723 8168628: (fc) SIGBUS when extending file size to map it
Synchronize file extension and subsequent map0(); on Linux use fallocate64() instead of ftruncate64().

Reviewed-by: rehn, simonis, alanb
2016-12-02 13:22:16 -08:00
Alan Bateman
30bcdb962c Merge 2016-12-01 11:16:23 +00:00
Alan Bateman
fbe85300bf 8169069: Module system implementation refresh (11/2016)
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Claes Redestad <claes.redestad@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Reviewed-by: plevart, chegar, psandoz, mchung, alanb, dfuchs, naoto, coffeys, weijun
2016-12-01 08:57:53 +00:00
Hamlin Li
f1187fde71 8049316: java/nio/channels/Selector/Wakeup.java failing
Reviewed-by: rriggs, alanb
2016-11-30 18:25:07 -08:00
Hamlin Li
a7d4828bea 8169764: output more information when java/nio/channels/AsynchronousSocketChannel/Basic.java fails
Reviewed-by: alanb
2016-11-16 17:29:14 -08:00
Brian Burkhalter
925586066c 8165000: Selector.select(timeout) throws IOException when timeout is a large long
Clamp the timeout passed to kevent0 to the largest value that does not provoke the error.

Reviewed-by: clanger, alanb
2016-09-02 12:38:27 -07:00
Christoph Langer
ea29d586dd 8164649: Cleanup of test java/nio/channels/FileChannel/Lock.java
Reviewed-by: alanb
2016-08-29 11:23:34 +02:00
Artem Smotrakov
8fe1b11fa9 8164166: Make sure java/nio/channels tests shutdown asynchronous channel groups
Reviewed-by: alanb
2016-08-24 10:58:29 -07:00
Mandy Chung
e2a0ff3e0d 8136930: Simplify use of module-system options by custom launchers
Reviewed-by: alanb, ksrini, henryjen, sundar
2016-08-10 15:51:25 -07:00
Brian Burkhalter
911dda4ee1 8163305: Add some print instrumentation to java/nio/channels/Selector/RacyDeregister
Perform more iterations on Windows, and on all platforms if the test enters the failure branch, poll for an extra period of time to determine whether it might have succeeded with a longer timeout

Reviewed-by: chegar
2016-08-09 07:50:26 -07:00
Brian Burkhalter
5d404c26b1 8160221: jdk/test/java/nio/channels/FileChannel/Transfers.java leaving files behind
Create temporary files in the test scratch directory instead of in the default temporary file directory.

Reviewed-by: alanb
2016-07-12 07:58:40 -07:00
Chris Hegarty
4d950890f2 8155086: Replace usage of -Djdk.launcher.limitmods in tests with -limitmods
Reviewed-by: alanb
2016-05-24 09:18:40 +01:00
Hamlin Li
26ba99921f 8156002: java/nio/channels/SocketChannel/AdaptSocket.java Fails in Mesos on OSX
Reviewed-by: dfuchs
2016-05-10 15:12:04 +08:00
Amy Lu
6f57005359 8156512: Mark several tests from java/nio as intermittently failing
Reviewed-by: alanb
2016-05-09 18:06:57 +08:00
Chris Hegarty
07cef26155 8044773: Refactor jdk.net API so that it can be moved out of the base module
Reviewed-by: alanb, erikj, mchung
2016-04-27 20:36:02 +01:00
Hamlin Li
636213d1c9 8068693: (ch) test java/nio/channels/AsyncCloseAndInterrupt.java failing
8153209: java/nio/channels/AsyncCloseAndInterrupt.java fails throwing exception: java.nio.channels.ClosedChannelException

For JDK-8068693, 500ms is too short on busy system for channel to be closed or for thread blocking on IO to be interrupted, increase the time from 500ms to 10000ms. for JDK-8153209, it's a test regression due to JDK-8151582, do not sleep when running tests for CONNECT/FINISH_CONNECT, sleep for other test cases.

Reviewed-by: bpb, martin, rriggs
2016-04-12 13:53:48 +08:00
Amy Lu
2929c453fb 8153722: Mark java/nio/channels/Selector/SelectAndClose.java as intermittently failing
Reviewed-by: bpb, darcy
2016-04-11 12:27:48 +08:00
Huaming Li
f9295881a8 8037360: java/nio/channels/SocketChannel/Connect.java fails intermittently
Reviewed-by: alanb
2016-04-08 16:38:37 +01:00
Amy Lu
92104d1449 8152749: Mark AdaptorCloseAndInterrupt.java as intermittently failing
8152755: Problem list java/nio/file/WatchService/MayFlies.java

Reviewed-by: alanb
2016-03-25 19:46:48 +08:00
Chris Hegarty
ff2e79c118 Merge 2016-03-22 10:42:32 +00:00
Huaming Li
b69f398c06 8151582: (ch) test java/nio/channels/AsyncCloseAndInterrupt.java failing due to "Connection succeeded"
Reviewed-by: bpb, rriggs, alanb
2016-03-20 07:35:20 +00:00
Alan Bateman
db4d383614 8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282

Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Alexandr Scherbatiy <alexandr.scherbatiy@oracle.com>
Co-authored-by: Amy Lu <amy.lu@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Daniel Fuchs <daniel.fuchs@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Jaroslav Bachorik <jaroslav.bachorik@oracle.com>
Co-authored-by: Jean-Francois Denise <jean-francois.denise@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Miroslav Kos <miroslav.kos@oracle.com>
Co-authored-by: Huaming Li <huaming.li@oracle.com>
Co-authored-by: Sean Mullan <sean.mullan@oracle.com>
Co-authored-by: Naoto Sato <naoto.sato@oracle.com>
Co-authored-by: Masayoshi Okutsu <masayoshi.okutsu@oracle.com>
Co-authored-by: Peter Levart <peter.levart@gmail.com>
Co-authored-by: Philip Race <philip.race@oracle.com>
Co-authored-by: Claes Redestad <claes.redestad@oracle.com>
Co-authored-by: Sergey Bylokhov <sergey.bylokhov@oracle.com>
Co-authored-by: Alexandre Iline <alexandre.iline@oracle.com>
Co-authored-by: Volker Simonis <volker.simonis@gmail.com>
Co-authored-by: Staffan Larsen <staffan.larsen@oracle.com>
Co-authored-by: Stuart Marks <stuart.marks@oracle.com>
Co-authored-by: Semyon Sadetsky <semyon.sadetsky@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Co-authored-by: Valerie Peng <valerie.peng@oracle.com>
Co-authored-by: Vincent Ryan <vincent.x.ryan@oracle.com>
Co-authored-by: Weijun Wang <weijun.wang@oracle.com>
Co-authored-by: Yuri Nesterenko <yuri.nesterenko@oracle.com>
Co-authored-by: Yekaterina Kantserova <yekaterina.kantserova@oracle.com>
Co-authored-by: Alexander Kulyakthin <alexander.kulyakhtin@oracle.com>
Co-authored-by: Felix Yang <felix.yang@oracle.com>
Co-authored-by: Andrei Eremeev <andrei.eremeev@oracle.com>
Co-authored-by: Frank Yuan <frank.yuan@oracle.com>
Co-authored-by: Sergei Pikalev <sergei.pikalev@oracle.com>
Co-authored-by: Sibabrata Sahoo <sibabrata.sahoo@oracle.com>
Co-authored-by: Tiantian Du <tiantian.du@oracle.com>
Co-authored-by: Sha Jiang <sha.jiang@oracle.com>
Reviewed-by: alanb, mchung, naoto, rriggs, psandoz, plevart, mullan, ascarpino, vinnie, prr, sherman, dfuchs, mhaupt
2016-03-17 19:04:16 +00:00
Hamlin Li
34313c01e3 8143610: (dc) java/nio/channels/DatagramChannel/AdaptDatagramSocket.java failed intermittently due to SocketTimeoutException
Reviewed-by: alanb
2016-03-08 11:01:38 +00:00
Joe Darcy
57494c431d 8151750: Mark ChangingInterests.java as intermittently failing
Reviewed-by: lancea
2016-03-11 15:30:20 -08:00