From common-issues-return-167991-apmail-hadoop-common-issues-archive=hadoop.apache.org@hadoop.apache.org Tue Mar 19 05:35:03 2019 Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 C3AE218F82 for ; Tue, 19 Mar 2019 05:35:03 +0000 (UTC) Received: (qmail 39969 invoked by uid 500); 19 Mar 2019 05:35:03 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 39919 invoked by uid 500); 19 Mar 2019 05:35:03 -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 39908 invoked by uid 99); 19 Mar 2019 05:35:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Mar 2019 05:35:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id AE00E180D8E for ; Tue, 19 Mar 2019 05:35:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-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-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id n284TQrFT8T7 for ; Tue, 19 Mar 2019 05:35:01 +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 23A555F23C for ; Tue, 19 Mar 2019 05:35: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 68416E2628 for ; Tue, 19 Mar 2019 05:35:00 +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 2957B24597 for ; Tue, 19 Mar 2019 05:35:00 +0000 (UTC) Date: Tue, 19 Mar 2019 05:35:00 +0000 (UTC) From: "wujinhu (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-16191) AliyunOSS: improvements for copyFile/copyDirectory and logging 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-16191?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 795705#comment-16795705 ]=20 wujinhu commented on HADOOP-16191: ---------------------------------- Thank you [~cheersyang]=C2=A0:) > AliyunOSS: improvements for copyFile/copyDirectory and logging > -------------------------------------------------------------- > > Key: HADOOP-16191 > URL: https://issues.apache.org/jira/browse/HADOOP-16191 > Project: Hadoop Common > Issue Type: Sub-task > Components: fs/oss > Affects Versions: 2.10.0, 2.9.2, 3.0.3, 3.3.0, 3.1.2 > Reporter: wujinhu > Assignee: wujinhu > Priority: Major > Fix For: 2.10.0, 3.0.4, 3.3.0, 3.2.1, 2.9.3, 3.1.3 > > Attachments: HADOOP-16191.001.patch > > > Returned status of copyFile and copyDirectory are ignored. It's OK most o= f the time. > {code:java} > if (srcStatus.isDirectory()) { > copyDirectory(srcPath, dstPath); > } else { > copyFile(srcPath, srcStatus.getLen(), dstPath); > } > =09 > return srcPath.equals(dstPath) || delete(srcPath, true);{code} > However, oss fs can not catch errors when rename from one dir to another = if the src=C2=A0dir is being deleted.=C2=A0 > =C2=A0 > Another improvement is logging optimization. Changing log level to debug. -- 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