[jira] [Updated] (HDFS-12847) Regenerate editsStored and editsStored.xml in HDFS tests

2017-11-22 Thread Lei (Eddy) Xu (JIRA)

 [ 
https://issues.apache.org/jira/browse/HDFS-12847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lei (Eddy) Xu updated HDFS-12847:
-
   Resolution: Fixed
Fix Version/s: 3.0.0
   Status: Resolved  (was: Patch Available)

Thanks [~xiaochen]. Committed to trunk, branch-3.0 and 3.0.0.

> 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
> Fix For: 3.0.0
>
> Attachments: HDFS-12847.00.patch, editsStored
>
>
> 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-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Updated] (HDFS-12847) Regenerate editsStored and editsStored.xml in HDFS tests

2017-11-21 Thread Lei (Eddy) Xu (JIRA)

 [ 
https://issues.apache.org/jira/browse/HDFS-12847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lei (Eddy) Xu updated HDFS-12847:
-
Attachment: HDFS-12847.00.patch
editsStored

Re-generate {{editsStored}} from {{TestOfflineEditViewer#testGenerated()}}, and 
generates XML from OEV.

> 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
> Attachments: HDFS-12847.00.patch, editsStored
>
>
> 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-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Updated] (HDFS-12847) Regenerate editsStored and editsStored.xml in HDFS tests

2017-11-21 Thread Lei (Eddy) Xu (JIRA)

 [ 
https://issues.apache.org/jira/browse/HDFS-12847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lei (Eddy) Xu updated HDFS-12847:
-
Status: Patch Available  (was: Open)

Please take a look [~xiaochen].

> 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
> Attachments: HDFS-12847.00.patch, editsStored
>
>
> 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-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org