From hdfs-issues-return-223463-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Fri Jun 8 20:10: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 64EAA180608 for ; Fri, 8 Jun 2018 20:10:05 +0200 (CEST) Received: (qmail 93615 invoked by uid 500); 8 Jun 2018 18:10:04 -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 93604 invoked by uid 99); 8 Jun 2018 18:10:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jun 2018 18:10:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id D85F0C0101 for ; Fri, 8 Jun 2018 18:10:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 72LzcV_LYDvo for ; Fri, 8 Jun 2018 18:10:03 +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 9A74F5F4A9 for ; Fri, 8 Jun 2018 18:10: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 8AA66E0EFA for ; Fri, 8 Jun 2018 18:10: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 5AF6B2109F for ; Fri, 8 Jun 2018 18:10:00 +0000 (UTC) Date: Fri, 8 Jun 2018 18:10:00 +0000 (UTC) From: "Steve Loughran (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-13660) DistCp job fails when new data is appended in the file while the distCp copy job is running 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/HDFS-13660?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1650= 6347#comment-16506347 ]=20 Steve Loughran commented on HDFS-13660: --------------------------------------- interesting. But at least it failed...a bigger risk would be if the file wa= s changed to a new file of the same size...if the read crossed a block boun= dary, you could end up with a mix of the old and new data. You'd be hard pr= essed to safely identify the problem, other than by comparing the source ch= ecksum before the upload began with the source checksum after it had finish= ed # I think the first step here would be to document what you must not do whi= le an upload is in progress: append/replace files # longer term: if, after an upload, identify when the source has changed, w= arn and maybe repeat the upload. That'd be with a checksum on HDFS; modifie= d timestamp elsewhere > DistCp job fails when new data is appended in the file while the distCp c= opy job is running > -------------------------------------------------------------------------= ------------------ > > Key: HDFS-13660 > URL: https://issues.apache.org/jira/browse/HDFS-13660 > Project: Hadoop HDFS > Issue Type: Bug > Components: distcp > Reporter: Mukund Thakur > Assignee: Mukund Thakur > Priority: Critical > Attachments: distcp_failure_when_file_append.log > > > Steps to reproduce:=C2=A0 > Suppose distcp MR job is copying the file /tmp/web_returns_merged/data-m-= 002 and=C2=A0 > we append some more data to this file using command=C2=A0 > hadoop fs -appendToFile xaa=C2=A0 /tmp/web_returns_merged/data-m-002 > the job fails with exception=C2=A0 > Mismatch in length of source:hdfs://mycluster0/tmp/web_returns_merged/da= ta-m-002 and target. > Attached the logs. -- 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