[
https://issues.apache.org/jira/browse/NIFI-16376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18117958#comment-18117958
]
ASF subversion and git services commented on NIFI-16376:
--------------------------------------------------------
Commit 617e2323895a31c117b9ed96dd2ec0b33e35be4c in nifi's branch
refs/heads/main from David Handermann
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=617e2323895 ]
NIFI-16376 Improved unstable test method in TestLoadBalanceSession (#11706)
- Added writeUntilReceived() method to avoid unnecessary handshaking
> TestLoadBalanceSession.testSessionCancelLeavesChannelOpenSoReusedStreamRepeatsVersionByte
> is unstable
> -----------------------------------------------------------------------------------------------------
>
> Key: NIFI-16376
> URL: https://issues.apache.org/jira/browse/NIFI-16376
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Core Framework
> Reporter: David Handermann
> Assignee: David Handermann
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> A recent new unit test for the LoadBalanceSession is unstable and can fail on
> Windows or slower machines as shown in the following exception:
> {noformat}
> java.io.IOException: Failed to negotiate Protocol Version with Peer
> unit-test. Recommended version 1 but instead of an ACCEPT or REJECT response
> got back a response of 101
> at
> org.apache.nifi.controller.queue.clustered.client.async.nio.LoadBalanceSession.receiveProtocolVersionAcknowledgment(LoadBalanceSession.java:446)
> at
> org.apache.nifi.controller.queue.clustered.client.async.nio.LoadBalanceSession.communicate(LoadBalanceSession.java:148)
> at
> org.apache.nifi.controller.queue.clustered.client.async.nio.TestLoadBalanceSession.testSessionCancelLeavesChannelOpenSoReusedStreamRepeatsVersionByte(TestLoadBalanceSession.java:220)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)