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 07ED3200CFE for ; Fri, 8 Sep 2017 18:57:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 06E261609C0; Fri, 8 Sep 2017 16:57:06 +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 4E3C01609BE for ; Fri, 8 Sep 2017 18:57:05 +0200 (CEST) Received: (qmail 42358 invoked by uid 500); 8 Sep 2017 16:57: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 42349 invoked by uid 99); 8 Sep 2017 16:57:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Sep 2017 16:57:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 11C6FD9521 for ; Fri, 8 Sep 2017 16:57:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-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-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 7q-5PI2ip7XL for ; Fri, 8 Sep 2017 16:57:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E54935FDB8 for ; Fri, 8 Sep 2017 16:57: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 4919AE0ED8 for ; Fri, 8 Sep 2017 16:57:01 +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 A12962415D for ; Fri, 8 Sep 2017 16:57:00 +0000 (UTC) Date: Fri, 8 Sep 2017 16:57:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@nifi.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (NIFI-4361) Server fails to start during recovery upon full disk MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 08 Sep 2017 16:57:06 -0000 [ https://issues.apache.org/jira/browse/NIFI-4361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16158922#comment-16158922 ] ASF GitHub Bot commented on NIFI-4361: -------------------------------------- Github user gresockj commented on a diff in the pull request: https://github.com/apache/nifi/pull/2133#discussion_r137839524 --- Diff: nifi-commons/nifi-write-ahead-log/src/main/java/org/wali/MinimalLockingWriteAheadLog.java --- @@ -474,8 +474,15 @@ private void recoverFromEdits(final Map modifiableRecordMap, final Lo subsequentTransactionId = nextPartition.getNextRecoverableTransactionId(); } catch (final IOException e) { logger.error("{} unexpectedly found End-of-File when reading from {} for Transaction ID {}; " - + "assuming crash and ignoring this transaction", + + "attempting to get the next recoverable transaction ID", --- End diff -- I had a thought that this would be necessary, but I'm not sure what the ending condition would be. How would you determine that we've run out of recovery files? > Server fails to start during recovery upon full disk > ---------------------------------------------------- > > Key: NIFI-4361 > URL: https://issues.apache.org/jira/browse/NIFI-4361 > Project: Apache NiFi > Issue Type: Bug > Affects Versions: 1.1.0, 1.2.0, 1.3.0 > Reporter: Joseph Gresock > Assignee: Joseph Gresock > Fix For: 1.4.0 > > > Our disk filled up -- we then freed up some space and restarted, but the server failed to start up due to: > ERROR [main] o.a.nifi.controller.StandardFlowService Failed to load flow from cluster due to: org.apache.nifi.cluster.ConnectionException: Failed to connect node to cluster due to: java.lang.IllegalStateException: Signaled end to recovery, but there are more recovery files for Partition in directory /data/nifi/flowfile_repository/partition-8 > at org.wali.MinimalLockingWriteAheadLog$Partition.endRecovery(MinimalLockingWriteAheadLog.java:1047) ~[nifi-write-ahead-log-1.1.0.jar:1.1.0] > at org.wali.MinimalLockingWriteAheadLog.recoverFromEdits(MinimalLockingWriteAheadLog.java:487) ~[nifi-write-ahead-log-1.1.0.jar:1.1.0] > at org.wali.MinimalLockingWriteAheadLog.recoverRecords(MinimalLockingWriteAheadLog.java:301) ~[nifi-write-ahead-log-1.1.0.jar:1.1.0] -- This message was sent by Atlassian JIRA (v6.4.14#64029)