From common-issues-return-163989-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Mon Jan 21 13:22:05 2019 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 43A74180648 for ; Mon, 21 Jan 2019 13:22:05 +0100 (CET) Received: (qmail 44825 invoked by uid 500); 21 Jan 2019 12:22:04 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 44813 invoked by uid 99); 21 Jan 2019 12:22:04 -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; Mon, 21 Jan 2019 12:22:04 +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 CD4F5C6762 for ; Mon, 21 Jan 2019 12:22:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.001 X-Spam-Level: X-Spam-Status: No, score=-109.001 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, KAM_NUMSUBJECT=0.5, 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-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id VJliWocqJH-e for ; Mon, 21 Jan 2019 12:22:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id D54D360D91 for ; Mon, 21 Jan 2019 12:22: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 0ECFAE0DAA for ; Mon, 21 Jan 2019 12:22: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 A48122567E for ; Mon, 21 Jan 2019 12:22:00 +0000 (UTC) Date: Mon, 21 Jan 2019 12:22:00 +0000 (UTC) From: "Steve Loughran (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-16049) DistCp result has data and checksum mismatch when blocks per chunk > 0 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/HADOOP-16049?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 747906#comment-16747906 ]=20 Steve Loughran commented on HADOOP-16049: ----------------------------------------- checkstyle {code} ./hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/mapred/R= etriableFileCopyCommand.java:300: private static int readBytes(ThrottledIn= putStream inStream, byte buf[]):71: Array brackets at illegal position. {code} must be: {{byte[] buf}}} ASF license is from a crashed jvm {code} Lines that start with ????? in the ASF License report indicate files that = do not have an Apache license header: !????? /testptch/hadoop/hadoop-tools/hadoop-distcp/hs_err_pid2744.log {code} Don't see anything in the tests resembling failures., though there was a ti= meout.=20 There is a warning in the logs about azure storage versions,=20 {code} [WARNING] Some problems were encountered while building the effective model= for org.apache.hadoop:hadoop-distcp:jar:2.10.0-SNAPSHOT [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId= :type:classifier)' must be unique: com.microsoft.azure:azure-storage:jar ->= version 7.0.0 vs 5.4.0 @ org.apache.hadoop:hadoop-project:2.10.0-SNAPSHOT,= /testptch/hadoop/hadoop-project/pom.xml, line 1151, column 19 {code} How about you fix the checkstyle and resubmit it -we can see if that timeou= t was a transient error or not > DistCp result has data and checksum mismatch when blocks per chunk > 0 > ---------------------------------------------------------------------- > > Key: HADOOP-16049 > URL: https://issues.apache.org/jira/browse/HADOOP-16049 > Project: Hadoop Common > Issue Type: Bug > Components: tools/distcp > Affects Versions: 2.9.2 > Reporter: Kai Xie > Assignee: Kai Xie > Priority: Major > Attachments: HADOOP-16049-branch-2-003.patch, HADOOP-16049-branch= -2-003.patch, HADOOP-16049-branch-2-004.patch > > > In 2.9.2=C2=A0RetriableFileCopyCommand.copyBytes, > {code:java} > int bytesRead =3D readBytes(inStream, buf, sourceOffset); > while (bytesRead >=3D 0) { > ... > if (action =3D=3D FileAction.APPEND) { > sourceOffset +=3D bytesRead; > } > ... // write to dst > bytesRead =3D readBytes(inStream, buf, sourceOffset); > }{code} > it does a positioned read but the position (`sourceOffset` here) is never= updated when blocks per chunk is set to > 0 (which always disables append = action). So for chunk with offset !=3D 0, it will keep copying=C2=A0the fir= st few bytes again and again, causing result to have data & checksum mismat= ch. > To re-produce this issue, in branch-2, update BLOCK_SIZE to 10240 (> defa= ult copy buffer size) in class=C2=A0TestDistCpSystem and run it. > HADOOP-15292=C2=A0has resolved the issue reported in this ticket in trunk= /branch-3.1/branch-3.2=C2=A0by not using the positioned read, but has not b= een backported to branch-2 yet > =C2=A0 > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org