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 5DBAE200CF3 for ; Wed, 13 Sep 2017 16:15:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5C6EA1609CA; Wed, 13 Sep 2017 14:15:23 +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 2D6F01609C9 for ; Wed, 13 Sep 2017 16:15:22 +0200 (CEST) Received: (qmail 39067 invoked by uid 500); 13 Sep 2017 14:15:20 -0000 Mailing-List: contact users-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@nifi.apache.org Delivered-To: mailing list users@nifi.apache.org Received: (qmail 39057 invoked by uid 99); 13 Sep 2017 14:15:20 -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; Wed, 13 Sep 2017 14:15:20 +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 DEF4A1A2D4C for ; Wed, 13 Sep 2017 14:15:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.336 X-Spam-Level: *** X-Spam-Status: No, score=3.336 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FORGED_HOTMAIL_RCVD2=1.187, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=hotmail.com 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 aSYEikR4HQNW for ; Wed, 13 Sep 2017 14:15:16 +0000 (UTC) Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-oln040092006040.outbound.protection.outlook.com [40.92.6.40]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 2C08A5F523 for ; Wed, 13 Sep 2017 14:15:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=codH0wpJH9J2413FgsOANlnawqJX4VyX+P3jIxNt10M=; b=maCvS1KGnHKCAWc1xFU1EPV3IyUtngy00Io+nTMvZkgyaYxSPvQ21Hg6OR7/hvBPrpSuzJFN/aXjJoByTUN9fll+inyy7Sz+NZOuUITItEu5Oy0UdwoarBEVWg+XRsXSJTSpHp89nQSbwnvNBuESz9spy+OZPWEKdmRdvPEhbX6yu/CWierAHzZr6LD0x8RDru064b5r30EF9DeaDGq8a8/MDdEmTy4DH9vFsI95qoxk/gGMI9sWSDX1tVJMKc+deROd8XG1OjvT2280uexTpXgqnwNpxwJapsOppPYuW9syUj0cbJEN+fQ3o6+aahyyc4P1iiUC2u23HKj4Pk5IrQ== Received: from CO1NAM03FT017.eop-NAM03.prod.protection.outlook.com (10.152.80.58) by CO1NAM03HT199.eop-NAM03.prod.protection.outlook.com (10.152.81.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.35.14; Wed, 13 Sep 2017 14:15:09 +0000 Received: from BN3PR15MB0804.namprd15.prod.outlook.com (10.152.80.57) by CO1NAM03FT017.mail.protection.outlook.com (10.152.80.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.35.14 via Frontend Transport; Wed, 13 Sep 2017 14:15:09 +0000 Received: from BN3PR15MB0804.namprd15.prod.outlook.com ([10.165.80.20]) by BN3PR15MB0804.namprd15.prod.outlook.com ([10.165.80.20]) with mapi id 15.20.0035.021; Wed, 13 Sep 2017 14:15:09 +0000 From: Mark Payne To: "users@nifi.apache.org" Subject: Re: QueryRecord not closing stream before committing session Thread-Topic: QueryRecord not closing stream before committing session Thread-Index: AQHTLJjxuOmsWR9bN0637MzT1zI4yqKy3DCA Date: Wed, 13 Sep 2017 14:15:08 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:1E7DBE02D967A2D97E88693C208A511826E74631BD62072C7BAF7626E45B5549;UpperCasedChecksum:EB80CA4D8D5F352993C54E29F30E306B64BDE7A6C16816278BA21EA5332628F8;SizeAsReceived:7051;Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [a6af/SEu8gqsTlhEYWl7wbdNFSMQo7YrAd7QHjFeXfo=] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CO1NAM03HT199;6:ZjfJhIK5efiEKLBNpRHQ9ni9JZR/5HPVgFy20P0lQX8mR2QCzlwHjPjNUlWjMAjtJm1GnPspJn6Ctxcekc9yDk9Lxm+yVDSnRRww5ojSFoZ7mP4gZITbUJk2vUReHuh1H53+67L5m7zDaYyvpzFGEZcSpxUeW6ziw33QoGfaBjTs6UBt4vIXc7uvY1RbbzCuURJS7icCBM8jb6s8K+efnNJQuAvhEdRwE7m5tF1SIgUIHzJOJwJK36Yc3Yz2F3UJ9LZKtbHQqD+F5PGJSxLXyI/KbAaHtUwP8y+dZnxHFwi3MdM/U2vT7GaJXE1DkBAEbQuI9n1+xEIIxkenbu5PZg==;5:4QhpyYNDr4rWbEviNhaxTNfpaGPferaELISKCL1OGjwS6lzDoZfUMc2SS8rVnlQ/KdJMPMmJB/eY38M+AIHlkDOklfS80te1YEW9LhBLORalek9e9N8nQwCb5OufcnoDwsZ5KwBgsTcfGFortbrA9w==;24:Kefe/8Nlj7heb8u59YIwGSuxNirvHUq9bovEoTVlmqwBXmm1d8EwNsyicjnlWhYrSgYIBB4QIvXWtCQ2jB6i57fRKxrRxdtCXXd+gh2iBp0=;7:/Q1GbwMJVOYdWwlTCz/Z3mxLpuQebK/Cd3M0VwHMOdqh7jhDTk2R6jpKLt0XJCftmrGNcVkNU6L4yL0KRSXqHnAh0umRD/WRZOOMhvMESfpE9M7+AYokhuInZzrpDV3U1f/Lyc4WazgOfChuqk8euHPO4mjBOVpoDU4sBcfnSc40Fa37KZ39cV/qTm8DBeQineuIMggL2Zyymx22QVJbsLzRv3KPzHhGHR0CUe8mXCc= x-incomingheadercount: 46 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 238be44a-3bc0-46cd-31dd-08d4fab1d684 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101448)(1601125374)(1701031045)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:CO1NAM03HT199; x-ms-traffictypediagnostic: CO1NAM03HT199: authentication-results: outbound.protection.outlook.com; spf=skipped (originating message); dkim=none (message not signed) header.d=none; dmarc=none action=none header.from=hotmail.com; x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(444000031);SRVR:CO1NAM03HT199;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CO1NAM03HT199; x-forefront-prvs: 042957ACD7 x-forefront-antispam-report: SFV:NSPM;SFS:(7070007)(98901004);DIR:OUT;SFP:1901;SCL:1;SRVR:CO1NAM03HT199;H:BN3PR15MB0804.namprd15.prod.outlook.com;FPR:;SPF:None;LANG:; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_BN3PR15MB08043BF8442F953DA701F897CE6E0BN3PR15MB0804namp_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Sep 2017 14:15:08.9819 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1NAM03HT199 archived-at: Wed, 13 Sep 2017 14:15:23 -0000 --_000_BN3PR15MB08043BF8442F953DA701F897CE6E0BN3PR15MB0804namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Neil, Do you have any other errors in your log? Specifically, if you search for "= Unable to query" do you find anything? This appears to be a problem with the failure handling logic, but it would = only get into this state if another failure occurred. That other failure should be logged starting with "Unable to query". Thanks -Mark On Sep 13, 2017, at 10:01 AM, Neil Derraugh > wrote: Seeing this warning and the subsequent error in a dataflow we recently auth= ored. Bryan, looks like the same thing you were asking details of on Horto= nworks Community Connection. This is a QueryRecord processor consuming a schema in the Schema Registry u= sing a CSVReader and CSVRecordSetWriter. Cache Schema and Include Zero Rec= ord FlowFiles are set to false. 2017-09-13 09:54:42,628 WARN [Timer-Driven Process Thread-7] o.a.n.c.r.Stan= dardProcessSession StandardProcessSession[id=3D36915342] closing ErrorHandl= ingInputStream[FlowFile=3DStandardFlowFileRecord[uuid=3D8ad17b27-2d2d-49e7-= 9e79-e280deb8776a,claim=3DStandardContentClaim [resourceClaim=3DStandardRes= ourceClaim[id=3D1505264918993-2878, container=3Ddefault, section=3D830], of= fset=3D0, length=3D308314548],offset=3D283108779,name=3D1505264934456321572= 15839162_8ad17b27-2d2d-49e7-9e79-e280deb8776a,size=3D10485503]] for Standar= dFlowFileRecord[uuid=3D8ad17b27-2d2d-49e7-9e79-e280deb8776a,claim=3DStandar= dContentClaim [resourceClaim=3DStandardResourceClaim[id=3D1505264918993-287= 8, container=3Ddefault, section=3D830], offset=3D0, length=3D308314548],off= set=3D283108779,name=3D150526493445632157215839162_8ad17b27-2d2d-49e7-9e79-= e280deb8776a,size=3D10485503] because the session was committed without the= stream being closed. 2017-09-13 09:54:42,628 ERROR [Timer-Driven Process Thread-7] o.a.nifi.proc= essors.standard.QueryRecord QueryRecord[id=3D57303d34-015e-1000-0000-000003= 2f37b4] QueryRecord[id=3D57303d34-015e-1000-0000-0000032f37b4] failed to pr= ocess session due to java.lang.IllegalStateException: StandardFlowFileRecor= d[uuid=3D8ad17b27-2d2d-49e7-9e79-e280deb8776a,claim=3DStandardContentClaim = [resourceClaim=3DStandardResourceClaim[id=3D1505264918993-2878, container= =3Ddefault, section=3D830], offset=3D0, length=3D308314548],offset=3D283108= 779,name=3D150526493445632157215839162_8ad17b27-2d2d-49e7-9e79-e280deb8776a= ,size=3D10485503] already in use for an active callback or an InputStream c= reated by ProcessSession.read(FlowFile) has not been closed: {} java.lang.IllegalStateException: StandardFlowFileRecord[uuid=3D8ad17b27-2d2= d-49e7-9e79-e280deb8776a,claim=3DStandardContentClaim [resourceClaim=3DStan= dardResourceClaim[id=3D1505264918993-2878, container=3Ddefault, section=3D8= 30], offset=3D0, length=3D308314548],offset=3D283108779,name=3D150526493445= 632157215839162_8ad17b27-2d2d-49e7-9e79-e280deb8776a,size=3D10485503] alrea= dy in use for an active callback or an InputStream created by ProcessSessio= n.read(FlowFile) has not been closed at org.apache.nifi.controller.repository.StandardProcessSession.validateRec= ordState(StandardProcessSession.java:3018) at org.apache.nifi.controller.repository.StandardProcessSession.validateRec= ordState(StandardProcessSession.java:3013) at org.apache.nifi.controller.repository.StandardProcessSession.transfer(St= andardProcessSession.java:1815) at org.apache.nifi.processors.standard.QueryRecord.onTrigger(QueryRecord.ja= va:355) at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.= java:27) at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProce= ssorNode.java:1120) at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(Contin= uallyRunProcessorTask.java:147) at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(Contin= uallyRunProcessorTask.java:47) at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(T= imerDrivenSchedulingAgent.java:132) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acc= ess$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run= (ScheduledThreadPoolExecutor.java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.jav= a:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja= va:617) at java.lang.Thread.run(Thread.java:748) --_000_BN3PR15MB08043BF8442F953DA701F897CE6E0BN3PR15MB0804namp_ Content-Type: text/html; charset="us-ascii" Content-ID: <1E98592BA1A37248A809370F25B25B8A@namprd15.prod.outlook.com> Content-Transfer-Encoding: quoted-printable
Neil,

Do you have any other errors in your log? Specifically, if = you search for "Unable to query" do you find anything?
This appears to be a problem with the failure handling logi= c, but it would only get into this state if another failure occurred.
That other failure should be logged starting with "Una= ble to query".

Thanks
-Mark


On Sep 13, 2017, at 10:01 AM, Neil Derraugh <neil.derraugh@intell= ifylearning.com> wrote:

Seeing this warning and the subsequent error in a dataflow = we recently authored.  Bryan, looks like the same thing you were askin= g details of on Hortonworks Community Connection.

This is a QueryRecord processor consuming a schema in the S= chema Registry using a CSVReader and CSVRecordSetWriter.  Cache Schema= and Include Zero Record FlowFiles are set to false.

2017-09-13 09:54:42,628 WARN [Timer-Driven Process Thread-7= ] o.a.n.c.r.StandardProcessSession StandardProcessSession[id=3D36915342] cl= osing ErrorHandlingInputStream[FlowFile=3DStandardFlowFileRecord[uuid=3D8ad= 17b27-2d2d-49e7-9e79-e280deb8776a,claim=3DStandardContentClaim [resourceClaim=3DStandardResourceClaim[id=3D1505264918993-2878, container= =3Ddefault, section=3D830], offset=3D0, length=3D308314548],offset=3D283108= 779,name=3D150526493445632157215839162_8ad17b27-2d2d-49e7-9e79-e280deb8776a= ,size=3D10485503]] for StandardFlowFileRecord[uuid=3D8ad17b27-2d2d-49e7-9e7= 9-e280deb8776a,claim=3DStandardContentClaim [resourceClaim=3DStandardResourceClaim[id=3D1505264918993-2878, container= =3Ddefault, section=3D830], offset=3D0, length=3D308314548],offset=3D283108= 779,name=3D150526493445632157215839162_8ad17b27-2d2d-49e7-9e79-e280deb8776a= ,size=3D10485503] because the session was committed without the stream being closed.

2017-09-13 09:54:42,628 ERROR [Timer-Driven Process Thread-= 7] o.a.nifi.processors.standard.QueryRecord QueryRecord[id=3D57303d34-015e-= 1000-0000-0000032f37b4] QueryRecord[id=3D57303d34-015e-1000-0000-0000032f37= b4] failed to process session due to java.lang.IllegalStateException: StandardFlowFileRecord[uuid=3D8ad17b27-2d2d-49e7-9e79-e280deb8776a,claim= =3DStandardContentClaim [resourceClaim=3DStandardResourceClaim[id=3D1505264= 918993-2878, container=3Ddefault, section=3D830], offset=3D0, length=3D3083= 14548],offset=3D283108779,name=3D150526493445632157215839162_8ad17b27-2d2d-= 49e7-9e79-e280deb8776a,size=3D10485503] already in use for an active callback or an InputStream created by Process= Session.read(FlowFile) has not been closed: {}
java.lang.IllegalStateException: StandardFlowFileRecord[uui= d=3D8ad17b27-2d2d-49e7-9e79-e280deb8776a,claim=3DStandardContentClaim [reso= urceClaim=3DStandardResourceClaim[id=3D1505264918993-2878, container=3Ddefa= ult, section=3D830], offset=3D0, length=3D308314548],offset=3D283108779,nam= e=3D150526493445632157215839162_8ad17b27-2d2d-49e7-9e79-e280deb8776a,size= =3D10485503] already in use for an active callback or an InputStream created by Process= Session.read(FlowFile) has not been closed
at org.ap= ache.nifi.controller.repository.StandardProcessSession.validateRecordState(= StandardProcessSession.java:3018)
at org.ap= ache.nifi.controller.repository.StandardProcessSession.validateRecordState(= StandardProcessSession.java:3013)
at org.ap= ache.nifi.controller.repository.StandardProcessSession.transfer(StandardPro= cessSession.java:1815)
at org.ap= ache.nifi.processors.standard.QueryRecord.onTrigger(QueryRecord.java:355)
at org.ap= ache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)<= /div>
at org.ap= ache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.= java:1120)
at org.ap= ache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunP= rocessorTask.java:147)
at org.ap= ache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunP= rocessorTask.java:47)
at org.ap= ache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrive= nSchedulingAgent.java:132)
at java.u= til.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.u= til.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.u= til.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(S= cheduledThreadPoolExecutor.java:180)
at java.u= til.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Schedule= dThreadPoolExecutor.java:294)
at java.u= til.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.u= til.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.l= ang.Thread.run(Thread.java:748)

--_000_BN3PR15MB08043BF8442F953DA701F897CE6E0BN3PR15MB0804namp_--