You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2024/08/09 14:01:00 UTC

[jira] [Commented] (NIFI-13647) Intermittent Socket Read Failures in ListenOTLPTest

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

ASF subversion and git services commented on NIFI-13647:
--------------------------------------------------------

Commit 920edfc022c97d871c6b905e3196c2fc02b9d938 in nifi's branch refs/heads/main from David Handermann
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=920edfc022 ]

NIFI-13647 Removed Socket Close from ListenOTLP Error Responses (#9166)



> Intermittent Socket Read Failures in ListenOTLPTest
> ---------------------------------------------------
>
>                 Key: NIFI-13647
>                 URL: https://issues.apache.org/jira/browse/NIFI-13647
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: David Handermann
>            Assignee: David Handermann
>            Priority: Minor
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The test class for the ListenOTLP Processor fails intermittently on automated builds, more frequently in Windows. More recent failures appear to be related to the ListenOTLP server closing the socket connection before the HTTP client has finished reading.
> {noformat}
> org.apache.nifi.web.client.api.WebClientServiceException: Request execution failed HTTP Method [POST] URI [https://localhost:57066/not-found]
> 	at org.apache.nifi.web.client.StandardWebClientService$StandardHttpRequestBodySpec.getResponse(StandardWebClientService.java:348)
> 	at org.apache.nifi.web.client.StandardWebClientService$StandardHttpRequestBodySpec.retrieve(StandardWebClientService.java:331)
> 	at org.apache.nifi.processors.opentelemetry.ListenOTLPTest.testPostPathNotFound(ListenOTLPTest.java:249)
> 	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
> 	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
> 	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
> Caused by: java.io.IOException: An established connection was aborted by the software in your host machine
> 	at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:964)
> 	at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:133)
> 	at org.apache.nifi.web.client.StandardWebClientService$StandardHttpRequestBodySpec.getResponse(StandardWebClientService.java:346)
> 	... 5 more
> Caused by: java.io.IOException: An established connection was aborted by the software in your host machine
> 	at java.base/sun.nio.ch.SocketDispatcher.read0(Native Method)
> 	at java.base/sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:46)
> 	at java.base/sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:340)
> 	at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:294)
> 	at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:269)
> 	at java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:427)
> 	at java.net.http/jdk.internal.net.http.SocketTube.readAvailable(SocketTube.java:1178)
> 	at java.net.http/jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription.read(SocketTube.java:841)
> 	at java.net.http/jdk.internal.net.http.SocketTube$SocketFlowTask.run(SocketTube.java:181)
> 	at java.net.http/jdk.internal.net.http.common.SequentialScheduler$SchedulableTask.run(SequentialScheduler.java:207)
> 	at java.net.http/jdk.internal.net.http.common.SequentialScheduler.runOrSchedule(SequentialScheduler.java:280)
> 	at java.net.http/jdk.internal.net.http.common.SequentialScheduler.runOrSchedule(SequentialScheduler.java:233)
> 	at java.net.http/jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription.signalReadable(SocketTube.java:782)
> 	at java.net.http/jdk.internal.net.http.SocketTube$InternalReadPublisher$ReadEvent.signalEvent(SocketTube.java:965)
> 	at java.net.http/jdk.internal.net.http.SocketTube$SocketFlowEvent.handle(SocketTube.java:253)
> 	at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.handleEvent(HttpClientImpl.java:1467)
> 	at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.lambda$run$3(HttpClientImpl.java:1412)
> 	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
> 	at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.run(HttpClientImpl.java:1412)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)