Re: jmx-dev RFR: 8343491: javax/management/remote/mandatory/connection/DeadLockTest.java failing with NoSuchObjectException: no such object in table

2024-11-07 Thread Kevin Walls
On Mon, 4 Nov 2024 18:15:37 GMT, Kevin Walls wrote: > This test is sensitive to timing, and should not run with -Xcomp (like > NotifReconnectDeadlockTest.java). > > With -Xcomp, this test can fail on the the conn.getDefaultDomain() call, but > if we handle that, it can also fa

jmx-dev Integrated: 8343491: javax/management/remote/mandatory/connection/DeadLockTest.java failing with NoSuchObjectException: no such object in table

2024-11-07 Thread Kevin Walls
On Mon, 4 Nov 2024 18:15:37 GMT, Kevin Walls wrote: > This test is sensitive to timing, and should not run with -Xcomp (like > NotifReconnectDeadlockTest.java). > > With -Xcomp, this test can fail on the the conn.getDefaultDomain() call, but > if we handle that, it can also fa

Re: jmx-dev RFR: 8343491: javax/management/remote/mandatory/connection/DeadLockTest.java failing with NoSuchObjectException: no such object in table

2024-11-07 Thread Kevin Walls
On Thu, 7 Nov 2024 16:09:22 GMT, Chris Plummer wrote: > What changed that caused it to suddenly start failing a lot? This is the test I changed recently in JDK-8343378 -- it used to not fail even if it threw an Exception. So I make that change, test, and see no failures. But of course -Xcomp

jmx-dev RFR: 8343491: javax/management/remote/mandatory/connection/DeadLockTest.java failing with NoSuchObjectException: no such object in table

2024-11-04 Thread Kevin Walls
This test is sensitive to timing, and should not run with -Xcomp (like NotifReconnectDeadlockTest.java). With -Xcomp, this test can fail on the the conn.getDefaultDomain() call, but if we handle that, it can also fail on the first iteration through the loop, at the call: JMXConnector client = J

Re: jmx-dev RFR: 8343378: Exceptions in javax/management DeadLockTest.java do not cause test failure

2024-11-01 Thread Kevin Walls
On Fri, 1 Nov 2024 17:18:50 GMT, Chris Plummer wrote: >> Right, it is the repetition that makes me want the comma. There are other >> ways of phrasing this which would not need the comma. Even then, I still >> might introduce one to imply a pause, which I still think helps make it >> unambig

jmx-dev Integrated: 8343378: Exceptions in javax/management DeadLockTest.java do not cause test failure

2024-11-01 Thread Kevin Walls
On Thu, 31 Oct 2024 12:11:41 GMT, Kevin Walls wrote: > Test update: fail when it hits an Exception. > > This test still references jmxmp and iiop, which are of course redundant, > there are various tests that still do this. > I am working on http, so we may revisit these tes

Re: jmx-dev RFR: 8343378: Exceptions in javax/management DeadLockTest.java do not cause test failure

2024-11-01 Thread Kevin Walls
On Thu, 31 Oct 2024 12:11:41 GMT, Kevin Walls wrote: > Test update: fail when it hits an Exception. > > This test still references jmxmp and iiop, which are of course redundant, > there are various tests that still do this. > I am working on http, so we may revisit these tes

Re: jmx-dev RFR: 8343378: Exceptions in javax/management DeadLockTest.java do not cause test failure

2024-11-01 Thread Kevin Walls
On Thu, 31 Oct 2024 21:57:10 GMT, Chris Plummer wrote: >> I actually think it's more readable with the comma. >> If there is (one protocol failure), then that (fails the test). >> Without the comma, "failure fails" runs together, but the failure did not >> fail, it was a perfectly good failure.

Re: jmx-dev RFR: 8343378: Exceptions in javax/management DeadLockTest.java do not cause test failure

2024-10-31 Thread Kevin Walls
On Thu, 31 Oct 2024 19:10:38 GMT, Chris Plummer wrote: >> Test update: fail when it hits an Exception. >> >> This test still references jmxmp and iiop, which are of course redundant, >> there are various tests that still do this. >> I am working on http, so we may revisit these tests in future

jmx-dev RFR: 8343378: Exceptions in javax/management DeadLockTest.java do not cause test failure

2024-10-31 Thread Kevin Walls
Test update: fail when it hits an Exception. This test still references jmxmp and iiop, which are of course redundant, there are various tests that still do this. I am working on http, so we may revisit these tests in future to change their list of protocols. For now, I'd like to simply make th

Re: jmx-dev RFR: 8342633: javax/management/security/HashedPasswordFileTest.java creates tmp file in src dir

2024-10-22 Thread Kevin Walls
On Mon, 21 Oct 2024 09:21:35 GMT, Kevin Walls wrote: > Test update: HashedPasswordFileTest.java was using > System.getProperty("test.src") as a place to _create_ a file. > > jtreg gives us the current working directory for the test invocation as a > scratch direc

jmx-dev Integrated: 8342633: javax/management/security/HashedPasswordFileTest.java creates tmp file in src dir

2024-10-22 Thread Kevin Walls
On Mon, 21 Oct 2024 09:21:35 GMT, Kevin Walls wrote: > Test update: HashedPasswordFileTest.java was using > System.getProperty("test.src") as a place to _create_ a file. > > jtreg gives us the current working directory for the test invocation as a > scratch direc

jmx-dev RFR: 8342633: javax/management/security/HashedPasswordFileTest.java creates tmp file in src dir

2024-10-21 Thread Kevin Walls
Test update: HashedPasswordFileTest.java was using System.getProperty("test.src") as a place to _create_ a file. jtreg gives us the current working directory for the test invocation as a scratch directory. Create files there, without reading any property to find another location.

jmx-dev Integrated: 8342338: Remove redundant IIOPURLTest.java

2024-10-17 Thread Kevin Walls
On Wed, 16 Oct 2024 11:14:44 GMT, Kevin Walls wrote: > This test has been "skipping" since IIOP was removed (jdk 9). Should be > removed, no impact. This pull request has now been integrated. Changeset: 8862ca07 Author:Kevin Walls URL: https://git.openjd

Re: jmx-dev RFR: 8342338: Remove redundant IIOPURLTest.java

2024-10-17 Thread Kevin Walls
On Wed, 16 Oct 2024 11:14:44 GMT, Kevin Walls wrote: > This test has been "skipping" since IIOP was removed (jdk 9). Should be > removed, no impact. Thanks for the reviews! - PR Comment: https://git.openjdk.org/jdk/pull/21534#issuecomment-2418837171

jmx-dev RFR: 8342338: Remove redundant IIOPURLTest.java

2024-10-16 Thread Kevin Walls
This test has been "skipping" since IIOP was removed (jdk 9). Should be removed, no impact. - Commit messages: - 8342338: Remove redundant IIOPURLTest.java Changes: https://git.openjdk.org/jdk/pull/21534/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21534&range=00 Iss

jmx-dev Integrated: 8338603: DiagnosticCommandMBean operations should standardize types for parameters

2024-10-15 Thread Kevin Walls
On Tue, 17 Sep 2024 14:10:07 GMT, Kevin Walls wrote: > DiagnosticCommandImpl should only publish parameter types in a known standard > set, and use "STRING" on anything else. > e.g. We can say "FILE" in the help output for jcmd, as that's for humans, but

Re: jmx-dev RFR: 8338603: DiagnosticCommandMBean operations should standardize types for parameters [v3]

2024-10-15 Thread Kevin Walls
> DiagnosticCommandImpl should only publish parameter types in a known standard > set, and use "STRING" on anything else. > e.g. We can say "FILE" in the help output for jcmd, as that's for humans, but > the MBean parameter info should contain "STRING&q

Re: jmx-dev RFR: 8338603: DiagnosticCommandMBean operations should standardize types for parameters [v2]

2024-10-15 Thread Kevin Walls
On Thu, 10 Oct 2024 08:51:38 GMT, Kevin Walls wrote: >> DiagnosticCommandImpl should only publish parameter types in a known >> standard set, and use "STRING" on anything else. >> e.g. We can say "FILE" in the help output for jcmd, as that's for huma

Re: jmx-dev RFR: 8338603: DiagnosticCommandMBean operations should standardize types for parameters [v2]

2024-10-15 Thread Kevin Walls
On Thu, 10 Oct 2024 08:51:38 GMT, Kevin Walls wrote: >> DiagnosticCommandImpl should only publish parameter types in a known >> standard set, and use "STRING" on anything else. >> e.g. We can say "FILE" in the help output for jcmd, as that's for huma

Re: jmx-dev RFR: 8338603: DiagnosticCommandMBean operations should standardize types for parameters [v2]

2024-10-10 Thread Kevin Walls
> DiagnosticCommandImpl should only publish parameter types in a known standard > set, and use "STRING" on anything else. > e.g. We can say "FILE" in the help output for jcmd, as that's for humans, but > the MBean parameter info should contain "STRING&q

Re: jmx-dev RFR: 8338603: DiagnosticCommandMBean operations should standardize types for parameters

2024-10-10 Thread Kevin Walls
On Wed, 9 Oct 2024 20:36:07 GMT, Chris Plummer wrote: >> DiagnosticCommandImpl should only publish parameter types in a known >> standard set, and use "STRING" on anything else. >> e.g. We can say "FILE" in the help output for jcmd, as that's for humans, >> but the MBean parameter info should c

Re: jmx-dev RFR: 8338603: DiagnosticCommandMBean operations should standardize types for parameters

2024-10-09 Thread Kevin Walls
On Tue, 17 Sep 2024 14:10:07 GMT, Kevin Walls wrote: > DiagnosticCommandImpl should only publish parameter types in a known standard > set, and use "STRING" on anything else. > e.g. We can say "FILE" in the help output for jcmd, as that's for humans, but

Re: jmx-dev RFR: 8338603: DiagnosticCommandMBean operations should standardize types for parameters

2024-09-18 Thread Kevin Walls
On Tue, 17 Sep 2024 14:10:07 GMT, Kevin Walls wrote: > DiagnosticCommandImpl should only publish parameter types in a known standard > set, and use "STRING" on anything else. > e.g. We can say "FILE" in the help output for jcmd, as that's for humans, but

jmx-dev RFR: 8338603: DiagnosticCommandMBean operations should standardize types for parameters

2024-09-18 Thread Kevin Walls
DiagnosticCommandImpl should only publish parameter types in a known standard set, and use "STRING" on anything else. e.g. We can say "FILE" in the help output for jcmd, as that's for humans, but the MBean parameter info should contain "STRING". - Commit messages: - Test update -

jmx-dev Integrated: 8310525: DynamicLauncher for JDP test needs to try harder to find a free port

2024-09-16 Thread Kevin Walls
On Fri, 13 Sep 2024 09:47:07 GMT, Kevin Walls wrote: > JDP tests only make 3 attempts to find a free port, using getFreePort(). > We know getFreePort() is racy and you need to make sure the port really is > fee when trying to use it. > > Make 10 attempts. Leave the logic uncha

Re: jmx-dev RFR: 8310525: DynamicLauncher for JDP test needs to try harder to find a free port

2024-09-16 Thread Kevin Walls
On Fri, 13 Sep 2024 09:47:07 GMT, Kevin Walls wrote: > JDP tests only make 3 attempts to find a free port, using getFreePort(). > We know getFreePort() is racy and you need to make sure the port really is > fee when trying to use it. > > Make 10 attempts. Leave the logic uncha

jmx-dev RFR: 8310525: DynamicLauncher for JDP test needs to try harder to find a free port

2024-09-13 Thread Kevin Walls
JDP tests only make 3 attempts to find a free port, using getFreePort(). We know getFreePort() is racy and you need to make sure the port really is fee when trying to use it. Make 10 attempts. Leave the logic unchanged. Also fix a typo in another test. - Commit messages: - 831052

Re: jmx-dev RFR: 8334165: Remove serialVersionUID compatibility logic from JMX [v4]

2024-09-12 Thread Kevin Walls
On Tue, 10 Sep 2024 13:47:47 GMT, Kevin Walls wrote: >> Remove very very old serialization compatibility logic from JMX. >> >> This relates to keeping the JDK's JMX implementation compatible with JMX >> versions from when JMX was a separate component, before be

jmx-dev Integrated: 8334165: Remove serialVersionUID compatibility logic from JMX

2024-09-12 Thread Kevin Walls
On Wed, 4 Sep 2024 16:27:51 GMT, Kevin Walls wrote: > Remove very very old serialization compatibility logic from JMX. > > This relates to keeping the JDK's JMX implementation compatible with JMX > versions from when JMX was a separate component, before being integrated i

Re: jmx-dev RFR: 8334165: Remove serialVersionUID compatibility logic from JMX [v3]

2024-09-10 Thread Kevin Walls
On Tue, 10 Sep 2024 13:06:25 GMT, Kevin Walls wrote: >> Remove very very old serialization compatibility logic from JMX. >> >> This relates to keeping the JDK's JMX implementation compatible with JMX >> versions from when JMX was a separate component, before be

Re: jmx-dev RFR: 8334165: Remove serialVersionUID compatibility logic from JMX [v4]

2024-09-10 Thread Kevin Walls
> Remove very very old serialization compatibility logic from JMX. > > This relates to keeping the JDK's JMX implementation compatible with JMX > versions from when JMX was a separate component, before being integrated into > JDK 5. It should all be removed. Kevin Walls

Re: jmx-dev RFR: 8334165: Remove serialVersionUID compatibility logic from JMX [v3]

2024-09-10 Thread Kevin Walls
> Remove very very old serialization compatibility logic from JMX. > > This relates to keeping the JDK's JMX implementation compatible with JMX > versions from when JMX was a separate component, before being integrated into > JDK 5. It should all be removed. Kevin Walls

Re: jmx-dev RFR: 8334165: Remove serialVersionUID compatibility logic from JMX [v2]

2024-09-05 Thread Kevin Walls
> Remove very very old serialization compatibility logic from JMX. > > This relates to keeping the JDK's JMX implementation compatible with JMX > versions from when JMX was a separate component, before being integrated into > JDK 5. It should all be removed. Kevin Walls

Re: jmx-dev RFR: 8334165: Remove serialVersionUID compatibility logic from JMX [v2]

2024-09-05 Thread Kevin Walls
On Thu, 5 Sep 2024 14:57:16 GMT, Daniel Fuchs wrote: >> Kevin Walls has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Test > > Wow. I hadn't realized so many classes were impacted. I thought there w

jmx-dev RFR: 8334165: Remove serialVersionUID compatibility logic from JMX

2024-09-05 Thread Kevin Walls
Remove very very old serialization compatibility logic from JMX. This relates to keeping the JDK's JMX implementation compatible with JMX versions from when JMX was a separate component, before being integrated into JDK 5. It should all be removed. - Commit messages: - whitespace

Re: jmx-dev RFR: 8338891: HotSpotDiagnosticsMXBean missing @since tag

2024-09-03 Thread Kevin Walls
On Mon, 2 Sep 2024 15:52:27 GMT, Kevin Walls wrote: > Trivial "since" tag addition in javadoc: since 1.6 Thanks Alan! - PR Comment: https://git.openjdk.org/jdk/pull/20823#issuecomment-2325836707

jmx-dev Integrated: 8338891: HotSpotDiagnosticsMXBean missing @since tag

2024-09-03 Thread Kevin Walls
On Mon, 2 Sep 2024 15:52:27 GMT, Kevin Walls wrote: > Trivial "since" tag addition in javadoc: since 1.6 This pull request has now been integrated. Changeset: 288fa60e Author: Kevin Walls URL: https://git.openjdk.org/jdk/commit/288fa60ebee445bb2835f096d144b9c6dea98df6

jmx-dev RFR: 8338891: HotSpotDiagnosticsMXBean missing @since tag

2024-09-02 Thread Kevin Walls
Trivial "since" tag addition in javadoc: since 1.6 - Commit messages: - 8338891: HotSpotDiagnosticsMXBean missing @since tag Changes: https://git.openjdk.org/jdk/pull/20823/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20823&range=00 Issue: https://bugs.openjdk.org/brow

Re: jmx-dev RFR: 8335625: Update Javadoc for GetCpuLoad [v3]

2024-08-23 Thread Kevin Walls
On Fri, 23 Aug 2024 08:49:38 GMT, Joakim Nordström wrote: >> Can I get a review of this documentation update to clarify the usage of >> GetCpuLoad (and inherently deprecated GetSystemCpuLoad) and >> GetProcessCpuLoad. >> >> Calling either of these methods in quick succession can lead to >> u

Re: jmx-dev RFR: 8335625: Update Javadoc for GetCpuLoad

2024-08-21 Thread Kevin Walls
On Wed, 21 Aug 2024 11:35:26 GMT, Alan Bateman wrote: >> src/jdk.management/share/classes/com/sun/management/OperatingSystemMXBean.java >> line 142: >> >>> 140: * negative value. >>> 141: * >>> 142: * This method is not idempotent. The recent period of >>> observation >> >> I

Re: jmx-dev RFR: 8335625: Update Javadoc for GetCpuLoad

2024-08-21 Thread Kevin Walls
On Mon, 12 Aug 2024 12:33:04 GMT, Joakim Nordström wrote: > Can I get a review of this documentation update to clarify the usage of > GetCpuLoad (and inherently deprecated GetSystemCpuLoad) and GetProcessCpuLoad. > > Calling either of these methods in quick succession can lead to > unrepresen

jmx-dev Integrated: 8267887: RMIConnector_NPETest.java fails after removal of RMI Activation (JDK-8267123)

2024-07-12 Thread Kevin Walls
On Fri, 5 Jul 2024 14:06:39 GMT, Kevin Walls wrote: > The test > test/jdk/javax/management/remote/mandatory/connection/RMIConnector_NPETest.java > should be removed. > > This test was added when 6984520 was fixed in 6u25. It has been > problemlisted since JDK-8267123 remo

Re: jmx-dev RFR: 8267887: RMIConnector_NPETest.java fails after removal of RMI Activation (JDK-8267123)

2024-07-12 Thread Kevin Walls
On Fri, 5 Jul 2024 14:06:39 GMT, Kevin Walls wrote: > The test > test/jdk/javax/management/remote/mandatory/connection/RMIConnector_NPETest.java > should be removed. > > This test was added when 6984520 was fixed in 6u25. It has been > problemlisted since JDK-8267123 remo

jmx-dev Integrated: 8336257: Additional tests in jmxremote/startstop to match on PID not app name

2024-07-11 Thread Kevin Walls
On Thu, 11 Jul 2024 14:51:18 GMT, Kevin Walls wrote: > Follow-on from JDK-8207908. > > Two tests are broken by that change: > sun/management/jmxremote/startstop/JMXStartStopTest.java > sun/management/jmxremote/startstop/JMXStatusPerfCountersTest.java > > These are a

Re: jmx-dev RFR: 8336257: Additional tests in jmxremote/startstop to match on PID not app name [v2]

2024-07-11 Thread Kevin Walls
On Thu, 11 Jul 2024 15:38:29 GMT, Kevin Walls wrote: >> Follow-on from JDK-8207908. >> >> Two tests are broken by that change: >> sun/management/jmxremote/startstop/JMXStartStopTest.java >> sun/management/jmxremote/startstop/JMXStatusPerfCountersTest.java >

Re: jmx-dev RFR: 8336257: Additional tests in jmxremote/startstop to match on PID not app name [v2]

2024-07-11 Thread Kevin Walls
On Thu, 11 Jul 2024 15:22:54 GMT, Chris Plummer wrote: >> Kevin Walls has updated the pull request incrementally with one additional >> commit since the last revision: >> >> line > > test/jdk/sun/management/jmxremote/startstop/JMXStartSto

Re: jmx-dev RFR: 8336257: Additional tests in jmxremote/startstop to match on PID not app name [v2]

2024-07-11 Thread Kevin Walls
pattern to > find a process. > They should use the PID to avoid finding a process from some other concurrent > test invocation. > So it's good to have the same kind of change applied here too. Kevin Walls has updated the pull request incrementally with one additional c

jmx-dev RFR: 8336257: Additional tests in jmxremote/startstop to match on PID not app name

2024-07-11 Thread Kevin Walls
Follow-on from JDK-8207908. Two tests are broken by that change: sun/management/jmxremote/startstop/JMXStartStopTest.java sun/management/jmxremote/startstop/JMXStatusPerfCountersTest.java These are additional tests which use jcmd and an application name pattern to find a process. They sh

jmx-dev Integrated: 8207908: JMXStatusTest.java fails assertion intermittently

2024-07-11 Thread Kevin Walls
On Thu, 4 Jul 2024 14:39:50 GMT, Kevin Walls wrote: > Test failure, reproducible running batches of tests at the same time on the > same machine. > The use of "jcmd TestApp ..." gathers more output than the test wants and > than its regexes can handle. > > Usi

Re: jmx-dev RFR: 8207908: JMXStatusTest.java fails assertion intermittently

2024-07-10 Thread Kevin Walls
On Thu, 4 Jul 2024 14:39:50 GMT, Kevin Walls wrote: > Test failure, reproducible running batches of tests at the same time on the > same machine. > The use of "jcmd TestApp ..." gathers more output than the test wants and > than its regexes can handle. > > Usi

jmx-dev [jdk23] Integrated: 8335124: com/sun/management/ThreadMXBean/ThreadCpuTimeArray.java failed with CPU time out of expected range

2024-07-09 Thread Kevin Walls
On Wed, 3 Jul 2024 08:24:43 GMT, Kevin Walls wrote: > Clean backport to jdk23 of a simple test update, to try and avoid spurious > failures. This pull request has now been integrated. Changeset: 70ad622b Author: Kevin Walls URL: https://git.openjdk.org/jdk/

jmx-dev Integrated: 8334777: Test javax/management/remote/mandatory/notif/NotifReconnectDeadlockTest.java failed with NullPointerException

2024-07-09 Thread Kevin Walls
On Thu, 27 Jun 2024 15:53:09 GMT, Kevin Walls wrote: > Disable running this test with -Xcomp. > > The NPE seen in this test is due to a timeout establishing the connection. > ServerCommunicatorAdmin hits its timeout, during an addNotificationListener > call on a new connecti

Re: jmx-dev RFR: 8334777: Test javax/management/remote/mandatory/notif/NotifReconnectDeadlockTest.java failed with NullPointerException [v2]

2024-07-09 Thread Kevin Walls
On Fri, 28 Jun 2024 18:14:59 GMT, Kevin Walls wrote: >> Disable running this test with -Xcomp. >> >> The NPE seen in this test is due to a timeout establishing the connection. >> ServerCommunicatorAdmin hits its timeout, during an addNotificationListener >

jmx-dev RFR: 8267887: RMIConnector_NPETest.java fails after removal of RMI Activation (JDK-8267123)

2024-07-05 Thread Kevin Walls
The test test/jdk/javax/management/remote/mandatory/connection/RMIConnector_NPETest.java should be removed. This test was added when 6984520 was fixed in 6u25. It has been problemlisted since JDK-8267123 removed RMI Activation (it does not use RMI Activation, it just wanted something "RMI" to

jmx-dev RFR: 8207908: JMXStatusTest.java fails assertion intermittently

2024-07-04 Thread Kevin Walls
Test failure, reproducible running batches of tests at the same time on the same machine. The use of "jcmd TestApp ..." gathers more output that the test wants. Using the PID to match only the wanted process, my batches of 25 tests at the same time run in parallel without failure. -

jmx-dev [jdk23] RFR: 8335124: com/sun/management/ThreadMXBean/ThreadCpuTimeArray.java failed with CPU time out of expected range

2024-07-03 Thread Kevin Walls
Clean backport to jdk23 of a simple test update, to try and avoid spurious failures. - Commit messages: - Backport 79a3554e1da604627b3a010dc269c1bd914c79d3 Changes: https://git.openjdk.org/jdk/pull/1/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=1&range=00 Issu

jmx-dev Integrated: 8335124: com/sun/management/ThreadMXBean/ThreadCpuTimeArray.java failed with CPU time out of expected range

2024-06-28 Thread Kevin Walls
On Thu, 27 Jun 2024 08:54:16 GMT, Kevin Walls wrote: > This test has had occasional failures for years, possibly forever. > A previous update made the test "othervm" which removed some interruptions, > but a time accounting problem remains. > > This change adds a sim

Re: jmx-dev RFR: 8334777: Test javax/management/remote/mandatory/notif/NotifReconnectDeadlockTest.java failed with NullPointerException [v2]

2024-06-28 Thread Kevin Walls
On Fri, 28 Jun 2024 18:14:59 GMT, Kevin Walls wrote: >> Disable running this test with -Xcomp. >> >> The NPE seen in this test is due to a timeout establishing the connection. >> ServerCommunicatorAdmin hits its timeout, during an addNotificationListener >

Re: jmx-dev RFR: 8334777: Test javax/management/remote/mandatory/notif/NotifReconnectDeadlockTest.java failed with NullPointerException [v2]

2024-06-28 Thread Kevin Walls
ilure is reproducible. There is no > need to test this test with -Xcomp, we should exclude it as we do for various > other tests. Kevin Walls has updated the pull request incrementally with one additional commit since the last revision: comment - Changes: - all: https://git

Re: jmx-dev RFR: 8335124: com/sun/management/ThreadMXBean/ThreadCpuTimeArray.java failed with CPU time out of expected range

2024-06-27 Thread Kevin Walls
On Thu, 27 Jun 2024 08:54:16 GMT, Kevin Walls wrote: > This test has had occasional failures for years, possibly forever. > A previous update made the test "othervm" which removed some interruptions, > but a time accounting problem remains. > > This change adds a sim

jmx-dev RFR: 8334777: Test javax/management/remote/mandatory/notif/NotifReconnectDeadlockTest.java failed with NullPointerException

2024-06-27 Thread Kevin Walls
Disable running this test with -Xcomp. The NPE seen in this test is due to a timeout establishing the connection. ServerCommunicatorAdmin hits its timeout, during an addNotificationListener call on a new connection. -Xcomp causes this slowdown and the failure is reproducible. There is no need

jmx-dev RFR: 8335124: com/sun/management/ThreadMXBean/ThreadCpuTimeArray.java failed with CPU time out of expected range

2024-06-27 Thread Kevin Walls
This test has had occasional failures for years, possibly forever. A previous update made the test "othervm" which removed some interruptions, but a time accounting problem remains. This change adds a simple sleep after observing that the test threads are all sleeping. The idea is that threads

Re: jmx-dev RFR: 8335124: com/sun/management/ThreadMXBean/ThreadCpuTimeArray.java failed with CPU time out of expected range

2024-06-27 Thread Kevin Walls
On Thu, 27 Jun 2024 08:54:16 GMT, Kevin Walls wrote: > This test has had occasional failures for years, possibly forever. > A previous update made the test "othervm" which removed some interruptions, > but a time accounting problem remains. > > This change adds a sim

jmx-dev [jdk23] Integrated: 8333344: JMX attaching of Subject does not work when security manager not allowed

2024-06-21 Thread Kevin Walls
On Thu, 20 Jun 2024 15:24:35 GMT, Kevin Walls wrote: > 844: JMX attaching of Subject does not work when security manager not > allowed This pull request has now been integrated. Changeset: 23f2c97f Author: Kevin Walls URL: https://git.openjdk.org/jdk/

Re: jmx-dev [jdk23] RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed

2024-06-21 Thread Kevin Walls
On Thu, 20 Jun 2024 15:24:35 GMT, Kevin Walls wrote: > 844: JMX attaching of Subject does not work when security manager not > allowed Thanks Daniel. Testing automated and manual looks good in 24 and in this 23 backport, so I'll get this integrated. - PR Com

jmx-dev [jdk23] RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed

2024-06-20 Thread Kevin Walls
844: JMX attaching of Subject does not work when security manager not allowed - Commit messages: - Backport bcf4bb4882e06d8c52f6eb4e9c4e027ba0622c5f Changes: https://git.openjdk.org/jdk/pull/19810/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19810&range=00 Issue:

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v19]

2024-06-19 Thread Kevin Walls
On Tue, 18 Jun 2024 12:17:46 GMT, Kevin Walls wrote: >> JMX uses APIs related to the Security Mananger which are deprecated. Use of >> AccessControlContext will be removed when Security Manager is removed. >> >> Until then, updates are neede

jmx-dev Integrated: 8333344: JMX attaching of Subject does not work when security manager not allowed

2024-06-19 Thread Kevin Walls
On Mon, 10 Jun 2024 11:28:28 GMT, Kevin Walls wrote: > JMX uses APIs related to the Security Mananger which are deprecated. Use of > AccessControlContext will be removed when Security Manager is removed. > > Until then, updates are needed to not require setting > -Djava.s

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v19]

2024-06-19 Thread Kevin Walls
On Wed, 19 Jun 2024 11:21:45 GMT, Daniel Fuchs wrote: > The code changes look good to me (if a bit verbose) and the test changes look > reasonable. It could be beneficial to add some more tests in the future > involving monitoring and getting the subject from within a monitored MBean. Yes, agr

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v16]

2024-06-18 Thread Kevin Walls
On Tue, 18 Jun 2024 11:33:51 GMT, Daniel Fuchs wrote: >> Agree with Kevin. To minimize risk, especially since this is to fix a >> significant regression and we are in RDP1, we are really trying to preserve >> the existing code as much as possible, even though it could be improved. > > It is als

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v18]

2024-06-18 Thread Kevin Walls
On Mon, 17 Jun 2024 20:51:34 GMT, Kevin Walls wrote: >> JMX uses APIs related to the Security Mananger which are deprecated. Use of >> AccessControlContext will be removed when Security Manager is removed. >> >> Until then, updates are neede

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v19]

2024-06-18 Thread Kevin Walls
> JMX uses APIs related to the Security Mananger which are deprecated. Use of > AccessControlContext will be removed when Security Manager is removed. > > Until then, updates are needed to not require setting > -Djava.security.manager=allow to use JMX authentication. Kevin Wa

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v18]

2024-06-18 Thread Kevin Walls
On Mon, 17 Jun 2024 20:51:34 GMT, Kevin Walls wrote: >> JMX uses APIs related to the Security Mananger which are deprecated. Use of >> AccessControlContext will be removed when Security Manager is removed. >> >> Until then, updates are neede

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v18]

2024-06-17 Thread Kevin Walls
> JMX uses APIs related to the Security Mananger which are deprecated. Use of > AccessControlContext will be removed when Security Manager is removed. > > Until then, updates are needed to not require setting > -Djava.security.manager=allow to use JMX authentication. Kevin Wa

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v16]

2024-06-17 Thread Kevin Walls
On Mon, 17 Jun 2024 13:58:11 GMT, Daniel Fuchs wrote: >> Kevin Walls has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - style update >> - whitespace > > src/java.management.rmi/share

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v17]

2024-06-17 Thread Kevin Walls
> JMX uses APIs related to the Security Mananger which are deprecated. Use of > AccessControlContext will be removed when Security Manager is removed. > > Until then, updates are needed to not require setting > -Djava.security.manager=allow to use JMX authentication. Kevin Wa

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v16]

2024-06-17 Thread Kevin Walls
> JMX uses APIs related to the Security Mananger which are deprecated. Use of > AccessControlContext will be removed when Security Manager is removed. > > Until then, updates are needed to not require setting > -Djava.security.manager=allow to use JMX authentication. Kevin Wa

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v15]

2024-06-17 Thread Kevin Walls
On Mon, 17 Jun 2024 12:33:08 GMT, Weijun Wang wrote: >> Kevin Walls has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - leave noPermissionsACC in place for now >> - leave noPermissionsACC in place for n

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v15]

2024-06-17 Thread Kevin Walls
On Mon, 17 Jun 2024 12:33:47 GMT, Weijun Wang wrote: >> Kevin Walls has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - leave noPermissionsACC in place for now >> - leave noPermissionsACC in place for now

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v10]

2024-06-17 Thread Kevin Walls
On Fri, 14 Jun 2024 14:48:14 GMT, Weijun Wang wrote: > > Does noPermissionsACC add anything? > > I don't know. My principal for this code change is that nothing is changed > for the SM-is-allowed case. I've put back the noPermissionsACC for this change, it does not have to be removed in this

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v15]

2024-06-17 Thread Kevin Walls
> JMX uses APIs related to the Security Mananger which are deprecated. Use of > AccessControlContext will be removed when Security Manager is removed. > > Until then, updates are needed to not require setting > -Djava.security.manager=allow to use JMX authentication. Kevin Wa

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v13]

2024-06-17 Thread Kevin Walls
On Sun, 16 Jun 2024 01:54:34 GMT, Weijun Wang wrote: >> Kevin Walls has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Unnecessary catches to remove > > src/java.management/share/classes/javax/management/mon

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v14]

2024-06-17 Thread Kevin Walls
> JMX uses APIs related to the Security Mananger which are deprecated. Use of > AccessControlContext will be removed when Security Manager is removed. > > Until then, updates are needed to not require setting > -Djava.security.manager=allow to use JMX authentication. Kevin Wa

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v13]

2024-06-14 Thread Kevin Walls
> JMX uses APIs related to the Security Mananger which are deprecated. Use of > AccessControlContext will be removed when Security Manager is removed. > > Until then, updates are needed to not require setting > -Djava.security.manager=allow to use JMX authentication. Kevin Wa

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v10]

2024-06-14 Thread Kevin Walls
On Fri, 14 Jun 2024 14:51:53 GMT, Weijun Wang wrote: >> It needs to recognise and throw RuntimeException so that a SecurityException >> isn't wrapped in a PrivilegedActionException (which gets caught by those >> blocks of code which call extractException(pe) and look at what Exception >> it c

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v10]

2024-06-14 Thread Kevin Walls
On Fri, 14 Jun 2024 12:03:07 GMT, Weijun Wang wrote: >> Kevin Walls has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Separate SM allowed and not allowed cases > > src/java.management.rmi/share/class

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v12]

2024-06-14 Thread Kevin Walls
> JMX uses APIs related to the Security Mananger which are deprecated. Use of > AccessControlContext will be removed when Security Manager is removed. > > Until then, updates are needed to not require setting > -Djava.security.manager=allow to use JMX authentication. Kevin Wa

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v6]

2024-06-14 Thread Kevin Walls
On Wed, 12 Jun 2024 20:52:51 GMT, Sean Mullan wrote: >> Kevin Walls has updated the pull request incrementally with one additional >> commit since the last revision: >> >>Undo test policy updates > > src/java.management/share/classes/javax/management/mon

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v11]

2024-06-14 Thread Kevin Walls
> JMX uses APIs related to the Security Mananger which are deprecated. Use of > AccessControlContext will be removed when Security Manager is removed. > > Until then, updates are needed to not require setting > -Djava.security.manager=allow to use JMX authentication. Kevin Wa

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v10]

2024-06-14 Thread Kevin Walls
On Fri, 14 Jun 2024 12:44:17 GMT, Kevin Walls wrote: >> src/java.management/share/classes/com/sun/jmx/remote/internal/ServerNotifForwarder.java >> line 353: >> >>> 351: } else { >>> 352: return Subject.getSubject(Acc

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v10]

2024-06-14 Thread Kevin Walls
On Fri, 14 Jun 2024 12:04:06 GMT, Weijun Wang wrote: >> Kevin Walls has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Separate SM allowed and not allowed cases > > src/java.management/share/class

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v10]

2024-06-14 Thread Kevin Walls
On Fri, 14 Jun 2024 12:09:46 GMT, Weijun Wang wrote: > I don't quite understand why there is no more `noPermissionsACC` in > `Monotor.java`. This looks like the only behavior change when SM is allowed. > The other source change looks fine to me. Does noPermissionsACC add anything? Maybe I'm r

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v6]

2024-06-14 Thread Kevin Walls
On Wed, 12 Jun 2024 21:03:17 GMT, Sean Mullan wrote: >> Kevin Walls has updated the pull request incrementally with one additional >> commit since the last revision: >> >>Undo test policy updates > > src/java.management.rmi/share/classes/javax/management/rem

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v3]

2024-06-13 Thread Kevin Walls
On Tue, 11 Jun 2024 19:01:45 GMT, Weijun Wang wrote: >> Thanks I'll go through the above comments and update - some of the changes I >> see are unnecessary and from when I was trying migrating to callAs, and >> doPrivileged, and yes they can be simpler. >> >> On the allowSecurityMananger check

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v10]

2024-06-13 Thread Kevin Walls
> JMX uses APIs related to the Security Mananger which are deprecated. Use of > AccessControlContext will be removed when Security Manager is removed. > > Until then, updates are needed to not require setting > -Djava.security.manager=allow to use JMX authentication. Kevin Wa

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v9]

2024-06-13 Thread Kevin Walls
> JMX uses APIs related to the Security Mananger which are deprecated. Use of > AccessControlContext will be removed when Security Manager is removed. > > Until then, updates are needed to not require setting > -Djava.security.manager=allow to use JMX authentication. Kevin Wa

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v6]

2024-06-13 Thread Kevin Walls
On Wed, 12 Jun 2024 16:41:36 GMT, Daniel Fuchs wrote: >> Kevin Walls has updated the pull request incrementally with one additional >> commit since the last revision: >> >>Undo test policy updates > > src/java.management.rmi/share/classes/javax/management/rem

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v8]

2024-06-13 Thread Kevin Walls
> JMX uses APIs related to the Security Mananger which are deprecated. Use of > AccessControlContext will be removed when Security Manager is removed. > > Until then, updates are needed to not require setting > -Djava.security.manager=allow to use JMX authentication. Kevin Wa

Re: jmx-dev RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v6]

2024-06-13 Thread Kevin Walls
On Wed, 12 Jun 2024 20:42:27 GMT, Sean Mullan wrote: >> Kevin Walls has updated the pull request incrementally with one additional >> commit since the last revision: >> >>Undo test policy updates > > src/java.management/share/class

  1   2   3   4   >