Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0F66E200CDA for ; Fri, 4 Aug 2017 23:13:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0DBC116DA41; Fri, 4 Aug 2017 21:13:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 510B016DA3D for ; Fri, 4 Aug 2017 23:13:04 +0200 (CEST) Received: (qmail 20612 invoked by uid 500); 4 Aug 2017 21:13:03 -0000 Mailing-List: contact issues-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list issues@nifi.apache.org Received: (qmail 20603 invoked by uid 99); 4 Aug 2017 21:13:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Aug 2017 21:13:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id E75131A1995 for ; Fri, 4 Aug 2017 21:13:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id rHhsQnuTcjST for ; Fri, 4 Aug 2017 21:13:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 2F4755F5B6 for ; Fri, 4 Aug 2017 21:13:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 66B87E0044 for ; Fri, 4 Aug 2017 21:13:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 237BE23E73 for ; Fri, 4 Aug 2017 21:13:00 +0000 (UTC) Date: Fri, 4 Aug 2017 21:13:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@nifi.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (NIFI-4152) Create ListenTCPRecord Processor MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 04 Aug 2017 21:13:05 -0000 [ https://issues.apache.org/jira/browse/NIFI-4152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16114973#comment-16114973 ] ASF GitHub Bot commented on NIFI-4152: -------------------------------------- Github user pvillard31 commented on the issue: https://github.com/apache/nifi/pull/1987 Hey @bbende, just built this PR and did some tests. The template I used is here: https://gist.github.com/pvillard31/5ecea5932bf70fc622e30be8512601b6 Then I send messages using nc: ```` $> nc localhost 9876 2016-11-08 21:24:23,029 FINE Yellow 2016-11-08 21:24:23,029 INFO Test Message 1 2016-11-08 21:24:23,029 WARN Red 2016-11-08 21:24:23,029 ERROR Green 2016-11-08 21:24:23,029 FATAL Blue ... ```` Observations: - If I start ``nc`` but don't send any message, it'll fail after the read timeout with the following message (and kill my ``nc`` connection): ```` ListenTCPRecord[id=aefaaba3-015d-1000-cecb-dd76899c8193] Error processing records: null: java.net.SocketTimeoutException ```` I'm not sure if we want to raise a bulletin alert if the source is not sending any message. Thoughts? - If I start ``nc`` and send messages, but less than the maximum number of records per flow file (1000), then it'll generate a flow file only after 30 seconds without receiving any message (and it'll generate a bulletin). - If I start ``nc`` and keep sending messages, it'll generate flow files containing exactly the number set for the property "record batch size". While I understand this is the intended behaviour, I'm not sure if this is clear enough in the description of the processor. In particular, raising a bulletin and killing the connection in case no data is received could seem weird (and it's not similar to the way ListenTCP is working). Instead of killing the connection, what about just generating a flow file with the amount data available at this moment? Or change the level of the log message to info? And probably improve the message to let the user knows that the connection has been closed because no data has been received since X seconds? Thoughts? > Create ListenTCPRecord Processor > -------------------------------- > > Key: NIFI-4152 > URL: https://issues.apache.org/jira/browse/NIFI-4152 > Project: Apache NiFi > Issue Type: Improvement > Reporter: Bryan Bende > Assignee: Bryan Bende > Priority: Minor > Attachments: ListenTCPRecordWithGrok.xml > > > We should implement a ListenTCPRecord that can pass the underlying InputStream from a TCP connection to a record reader. -- This message was sent by Atlassian JIRA (v6.4.14#64029)