[
https://issues.apache.org/jira/browse/NIFI-13400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17855654#comment-17855654
]
Peter Turcsanyi commented on NIFI-13400:
----------------------------------------
[~joewitt] Thanks for sharing the test logs!
The error comes while the processor is trying to establish connection to Samba
(which is running in a test container):
{code:java}
[pool-27-thread-1] ERROR org.apache.nifi.processors.smb.PutSmbFile -
[PutSmbFile[id=55b466a5-ed24-4638-aa2e-8c29fe809d4d]] Could not establish smb
connection
com.hierynomus.protocol.transport.TransportException:
java.util.concurrent.ExecutionException:
com.hierynomus.smbj.common.SMBRuntimeException:
com.hierynomus.protocol.transport.TransportException: java.io.EOFException: EOF
while reading packet
at
com.hierynomus.protocol.transport.TransportException$1.wrap(TransportException.java:30)
at
com.hierynomus.protocol.transport.TransportException$1.wrap(TransportException.java:24)
at
com.hierynomus.protocol.commons.concurrent.Futures.get(Futures.java:47)
at
com.hierynomus.smbj.connection.Connection.sendAndReceive(Connection.java:243)
at
com.hierynomus.smbj.connection.SMBProtocolNegotiator.smb2OnlyNegotiate(SMBProtocolNegotiator.java:194)
at
com.hierynomus.smbj.connection.SMBProtocolNegotiator.negotiateDialect(SMBProtocolNegotiator.java:74)
at
com.hierynomus.smbj.connection.Connection.connect(Connection.java:141)
at
com.hierynomus.smbj.SMBClient.getEstablishedOrConnect(SMBClient.java:96)
at com.hierynomus.smbj.SMBClient.connect(SMBClient.java:83)
at org.apache.nifi.smb.common.SmbClient.connect(SmbClient.java:73)
at org.apache.nifi.smb.common.SmbClient.connect(SmbClient.java:69)
at
org.apache.nifi.processors.smb.PutSmbFile.onTrigger(PutSmbFile.java:309)
{code}
I ran into a similar issue when I was implemented the tests. My understanding
was that the server is not ready for connections yet, that's why EOF is
received.
In addition to the regular [port
based|https://github.com/apache/nifi/blob/039cd2f18a7063b5b5a50c4e16371443e52baabc/nifi-extension-bundles/nifi-smb-bundle/nifi-smb-processors/src/test/java/org/apache/nifi/processors/smb/SmbDfsIT.java#L61]
start-up check, I added a small [sleep
period|https://github.com/apache/nifi/blob/039cd2f18a7063b5b5a50c4e16371443e52baabc/nifi-extension-bundles/nifi-smb-bundle/nifi-smb-processors/src/test/java/org/apache/nifi/processors/smb/SmbDfsIT.java#L75]
for waiting for the server to be available. It seems it is not long enough in
your environment.
We have 2 options:
# increase the sleep interval
# implement a more sophisticated start-up check (e.g. try to establish
connection while it succeeds)
Could you please try #1 with 1,000 ms or even 10,000 ms in your environment in
order to be sure that this is the problem?
I will look into #2.
> SmbDfsIT failures
> ------------------
>
> Key: NIFI-13400
> URL: https://issues.apache.org/jira/browse/NIFI-13400
> Project: Apache NiFi
> Issue Type: Task
> Environment: Apache Maven 3.9.6
> (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
> Maven home: /development/tools/apache-maven-3.9.6
> Java version: 21.0.3, vendor: Azul Systems, Inc., runtime:
> /usr/lib/jvm/zulu21.34.19-ca-jdk21.0.3-linux_x64
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "6.8.9-200.fc39.x86_64", arch: "amd64", family:
> "unix"
> Reporter: Joe Witt
> Assignee: Peter Turcsanyi
> Priority: Major
> Fix For: 2.0.0-M4
>
> Attachments: TEST-org.apache.nifi.processors.smb.SmbDfsIT.xml
>
>
> [ERROR] Failures:
> [ERROR] SmbDfsIT.testFetchSmb:94 expected: <1> but was: <0>
> [ERROR] SmbDfsIT.testGetSmbFile:185 expected: <1> but was: <0>
> [ERROR] SmbDfsIT.testListSmbWithDfsLink:121->testListSmb:143 expected: <1>
> but was: <0>
> [ERROR] SmbDfsIT.testPutSmbFile:165 expected: <1> but was: <0>
> NIFI-12837 introduced this IT. It does not appear to work successfully on
> linux hosts. Unclear exactly. Does seem to work on osx. Perhaps the test
> is setup to assume arm or something.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)