Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D72EC183F7 for ; Wed, 7 Oct 2015 17:00:31 +0000 (UTC) Received: (qmail 61233 invoked by uid 500); 7 Oct 2015 17:00:31 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 61135 invoked by uid 500); 7 Oct 2015 17:00:31 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 61119 invoked by uid 99); 7 Oct 2015 17:00:31 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Oct 2015 17:00:31 +0000 Date: Wed, 7 Oct 2015 17:00:31 +0000 (UTC) From: "Kihwal Lee (JIRA)" To: hdfs-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HDFS-9208) Disabling atime may fail clients like distCp MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Kihwal Lee created HDFS-9208: -------------------------------- Summary: Disabling atime may fail clients like distCp Key: HDFS-9208 URL: https://issues.apache.org/jira/browse/HDFS-9208 Project: Hadoop HDFS Issue Type: Bug Reporter: Kihwal Lee When atime is disabled, {{setTimes()}} throws an exception if the passed-in atime is not -1. But since atime is 0, distCp fails when it tries to set the mtime and atime. There are several options: 1) make distCp check for 0 atime and call {{setTimes()}} with -1. I am not very enthusiastic about it. 2) make NN also accept 0 atime in addition to -1, when the atime support is disabled. 3) support setting mtime & atime regardless of the atime support. The main reason why atime is disabled is to avoid edit logging/syncing during {{getBlockLocations()}} read calls. Explicit setting can be allowed. -- This message was sent by Atlassian JIRA (v6.3.4#6332)