[ https://issues.apache.org/jira/browse/NIFI-2692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16049525#comment-16049525 ]
Chris Herrera commented on NIFI-2692: ------------------------------------- This appears to occur on other platforms as well. Was able to reproduce on a Mac with the following configuration Java version: 1.8.0_121, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "10.12.5", arch: "x86_64", family: "Mac" This is the output of the test. Note I added information around the identified free port from the NetworkUtils class In TestListenSMTP validateSuccessfulInteraction chosen port = 57919 10:57:50.591 [pool-15-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: AUTH 10:57:50.592 [pool-15-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: DATA 10:57:50.592 [pool-15-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: EHLO 10:57:50.592 [pool-15-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: HELO 10:57:50.592 [pool-15-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: HELP 10:57:50.592 [pool-15-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: MAIL 10:57:50.592 [pool-15-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: NOOP 10:57:50.592 [pool-15-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: QUIT 10:57:50.592 [pool-15-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: RCPT 10:57:50.592 [pool-15-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: RSET 10:57:50.592 [pool-15-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: STARTTLS 10:57:50.592 [pool-15-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: VRFY 10:57:50.592 [pool-15-thread-1] INFO org.subethamail.smtp.server.SMTPServer - SMTP server *:57919 starting 10:57:50.594 [org.subethamail.smtp.server.ServerThread *:57919] INFO org.subethamail.smtp.server.ServerThread - SMTP server *:57919 started In TestListenSMTP validateSuccessfulInteractionWithTls chosen port = 57938 10:58:02.121 [org.subethamail.smtp.server.Session-/127.0.0.1:57989] DEBUG org.subethamail.smtp.server.Session - SMTP connection from localhost/127.0.0.1, new connection count: 1 10:58:02.121 [org.subethamail.smtp.server.Session-/127.0.0.1:57989] DEBUG org.subethamail.smtp.server.Session - Server: 220 192.168.244.18 ESMTP Apache NiFi SMTP 10:58:07.112 [pool-18-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: AUTH 10:58:07.112 [pool-18-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: DATA 10:58:07.112 [pool-18-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: EHLO 10:58:07.112 [pool-18-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: HELO 10:58:07.112 [pool-18-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: HELP 10:58:07.112 [pool-18-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: MAIL 10:58:07.112 [pool-18-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: NOOP 10:58:07.112 [pool-18-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: QUIT 10:58:07.112 [pool-18-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: RCPT 10:58:07.112 [pool-18-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: RSET 10:58:07.112 [pool-18-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: STARTTLS 10:58:07.112 [pool-18-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: VRFY 10:58:07.112 [pool-18-thread-1] INFO org.subethamail.smtp.server.SMTPServer - SMTP server *:57938 starting 10:58:07.113 [org.subethamail.smtp.server.ServerThread *:57938] INFO org.subethamail.smtp.server.ServerThread - SMTP server *:57938 started In TestListenSMTP validateTooLargeMessage chosen port = 57994 10:58:12.123 [org.subethamail.smtp.server.Session-/127.0.0.1:57989] DEBUG org.subethamail.smtp.server.Session - Client: EHLO 192.168.244.18 10:58:12.124 [org.subethamail.smtp.server.Session-/127.0.0.1:57989] DEBUG org.subethamail.smtp.server.Session - Server: 250-192.168.244.18 250-8BITMIME 250-SIZE 20971520 250 Ok 10:58:12.125 [org.subethamail.smtp.server.Session-/127.0.0.1:57989] DEBUG org.subethamail.smtp.server.Session - Client: MAIL FROM:<al...@nifi.apache.org> 10:58:12.127 [org.subethamail.smtp.server.Session-/127.0.0.1:57989] DEBUG org.subethamail.smtp.server.Session - Server: 250 Ok 10:58:12.127 [org.subethamail.smtp.server.Session-/127.0.0.1:57989] DEBUG org.subethamail.smtp.server.Session - Client: RCPT TO:<b...@nifi.apache.org> 10:58:12.127 [org.subethamail.smtp.server.Session-/127.0.0.1:57989] DEBUG org.subethamail.smtp.server.Session - Server: 250 Ok 10:58:12.127 [org.subethamail.smtp.server.Session-/127.0.0.1:57989] DEBUG org.subethamail.smtp.server.Session - Client: DATA 10:58:12.127 [org.subethamail.smtp.server.Session-/127.0.0.1:57989] DEBUG org.subethamail.smtp.server.Session - Server: 354 End data with <CR><LF>.<CR><LF> 10:58:12.131 [org.subethamail.smtp.server.Session-/127.0.0.1:57989] DEBUG org.subethamail.smtp.server.Session - Server: 250 Ok 10:58:12.131 [org.subethamail.smtp.server.Session-/127.0.0.1:57989] DEBUG org.subethamail.smtp.server.Session - Client: QUIT 10:58:12.132 [org.subethamail.smtp.server.Session-/127.0.0.1:57989] DEBUG org.subethamail.smtp.server.Session - Server: 221 Bye 10:58:18.630 [org.subethamail.smtp.server.Session-/127.0.0.1:58004] DEBUG org.subethamail.smtp.server.Session - SMTP connection from localhost/127.0.0.1, new connection count: 1 10:58:18.630 [org.subethamail.smtp.server.Session-/127.0.0.1:58004] DEBUG org.subethamail.smtp.server.Session - Server: 220 192.168.244.18 ESMTP Apache NiFi SMTP 10:58:23.631 [org.subethamail.smtp.server.Session-/127.0.0.1:58014] DEBUG org.subethamail.smtp.server.Session - SMTP connection from localhost/127.0.0.1, new connection count: 1 10:58:23.631 [org.subethamail.smtp.server.Session-/127.0.0.1:58014] DEBUG org.subethamail.smtp.server.Session - Server: 220 192.168.244.18 ESMTP Apache NiFi SMTP 10:58:28.634 [org.subethamail.smtp.server.Session-/127.0.0.1:58004] DEBUG org.subethamail.smtp.server.Session - Server: 421 Timeout waiting for data from client. 10:58:28.635 [pool-21-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: AUTH 10:58:28.635 [pool-21-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: DATA 10:58:28.635 [pool-21-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: EHLO 10:58:28.635 [pool-21-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: HELO 10:58:28.635 [pool-21-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: HELP 10:58:28.635 [pool-21-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: MAIL 10:58:28.635 [pool-21-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: NOOP 10:58:28.635 [pool-21-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: QUIT 10:58:28.635 [pool-21-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: RCPT 10:58:28.635 [pool-21-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: RSET 10:58:28.635 [pool-21-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: STARTTLS 10:58:28.635 [pool-21-thread-1] DEBUG org.subethamail.smtp.server.CommandHandler - Added command: VRFY 10:58:28.635 [pool-21-thread-1] INFO org.subethamail.smtp.server.SMTPServer - SMTP server *:57994 starting 10:58:28.636 [org.subethamail.smtp.server.ServerThread *:57994] INFO org.subethamail.smtp.server.ServerThread - SMTP server *:57994 started 10:58:33.635 [org.subethamail.smtp.server.Session-/127.0.0.1:58014] DEBUG org.subethamail.smtp.server.Session - Server: 421 Timeout waiting for data from client. org.apache.commons.mail.EmailException: Sending the email to the following server failed : localhost:57919 at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1421) at org.apache.commons.mail.Email.send(Email.java:1448) at org.apache.nifi.processors.email.TestListenSMTP$1.run(TestListenSMTP.java:78) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: javax.mail.MessagingException: Can't send command to SMTP host; nested exception is: java.net.SocketException: Broken pipe (Write failed) at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:2157) at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:2144) at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:2068) at com.sun.mail.smtp.SMTPTransport.helo(SMTPTransport.java:1469) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:660) at javax.mail.Service.connect(Service.java:295) at javax.mail.Service.connect(Service.java:176) at javax.mail.Service.connect(Service.java:125) at javax.mail.Transport.send0(Transport.java:194) at javax.mail.Transport.send(Transport.java:124) at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1411) ... 9 more Caused by: java.net.SocketException: Broken pipe (Write failed) at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111) at java.net.SocketOutputStream.write(SocketOutputStream.java:155) at com.sun.mail.util.TraceOutputStream.write(TraceOutputStream.java:128) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140) at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:2155) ... 19 more > TestListenSMTP tests fail on Windows 10 > --------------------------------------- > > Key: NIFI-2692 > URL: https://issues.apache.org/jira/browse/NIFI-2692 > Project: Apache NiFi > Issue Type: Bug > Affects Versions: 1.0.0 > Reporter: Aldrin Piri > > All tests within TestListenSMTP fail on Windows 10 as initially reported by > [~jskora] and confirmed by myself while building. These items seem to > timeout in that environment and with extended periods, seem to pass > successfully. -- This message was sent by Atlassian JIRA (v6.4.14#64029)