From issues-return-95769-archive-asf-public=cust-asf.ponee.io@nifi.apache.org Wed Apr 15 10:40:02 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 698E318065C for ; Wed, 15 Apr 2020 12:40:02 +0200 (CEST) Received: (qmail 19035 invoked by uid 500); 15 Apr 2020 10:40:01 -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 19026 invoked by uid 99); 15 Apr 2020 10:40:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Apr 2020 10:40:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id F14DCE29C3 for ; Wed, 15 Apr 2020 10:40:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 70DF87800F2 for ; Wed, 15 Apr 2020 10:40:00 +0000 (UTC) Date: Wed, 15 Apr 2020 10:40:00 +0000 (UTC) From: "ASF subversion and git services (Jira)" To: issues@nifi.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (NIFI-7347) NPE in MergeRecord MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/NIFI-7347?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D17083= 992#comment-17083992 ]=20 ASF subversion and git services commented on NIFI-7347: ------------------------------------------------------- Commit a61a4c2b5878f53777df8df1dd91a78629ba23bb in nifi's branch refs/heads= /master from Mark Payne [ https://gitbox.apache.org/repos/asf?p=3Dnifi.git;h=3Da61a4c2 ] NIFI-7347: Fixed NullPointerException that can happen if a bin is merged du= e to timeout and has no records Signed-off-by: Pierre Villard This closes #4210. > NPE in MergeRecord > ------------------ > > Key: NIFI-7347 > URL: https://issues.apache.org/jira/browse/NIFI-7347 > Project: Apache NiFi > Issue Type: Bug > Affects Versions: 1.9.0 > Reporter: Brandon Rhys DeVries > Assignee: Mark Payne > Priority: Major > Fix For: 1.12.0 > > Attachments: _MergeRecord_NPE.xml > > Time Spent: 10m > Remaining Estimate: 0h > > Got an NPE in MergeRecord.=C2=A0 Even after a restart, the processor won'= t resume processing data.=C2=A0 Even copies of the processor won't process = data.=C2=A0 > =C2=A0 > Configuration: > {code:java} > Record Reader: JsonTreeReader > Record Writer: AvroRecordSetWriter > Merge Strategy: Bin-Packing Algorithm > Correlation Attribute Name: No value set > Attribute Strategy: Keep Only Common Attributes > Minimum Number of Records: 10000 > Maximum Number of Records: 20000 > Minimum Bin Size: 0 B > Maximum Bin Size: No value set > Max Bin Age: 10 sec > Maximum Number of Bins: 10 {code} > Stack Trace: > {code} > MergeRecord[id=3Def343265-5156-1564-92fa-8f74649fb548] Failed to merge Fl= owFiles to create new bin due to java.lang.NullPointerException: java.lang.= NullPointerException > java.lang.NullPointerException: null > =09at org.apache.nifi.processors.standard.merge.RecordBin.complete(Record= Bin.java:340) > =09at org.apache.nifi.processors.standard.merge.RecordBinManager.handleCo= mpletedBins(RecordBinManager.java:272) > =09at org.apache.nifi.processors.standard.merge.RecordBinManager.complete= ExpiredBins(RecordBinManager.java:238) > =09at org.apache.nifi.processors.standard.MergeRecord.onTrigger(MergeReco= rd.java:350) > =09at org.apache.nifi.controller.StandardProcessorNode.onTrigger(Standard= ProcessorNode.java:1161) > =09at org.apache.nifi.controller.tasks.ConnectableTask.invoke(Connectable= Task.java:213) > =09at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.= run(TimerDrivenSchedulingAgent.java:117) > =09at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110) > =09at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:= 511) > =09at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) > =09at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTas= k.access$301(ScheduledThreadPoolExecutor.java:180) > =09at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTas= k.run(ScheduledThreadPoolExecutor.java:294) > =09at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecuto= r.java:1149) > =09at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecut= or.java:624) > =09at java.lang.Thread.run(Thread.java:748) > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)