Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1160D17DAF for ; Wed, 25 Feb 2015 15:27:06 +0000 (UTC) Received: (qmail 73031 invoked by uid 500); 25 Feb 2015 15:27:05 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 72936 invoked by uid 500); 25 Feb 2015 15:27:05 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 72747 invoked by uid 99); 25 Feb 2015 15:27:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Feb 2015 15:27:05 +0000 Date: Wed, 25 Feb 2015 15:27:05 +0000 (UTC) From: "Tsz Wo Nicholas Sze (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HDFS-7843) A truncated file is corrupted after rollback from a rolling upgrade MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Tsz Wo Nicholas Sze created HDFS-7843: ----------------------------------------- Summary: A truncated file is corrupted after rollback from a rolling upgrade Key: HDFS-7843 URL: https://issues.apache.org/jira/browse/HDFS-7843 Project: Hadoop HDFS Issue Type: Sub-task Reporter: Tsz Wo Nicholas Sze Assignee: Tsz Wo Nicholas Sze Priority: Blocker Here is a rolling upgrade truncate test from [~brandonli]. The basic test step is: (3 nodes cluster with HA) 1. upload a file to hdfs 2. start rollingupgrade. finish rollingupgrade for namenode and one datanode. 3. truncate the file in hdfs to 1byte 4. do rollback 5. download file from hdfs, check file size to be original size I see the file size in hdfs is correct but can't read it because the block is corrupted. -- This message was sent by Atlassian JIRA (v6.3.4#6332)