Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-11872

CertificateTest test blocking

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 11.0.0.CR1
    • None
    • None
    • None

      The CertificateTest is now failing as being blocking. It is unclear how this was not caught by ISPN-11831, as it didn't fail there in any run.

      Either way we need to add an exclusion for blockhound to let the JDK initialize the SSL context.

        java.lang.AssertionError: Blocking call! java.io.FileInputStream#readBytes on thread Thread[REST-CertificateTest-ServerIO-3-1,5,main]
      	at org.infinispan.util.CoreTestBlockHoundIntegration.lambda$applyTo$0(CoreTestBlockHoundIntegration.java:44)
      	at reactor.blockhound.BlockHound$Builder.lambda$install$8(BlockHound.java:383)
      	at reactor.blockhound.BlockHoundRuntime.checkBlocking(BlockHoundRuntime.java:89)
      	at java.base/java.io.FileInputStream.readBytes(FileInputStream.java)
      	at java.base/java.io.FileInputStream.read(FileInputStream.java:279)
      	at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:252)
      	at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:271)
      	at java.base/sun.security.util.DerValue.init(DerValue.java:388)
      	at java.base/sun.security.util.DerValue.<init>(DerValue.java:331)
      	at java.base/sun.security.util.DerValue.<init>(DerValue.java:344)
      	at java.base/sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1993)
      	at java.base/sun.security.util.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:222)
      	at java.base/java.security.KeyStore.load(KeyStore.java:1479)
      	at java.base/sun.security.ssl.TrustStoreManager$TrustAnchorManager.loadKeyStore(TrustStoreManager.java:365)
      	at java.base/sun.security.ssl.TrustStoreManager$TrustAnchorManager.getTrustedCerts(TrustStoreManager.java:313)
      	at java.base/sun.security.ssl.TrustStoreManager.getTrustedCerts(TrustStoreManager.java:55)
      	at java.base/sun.security.ssl.TrustManagerFactoryImpl.engineInit(TrustManagerFactoryImpl.java:49)
      	at java.base/javax.net.ssl.TrustManagerFactory.init(TrustManagerFactory.java:278)
      	at java.base/sun.security.ssl.SSLContextImpl.engineInit(SSLContextImpl.java:88)
      	at java.base/javax.net.ssl.SSLContext.init(SSLContext.java:297)
      	at io.netty.handler.ssl.JdkSslContext.<clinit>(JdkSslContext.java:74)
      	at org.infinispan.server.core.utils.SslUtils.createSslContext(SslUtils.java:50)
      	at org.infinispan.server.core.utils.SslUtils.createNettySslContext(SslUtils.java:25)
      	at org.infinispan.server.core.transport.NettyChannelInitializer.initializeChannel(NettyChannelInitializer.java:50)
      	at org.infinispan.rest.RestChannelInitializer.initializeChannel(RestChannelInitializer.java:43)
      	at org.infinispan.server.core.transport.NettyInitializers.initChannel(NettyInitializers.java:20)
      	at io.netty.channel.ChannelInitializer.initChannel(ChannelInitializer.java:129)
      	at io.netty.channel.ChannelInitializer.handlerAdded(ChannelInitializer.java:112)
      	at io.netty.channel.AbstractChannelHandlerContext.callHandlerAdded(AbstractChannelHandlerContext.java:938)
      	at io.netty.channel.DefaultChannelPipeline.callHandlerAdded0(DefaultChannelPipeline.java:609)
      	at io.netty.channel.DefaultChannelPipeline.access$100(DefaultChannelPipeline.java:46)
      	at io.netty.channel.DefaultChannelPipeline$PendingHandlerAddedTask.execute(DefaultChannelPipeline.java:1463)
      	at io.netty.channel.DefaultChannelPipeline.callHandlerAddedForAllHandlers(DefaultChannelPipeline.java:1115)
      	at io.netty.channel.DefaultChannelPipeline.invokeHandlerAddedIfNeeded(DefaultChannelPipeline.java:650)
      	at io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:502)
      	at io.netty.channel.AbstractChannel$AbstractUnsafe.access$200(AbstractChannel.java:417)
      	at io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:474)
      	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
      	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
      	at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:387)
      	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
      	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
      	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
      	at java.base/java.lang.Thread.run(Thread.java:834)
      

            wburns@redhat.com Will Burns
            wburns@redhat.com Will Burns
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: