From hdfs-issues-return-228258-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Fri Aug 3 23:33:05 2018 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 9161218067B for ; Fri, 3 Aug 2018 23:33:04 +0200 (CEST) Received: (qmail 34488 invoked by uid 500); 3 Aug 2018 21:33:03 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 34477 invoked by uid 99); 3 Aug 2018 21:33: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, 03 Aug 2018 21:33: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 2C922C049F for ; Fri, 3 Aug 2018 21:33:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, 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 LYPgqeFc0zao for ; Fri, 3 Aug 2018 21:33: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 283EE5F4A2 for ; Fri, 3 Aug 2018 21:33:02 +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 11C43E2639 for ; Fri, 3 Aug 2018 21:33: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 6BE6D23FA6 for ; Fri, 3 Aug 2018 21:33:00 +0000 (UTC) Date: Fri, 3 Aug 2018 21:33:00 +0000 (UTC) From: "Tsz Wo Nicholas Sze (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDDS-230) ContainerStateMachine should provide readStateMachineData api to read data if Containers with required during replication 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/HDDS-230?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D165688= 14#comment-16568814 ]=20 Tsz Wo Nicholas Sze commented on HDDS-230: ------------------------------------------ >=C2=A0 I feel that we should reconstruct LogEntryProto as this is already = done as part of startTransaction in ContainerStateMachine. ... Sure. We may do the refactoring later. > ContainerStateMachine should provide readStateMachineData api to read dat= a if Containers with required during replication > -------------------------------------------------------------------------= ------------------------------------------------ > > Key: HDDS-230 > URL: https://issues.apache.org/jira/browse/HDDS-230 > Project: Hadoop Distributed Data Store > Issue Type: Bug > Components: Ozone Datanode > Affects Versions: 0.2.1 > Reporter: Mukul Kumar Singh > Assignee: Mukul Kumar Singh > Priority: Critical > Fix For: 0.2.1 > > Attachments: HDDS-230.001.patch, HDDS-230.002.patch, HDDS-230.003= .patch, HDDS-230.004.patch > > > Ozone datanode exits during data write with the following exception. > {code} > 2018-07-05 14:10:01,605 INFO org.apache.ratis.server.storage.RaftLogWorke= r: Rolling segment:40356aa1-741f-499c-aad1-b500f2620a3d_9858-RaftLogWorker = index to:4565 > 2018-07-05 14:10:01,607 ERROR org.apache.ratis.server.impl.StateMachineUp= dater: Terminating with exit status 2: StateMachineUpdater-40356aa1-741f-49= 9c-aad1-b500f2620a3d_9858: the StateMachineUpdater hits Throwable > java.lang.NullPointerException > at org.apache.hadoop.ozone.container.common.transport.server.rati= s.ContainerStateMachine.applyTransaction(ContainerStateMachine.java:272) > at org.apache.ratis.server.impl.RaftServerImpl.applyLogToStateMac= hine(RaftServerImpl.java:1058) > at org.apache.ratis.server.impl.StateMachineUpdater.run(StateMach= ineUpdater.java:154) > at java.lang.Thread.run(Thread.java:745) > {code} > This might be as a result of a ratis transaction which was not written th= rough the "writeStateMachineData" phase, however it was added to the raft l= og. This implied that stateMachineUpdater now applies a transaction without= the corresponding entry being added to the stateMachine. > I am raising this jira to track the issue and will also raise a Ratis jir= a if required. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org