Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 37A38200D4F for ; Wed, 22 Nov 2017 01:29:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 35E80160C0E; Wed, 22 Nov 2017 00:29:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7C5D9160BFC for ; Wed, 22 Nov 2017 01:29:03 +0100 (CET) Received: (qmail 59668 invoked by uid 500); 22 Nov 2017 00:29:02 -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 59657 invoked by uid 99); 22 Nov 2017 00:29:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Nov 2017 00:29:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id CEABC1A0573 for ; Wed, 22 Nov 2017 00:29:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 0SZ7PD6iRKcp for ; Wed, 22 Nov 2017 00:29:01 +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 C9ABF5F298 for ; Wed, 22 Nov 2017 00:29:00 +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 503FFE0110 for ; Wed, 22 Nov 2017 00:29: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 0CC69255A3 for ; Wed, 22 Nov 2017 00:29:00 +0000 (UTC) Date: Wed, 22 Nov 2017 00:29:00 +0000 (UTC) From: "Lei (Eddy) Xu (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Moved] (HDFS-12847) Regenerate editsStored and editsStored.xml in HDFS tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 22 Nov 2017 00:29:04 -0000 [ https://issues.apache.org/jira/browse/HDFS-12847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lei (Eddy) Xu moved HADOOP-15061 to HDFS-12847: ----------------------------------------------- Affects Version/s: (was: 3.0.0-beta1) 3.0.0-beta1 Target Version/s: 3.0.0 (was: 3.0.0) Component/s: (was: test) test Key: HDFS-12847 (was: HADOOP-15061) Project: Hadoop HDFS (was: Hadoop Common) > Regenerate editsStored and editsStored.xml in HDFS tests > -------------------------------------------------------- > > Key: HDFS-12847 > URL: https://issues.apache.org/jira/browse/HDFS-12847 > Project: Hadoop HDFS > Issue Type: Task > Components: test > Affects Versions: 3.0.0-beta1 > Reporter: Lei (Eddy) Xu > Assignee: Lei (Eddy) Xu > > From HDFS-12840, we found that the `editsStored` in HDFS tests missing a few operations, i.e., the following operations from {{DFSTestUtils#runOperations()}}. > {code} > // OP_UPDATE_BLOCKS 25 > final String updateBlockFile = "/update_blocks"; > FSDataOutputStream fout = filesystem.create(new Path(updateBlockFile), true, 4096, (short)1, 4096L); > fout.write(1); > fout.hflush(); > long fileId = ((DFSOutputStream)fout.getWrappedStream()).getFileId(); > DFSClient dfsclient = DFSClientAdapter.getDFSClient(filesystem); > LocatedBlocks blocks = dfsclient.getNamenode().getBlockLocations(updateBlockFile, 0, Integer.MAX_VALUE); > dfsclient.getNamenode().abandonBlock(blocks.get(0).getBlock(), fileId, updateBlockFile, dfsclient.clientName); > fout.close(); > {code} > We should re-generate to edits and related XML to sync with the code. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org