[JBoss JIRA] (ISPN-10106) Fix thread leaks in JUnit modules
by Dan Berindei (Jira)
[ https://issues.jboss.org/browse/ISPN-10106?page=com.atlassian.jira.plugin... ]
Dan Berindei updated ISPN-10106:
--------------------------------
Status: Open (was: New)
> Fix thread leaks in JUnit modules
> ---------------------------------
>
> Key: ISPN-10106
> URL: https://issues.jboss.org/browse/ISPN-10106
> Project: Infinispan
> Issue Type: Bug
> Components: Test Suite - Server
> Affects Versions: 9.4.11.Final, 10.0.0.Beta3
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Major
> Labels: testsuite_stability
> Fix For: 10.0.0.Beta4
>
>
> ISPN-9863 added a thread leak checker, but even with all the recent improvements, leaks in JUnit modules are not reported as test failures.
> Because Surefire ignores failures in JUnit configuration methods and listeners, the only sign of a leak is an error message in the console output:
> {noformat}
> [2019-03-28T17:33:54.119Z] org.apache.maven.surefire.booter.SurefireBooterForkException: ExecutionException There was an error in the forked process
> [2019-03-28T17:33:54.119Z] Test mechanism :: Leaked threads:
> [2019-03-28T17:33:54.119Z] {pool-7-thread-1: possible sources [UNKNOWN]},
> [2019-03-28T17:33:54.119Z] {management-client-thread 1-1: possible sources [UNKNOWN]}
> {noformat}
> And in a dump file:
> {noformat}
> [2019-03-28T18:23:39.501Z] ./integrationtests/security-it/target/failsafe-reports/2019-03-28T17-28-10_213-jvmRun1.dump
> [2019-03-28T18:23:39.501Z] # Created at 2019-03-28T17:29:25.623
> [2019-03-28T18:23:39.501Z] org.apache.maven.surefire.testset.TestSetFailedException: Test mechanism :: Leaked threads:
> [2019-03-28T18:23:39.501Z] {pool-7-thread-1: possible sources [UNKNOWN]},
> [2019-03-28T18:23:39.501Z] {management-client-thread 1-1: possible sources [UNKNOWN]}
> [2019-03-28T18:23:39.501Z] at org.apache.maven.surefire.common.junit4.JUnit4RunListener.rethrowAnyTestMechanismFailures(JUnit4RunListener.java:223)
> {noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 8 months
[JBoss JIRA] (ISPN-10106) Fix thread leaks in JUnit modules
by Dan Berindei (Jira)
[ https://issues.jboss.org/browse/ISPN-10106?page=com.atlassian.jira.plugin... ]
Dan Berindei updated ISPN-10106:
--------------------------------
Git Pull Request: https://github.com/infinispan/infinispan/pull/6857, https://github.com/infinispan/infinispan/pull/6858
> Fix thread leaks in JUnit modules
> ---------------------------------
>
> Key: ISPN-10106
> URL: https://issues.jboss.org/browse/ISPN-10106
> Project: Infinispan
> Issue Type: Bug
> Components: Test Suite - Server
> Affects Versions: 9.4.11.Final, 10.0.0.Beta3
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Major
> Labels: testsuite_stability
> Fix For: 10.0.0.Beta4
>
>
> ISPN-9863 added a thread leak checker, but even with all the recent improvements, leaks in JUnit modules are not reported as test failures.
> Because Surefire ignores failures in JUnit configuration methods and listeners, the only sign of a leak is an error message in the console output:
> {noformat}
> [2019-03-28T17:33:54.119Z] org.apache.maven.surefire.booter.SurefireBooterForkException: ExecutionException There was an error in the forked process
> [2019-03-28T17:33:54.119Z] Test mechanism :: Leaked threads:
> [2019-03-28T17:33:54.119Z] {pool-7-thread-1: possible sources [UNKNOWN]},
> [2019-03-28T17:33:54.119Z] {management-client-thread 1-1: possible sources [UNKNOWN]}
> {noformat}
> And in a dump file:
> {noformat}
> [2019-03-28T18:23:39.501Z] ./integrationtests/security-it/target/failsafe-reports/2019-03-28T17-28-10_213-jvmRun1.dump
> [2019-03-28T18:23:39.501Z] # Created at 2019-03-28T17:29:25.623
> [2019-03-28T18:23:39.501Z] org.apache.maven.surefire.testset.TestSetFailedException: Test mechanism :: Leaked threads:
> [2019-03-28T18:23:39.501Z] {pool-7-thread-1: possible sources [UNKNOWN]},
> [2019-03-28T18:23:39.501Z] {management-client-thread 1-1: possible sources [UNKNOWN]}
> [2019-03-28T18:23:39.501Z] at org.apache.maven.surefire.common.junit4.JUnit4RunListener.rethrowAnyTestMechanismFailures(JUnit4RunListener.java:223)
> {noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 8 months
[JBoss JIRA] (ISPN-10144) Netty wants access to jdk.internal.misc.Unsafe
by Dan Berindei (Jira)
[ https://issues.jboss.org/browse/ISPN-10144?page=com.atlassian.jira.plugin... ]
Dan Berindei updated ISPN-10144:
--------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/6858
> Netty wants access to jdk.internal.misc.Unsafe
> ----------------------------------------------
>
> Key: ISPN-10144
> URL: https://issues.jboss.org/browse/ISPN-10144
> Project: Infinispan
> Issue Type: Enhancement
> Components: Server
> Affects Versions: 9.4.12.Final, 10.0.0.Beta3
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Minor
>
> Netty tries to use {{jdk.internal.misc.Unsafe.allocateUninitializedArray()}} and logs a warning if it's not available. It's not critical, but one less warning is always good.
> {noformat}
> 2019-04-23 18:49:39,354 DEBUG [io.netty.util.internal.PlatformDependent0] (MSC service thread 1-2) direct buffer constructor: unavailable: java.lang.UnsupportedOperationException: Reflective setAccessible(true) disabled
> at io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.ReflectionUtil.trySetAccessible(ReflectionUtil.java:31)
> at io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.PlatformDependent0$4.run(PlatformDependent0.java:224)
> at java.base/java.security.AccessController.doPrivileged(Native Method)
> at io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.PlatformDependent0.<clinit>(PlatformDependent0.java:218)
> at io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.PlatformDependent.isAndroid(PlatformDependent.java:212)
> at io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.PlatformDependent.<clinit>(PlatformDependent.java:80)
> at io.netty:ispn-10.0@4.1.30.Final//io.netty.util.AsciiString.hashCode(AsciiString.java:1130)
> at java.base/java.util.HashMap.hash(HashMap.java:339)
> at java.base/java.util.HashMap.put(HashMap.java:607)
> at io.netty:ispn-10.0@4.1.30.Final//io.netty.handler.codec.http.cors.CorsConfigBuilder.build(CorsConfigBuilder.java:360)
> at org.infinispan.server.rest:ispn-10.0@10.0.0-SNAPSHOT//org.infinispan.rest.configuration.RestServerConfigurationBuilder.corsAllowForLocalhost(RestServerConfigurationBuilder.java:75)
> at org.infinispan.server.endpoint:ispn-10.0@10.0.0-SNAPSHOT//org.infinispan.server.endpoint.subsystem.RestService.start(RestService.java:119)
> at org.jboss.msc@1.4.3.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1736)
> at org.jboss.msc@1.4.3.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1698)
> at org.jboss.msc@1.4.3.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1556)
> at org.jboss.threads@2.3.2.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads@2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
> at org.jboss.threads@2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
> at org.jboss.threads@2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
> at java.base/java.lang.Thread.run(Thread.java:834)
> {noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 8 months
[JBoss JIRA] (ISPN-10144) Netty wants access to jdk.internal.misc.Unsafe
by Dan Berindei (Jira)
[ https://issues.jboss.org/browse/ISPN-10144?page=com.atlassian.jira.plugin... ]
Dan Berindei updated ISPN-10144:
--------------------------------
Git Pull Request: https://github.com/infinispan/infinispan/pull/6857, https://github.com/infinispan/infinispan/pull/6858 (was: https://github.com/infinispan/infinispan/pull/6858)
> Netty wants access to jdk.internal.misc.Unsafe
> ----------------------------------------------
>
> Key: ISPN-10144
> URL: https://issues.jboss.org/browse/ISPN-10144
> Project: Infinispan
> Issue Type: Enhancement
> Components: Server
> Affects Versions: 9.4.12.Final, 10.0.0.Beta3
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Minor
>
> Netty tries to use {{jdk.internal.misc.Unsafe.allocateUninitializedArray()}} and logs a warning if it's not available. It's not critical, but one less warning is always good.
> {noformat}
> 2019-04-23 18:49:39,354 DEBUG [io.netty.util.internal.PlatformDependent0] (MSC service thread 1-2) direct buffer constructor: unavailable: java.lang.UnsupportedOperationException: Reflective setAccessible(true) disabled
> at io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.ReflectionUtil.trySetAccessible(ReflectionUtil.java:31)
> at io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.PlatformDependent0$4.run(PlatformDependent0.java:224)
> at java.base/java.security.AccessController.doPrivileged(Native Method)
> at io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.PlatformDependent0.<clinit>(PlatformDependent0.java:218)
> at io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.PlatformDependent.isAndroid(PlatformDependent.java:212)
> at io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.PlatformDependent.<clinit>(PlatformDependent.java:80)
> at io.netty:ispn-10.0@4.1.30.Final//io.netty.util.AsciiString.hashCode(AsciiString.java:1130)
> at java.base/java.util.HashMap.hash(HashMap.java:339)
> at java.base/java.util.HashMap.put(HashMap.java:607)
> at io.netty:ispn-10.0@4.1.30.Final//io.netty.handler.codec.http.cors.CorsConfigBuilder.build(CorsConfigBuilder.java:360)
> at org.infinispan.server.rest:ispn-10.0@10.0.0-SNAPSHOT//org.infinispan.rest.configuration.RestServerConfigurationBuilder.corsAllowForLocalhost(RestServerConfigurationBuilder.java:75)
> at org.infinispan.server.endpoint:ispn-10.0@10.0.0-SNAPSHOT//org.infinispan.server.endpoint.subsystem.RestService.start(RestService.java:119)
> at org.jboss.msc@1.4.3.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1736)
> at org.jboss.msc@1.4.3.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1698)
> at org.jboss.msc@1.4.3.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1556)
> at org.jboss.threads@2.3.2.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads@2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
> at org.jboss.threads@2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
> at org.jboss.threads@2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
> at java.base/java.lang.Thread.run(Thread.java:834)
> {noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 8 months
[JBoss JIRA] (ISPN-10144) Netty wants access to jdk.internal.misc.Unsafe
by Dan Berindei (Jira)
[ https://issues.jboss.org/browse/ISPN-10144?page=com.atlassian.jira.plugin... ]
Dan Berindei updated ISPN-10144:
--------------------------------
Status: Open (was: New)
> Netty wants access to jdk.internal.misc.Unsafe
> ----------------------------------------------
>
> Key: ISPN-10144
> URL: https://issues.jboss.org/browse/ISPN-10144
> Project: Infinispan
> Issue Type: Enhancement
> Components: Server
> Affects Versions: 9.4.12.Final, 10.0.0.Beta3
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Minor
>
> Netty tries to use {{jdk.internal.misc.Unsafe.allocateUninitializedArray()}} and logs a warning if it's not available. It's not critical, but one less warning is always good.
> {noformat}
> 2019-04-23 18:49:39,354 DEBUG [io.netty.util.internal.PlatformDependent0] (MSC service thread 1-2) direct buffer constructor: unavailable: java.lang.UnsupportedOperationException: Reflective setAccessible(true) disabled
> at io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.ReflectionUtil.trySetAccessible(ReflectionUtil.java:31)
> at io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.PlatformDependent0$4.run(PlatformDependent0.java:224)
> at java.base/java.security.AccessController.doPrivileged(Native Method)
> at io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.PlatformDependent0.<clinit>(PlatformDependent0.java:218)
> at io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.PlatformDependent.isAndroid(PlatformDependent.java:212)
> at io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.PlatformDependent.<clinit>(PlatformDependent.java:80)
> at io.netty:ispn-10.0@4.1.30.Final//io.netty.util.AsciiString.hashCode(AsciiString.java:1130)
> at java.base/java.util.HashMap.hash(HashMap.java:339)
> at java.base/java.util.HashMap.put(HashMap.java:607)
> at io.netty:ispn-10.0@4.1.30.Final//io.netty.handler.codec.http.cors.CorsConfigBuilder.build(CorsConfigBuilder.java:360)
> at org.infinispan.server.rest:ispn-10.0@10.0.0-SNAPSHOT//org.infinispan.rest.configuration.RestServerConfigurationBuilder.corsAllowForLocalhost(RestServerConfigurationBuilder.java:75)
> at org.infinispan.server.endpoint:ispn-10.0@10.0.0-SNAPSHOT//org.infinispan.server.endpoint.subsystem.RestService.start(RestService.java:119)
> at org.jboss.msc@1.4.3.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1736)
> at org.jboss.msc@1.4.3.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1698)
> at org.jboss.msc@1.4.3.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1556)
> at org.jboss.threads@2.3.2.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads@2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
> at org.jboss.threads@2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
> at org.jboss.threads@2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
> at java.base/java.lang.Thread.run(Thread.java:834)
> {noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 8 months
[JBoss JIRA] (ISPN-10144) Netty wants access to jdk.internal.misc.Unsafe
by Dan Berindei (Jira)
Dan Berindei created ISPN-10144:
-----------------------------------
Summary: Netty wants access to jdk.internal.misc.Unsafe
Key: ISPN-10144
URL: https://issues.jboss.org/browse/ISPN-10144
Project: Infinispan
Issue Type: Enhancement
Components: Server
Affects Versions: 10.0.0.Beta3, 9.4.12.Final
Reporter: Dan Berindei
Assignee: Dan Berindei
Netty tries to use {{jdk.internal.misc.Unsafe.allocateUninitializedArray()}} and logs a warning if it's not available. It's not critical, but one less warning is always good.
{noformat}
2019-04-23 18:49:39,354 DEBUG [io.netty.util.internal.PlatformDependent0] (MSC service thread 1-2) direct buffer constructor: unavailable: java.lang.UnsupportedOperationException: Reflective setAccessible(true) disabled
at io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.ReflectionUtil.trySetAccessible(ReflectionUtil.java:31)
at io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.PlatformDependent0$4.run(PlatformDependent0.java:224)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.PlatformDependent0.<clinit>(PlatformDependent0.java:218)
at io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.PlatformDependent.isAndroid(PlatformDependent.java:212)
at io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.PlatformDependent.<clinit>(PlatformDependent.java:80)
at io.netty:ispn-10.0@4.1.30.Final//io.netty.util.AsciiString.hashCode(AsciiString.java:1130)
at java.base/java.util.HashMap.hash(HashMap.java:339)
at java.base/java.util.HashMap.put(HashMap.java:607)
at io.netty:ispn-10.0@4.1.30.Final//io.netty.handler.codec.http.cors.CorsConfigBuilder.build(CorsConfigBuilder.java:360)
at org.infinispan.server.rest:ispn-10.0@10.0.0-SNAPSHOT//org.infinispan.rest.configuration.RestServerConfigurationBuilder.corsAllowForLocalhost(RestServerConfigurationBuilder.java:75)
at org.infinispan.server.endpoint:ispn-10.0@10.0.0-SNAPSHOT//org.infinispan.server.endpoint.subsystem.RestService.start(RestService.java:119)
at org.jboss.msc@1.4.3.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1736)
at org.jboss.msc@1.4.3.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1698)
at org.jboss.msc@1.4.3.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1556)
at org.jboss.threads@2.3.2.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads@2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at org.jboss.threads@2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at org.jboss.threads@2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
at java.base/java.lang.Thread.run(Thread.java:834)
{noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 8 months