[ 
https://issues.apache.org/jira/browse/NIFI-8742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17384436#comment-17384436
 ] 

Nathan Gough commented on NIFI-8742:
------------------------------------

I am seeing this issue intermittently with clustering, still not sure what the 
issue is:

!image-2021-07-20-14-46-47-853.png|width=616,height=246!

 
{quote}2021-07-20 12:38:31,691 WARN [Replicate Request Thread-6] 
o.a.n.c.c.h.r.ThreadPoolRequestReplicator Failed to replicate request GET 
/nifi-api/flow/controller/bulletins to natog0.com:9550 due to 
java.net.SocketTimeoutException: timeout

2021-07-20 12:38:31,691 WARN [Replicate Request Thread-6] 
o.a.n.c.c.h.r.ThreadPoolRequestReplicator

java.net.SocketTimeoutException: timeout

        at okio.SocketAsyncTimeout.newTimeoutException(JvmOkio.kt:143)

        at okio.AsyncTimeout.access$newTimeoutException(AsyncTimeout.kt:162)

        at okio.AsyncTimeout$source$1.read(AsyncTimeout.kt:335)

        at okio.RealBufferedSource.indexOf(RealBufferedSource.kt:427)

        at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.kt:320)

        at okhttp3.internal.http1.HeadersReader.readLine(HeadersReader.kt:29)

        at 
okhttp3.internal.http1.Http1ExchangeCodec.readResponseHeaders(Http1ExchangeCodec.kt:178)

        at 
okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:106)

        at 
okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:79)

        at 
okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)

        at 
okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)

        at 
okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)

        at 
okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)

        at 
okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)

        at 
okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)

        at 
okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)

        at 
okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)

        at 
okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)

        at 
okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)

        at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)

        at 
org.apache.nifi.cluster.coordination.http.replication.okhttp.OkHttpReplicationClient.replicate(OkHttpReplicationClient.java:136)

        at 
org.apache.nifi.cluster.coordination.http.replication.okhttp.OkHttpReplicationClient.replicate(OkHttpReplicationClient.java:130)

        at 
org.apache.nifi.cluster.coordination.http.replication.ThreadPoolRequestReplicator.replicateRequest(ThreadPoolRequestReplicator.java:640)

        at 
org.apache.nifi.cluster.coordination.http.replication.ThreadPoolRequestReplicator$NodeHttpRequest.run(ThreadPoolRequestReplicator.java:832)

        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

        at java.lang.Thread.run(Thread.java:748)

Caused by: javax.net.ssl.SSLException: Socket closed

        at sun.security.ssl.Alert.createSSLException(Alert.java:127)

        at sun.security.ssl.TransportContext.fatal(TransportContext.java:348)

        at sun.security.ssl.TransportContext.fatal(TransportContext.java:291)

        at sun.security.ssl.TransportContext.fatal(TransportContext.java:286)

        at 
sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1580)

        at sun.security.ssl.SSLSocketImpl.access$400(SSLSocketImpl.java:73)

        at 
sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:980)

        at okio.InputStreamSource.read(JvmOkio.kt:90)

        at okio.AsyncTimeout$source$1.read(AsyncTimeout.kt:129)

        ... 26 common frames omitted

Caused by: java.net.SocketException: Socket closed

        at java.net.SocketInputStream.socketRead0(Native Method)

        at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)

        at java.net.SocketInputStream.read(SocketInputStream.java:171)

        at java.net.SocketInputStream.read(SocketInputStream.java:141)

        at 
sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:476)

        at 
sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:470)

        at 
sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket(SSLSocketInputRecord.java:70)

        at 
sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1355)

        at sun.security.ssl.SSLSocketImpl.access$300(SSLSocketImpl.java:73)

        at 
sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:964)

        ... 28 common frames omitted

2021-07-20 12:38:34,608 ERROR [I/O dispatcher 1610] 
o.a.n.r.util.SiteToSiteRestApiClient Failed to send data to 
https://natog1.com:9551/nifi-api/data-transfer/input-ports/9bc7b3f3-016c-1000-ffff-ffffbd5ea695/transactions/8094920b-2dfa-460b-bc4a-4e23f2251f88/flow-files
 due to java.net.SocketTimeoutException: 30,000 milliseconds timeout on 
connection http-outgoing-269 [ACTIVE]

java.net.SocketTimeoutException: 30,000 milliseconds timeout on connection 
http-outgoing-269 [ACTIVE]

        at 
org.apache.http.nio.protocol.HttpAsyncRequestExecutor.timeout(HttpAsyncRequestExecutor.java:381)

        at 
org.apache.http.impl.nio.client.InternalIODispatch.onTimeout(InternalIODispatch.java:92)

        at 
org.apache.http.impl.nio.client.InternalIODispatch.onTimeout(InternalIODispatch.java:39)

        at 
org.apache.http.impl.nio.reactor.AbstractIODispatch.timeout(AbstractIODispatch.java:175)

        at 
org.apache.http.impl.nio.reactor.BaseIOReactor.sessionTimedOut(BaseIOReactor.java:263)

        at 
org.apache.http.impl.nio.reactor.AbstractIOReactor.timeoutCheck(AbstractIOReactor.java:492)

        at 
org.apache.http.impl.nio.reactor.BaseIOReactor.validate(BaseIOReactor.java:213)

        at 
org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:280)
{quote}

> Unable to view FlowFile Content in cluster mode
> -----------------------------------------------
>
>                 Key: NIFI-8742
>                 URL: https://issues.apache.org/jira/browse/NIFI-8742
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.14.0
>            Reporter: Mark Payne
>            Priority: Critical
>         Attachments: image-2021-07-20-14-46-47-853.png
>
>
> When I create some content and List Queue I can see the FlowFile in the 
> queue. I can then download it. However, when I attempt to view it, I get a 
> TimeoutException:
> {code:java}
> 2021-06-25 18:08:55,958 WARN [Replicate Request Thread-1] 
> o.a.n.c.c.h.r.ThreadPoolRequestReplicator Failed to replicate request GET 
> /nifi-api/flowfile-queues/452afb8c-017a-1000-0000-000046f5f263/flowfiles/907f11da-666f-428f-9582-b9afb0ac107a/content
>  to localhost:8481 due to java.net.SocketTimeoutException: timeout
> 2021-06-25 18:08:55,962 WARN [Replicate Request Thread-1] 
> o.a.n.c.c.h.r.ThreadPoolRequestReplicator
> java.net.SocketTimeoutException: timeout
>       at okio.SocketAsyncTimeout.newTimeoutException(JvmOkio.kt:143)
>       at okio.AsyncTimeout.access$newTimeoutException(AsyncTimeout.kt:162)
>       at okio.AsyncTimeout$source$1.read(AsyncTimeout.kt:335)
>       at okio.RealBufferedSource.indexOf(RealBufferedSource.kt:427)
>       at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.kt:320)
>       at okhttp3.internal.http1.HeadersReader.readLine(HeadersReader.kt:29)
>       at 
> okhttp3.internal.http1.Http1ExchangeCodec.readResponseHeaders(Http1ExchangeCodec.kt:178)
>       at 
> okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:106)
>       at 
> okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:79)
>       at 
> okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
>       at 
> okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)
>       at 
> okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
>       at 
> okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
>       at 
> okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
>       at 
> okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
>       at 
> okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
>       at 
> okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
>       at 
> okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
>       at 
> okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
>       at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
>       at 
> org.apache.nifi.cluster.coordination.http.replication.okhttp.OkHttpReplicationClient.replicate(OkHttpReplicationClient.java:136)
>       at 
> org.apache.nifi.cluster.coordination.http.replication.okhttp.OkHttpReplicationClient.replicate(OkHttpReplicationClient.java:130)
>       at 
> org.apache.nifi.cluster.coordination.http.replication.ThreadPoolRequestReplicator.replicateRequest(ThreadPoolRequestReplicator.java:640)
>       at 
> org.apache.nifi.cluster.coordination.http.replication.ThreadPoolRequestReplicator$NodeHttpRequest.run(ThreadPoolRequestReplicator.java:832)
>       at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>       at java.lang.Thread.run(Thread.java:748)
> Caused by: java.net.SocketTimeoutException: Read timed out
>       at java.net.SocketInputStream.socketRead0(Native Method)
>       at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
>       at java.net.SocketInputStream.read(SocketInputStream.java:171)
>       at java.net.SocketInputStream.read(SocketInputStream.java:141)
>       at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
>       at sun.security.ssl.InputRecord.read(InputRecord.java:503)
>       at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:990)
>       at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:948)
>       at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
>       at okio.InputStreamSource.read(JvmOkio.kt:90)
>       at okio.AsyncTimeout$source$1.read(AsyncTimeout.kt:129)
>       ... 26 common frames omitted
> {code}
> Works okay in standalone mode but not cluster mode. I have a 2-node cluster 
> running on localhost, with almost no load. So there should be no timeout..



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to