2013-04-23 22:11:18 -04:00
|
|
|
/**
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
* or more contributor license agreements. See the NOTICE file
|
|
|
|
* distributed with this work for additional information
|
|
|
|
* regarding copyright ownership. The ASF licenses this file
|
|
|
|
* to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance
|
|
|
|
* with the License. You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2012-10-19 17:06:08 -04:00
|
|
|
Branch-2802 Snapshot (Unreleased)
|
|
|
|
|
|
|
|
HDFS-4076. Support snapshot of single files. (szetszwo)
|
|
|
|
|
|
|
|
HDFS-4082. Add editlog opcodes for snapshot create and delete operations.
|
|
|
|
(suresh via szetszwo)
|
|
|
|
|
2012-10-19 17:15:11 -04:00
|
|
|
HDFS-4086. Add editlog opcodes to allow and disallow snapshots on a
|
|
|
|
directory. (Brandon Li via suresh)
|
|
|
|
|
2012-10-19 18:15:27 -04:00
|
|
|
HDFS-4083. Protocol changes for snapshots. (suresh)
|
2012-10-19 18:21:50 -04:00
|
|
|
|
2012-10-26 18:02:30 -04:00
|
|
|
HDFS-4077. Add support for Snapshottable Directory. (szetszwo via suresh)
|
2012-10-21 15:05:49 -04:00
|
|
|
|
|
|
|
HDFS-4087. Protocol changes for listSnapshots functionality.
|
|
|
|
(Brandon Li via suresh)
|
2012-10-21 17:35:13 -04:00
|
|
|
|
|
|
|
HDFS-4079. Add SnapshotManager which maintains a list for all the
|
|
|
|
snapshottable directories and supports snapshot methods such as setting a
|
|
|
|
directory to snapshottable and creating a snapshot. (szetszwo)
|
2012-10-21 20:11:25 -04:00
|
|
|
|
|
|
|
HDFS-4078. Handle replication in snapshots. (szetszwo)
|
2012-10-23 16:26:08 -04:00
|
|
|
|
|
|
|
HDFS-4084. Provide CLI support to allow and disallow snapshot
|
|
|
|
on a directory. (Brondon Li via suresh)
|
2012-10-24 16:39:26 -04:00
|
|
|
|
|
|
|
HDFS-4091. Add snapshot quota to limit the number of snapshots allowed.
|
|
|
|
(szetszwo)
|
2012-10-25 00:08:36 -04:00
|
|
|
|
|
|
|
HDFS-4097. Provide CLI support for createSnapshot. (Brandon Li via suresh)
|
2012-10-25 15:32:26 -04:00
|
|
|
|
|
|
|
HDFS-4092. Update file deletion logic for snapshot so that the current inode
|
|
|
|
is removed from the circular linked list; and if some blocks at the end of the
|
|
|
|
block list no longer belong to any other inode, collect them and update the
|
|
|
|
block list. (szetszwo)
|
2012-10-26 18:02:30 -04:00
|
|
|
|
|
|
|
HDFS-4111. Support snapshot of subtrees. (szetszwo via suresh)
|
2012-10-28 16:02:54 -04:00
|
|
|
|
|
|
|
HDFS-4119. Complete the allowSnapshot code and add a test for it. (szetszwo)
|
2012-11-01 04:29:41 -04:00
|
|
|
|
|
|
|
HDFS-4133. Add testcases for testing basic snapshot functionalities.
|
|
|
|
(Jing Zhao via suresh)
|
2012-11-01 22:26:58 -04:00
|
|
|
|
|
|
|
HDFS-4116. Add auditlog for some snapshot operations. (Jing Zhao via suresh)
|
2012-11-02 01:01:10 -04:00
|
|
|
|
|
|
|
HDFS-4095. Add some snapshot related metrics. (Jing Zhao via suresh)
|
2012-11-02 21:31:51 -04:00
|
|
|
|
|
|
|
HDFS-4141. Support directory diff - the difference between the current state
|
|
|
|
and a previous snapshot of an INodeDirectory. (szetszwo)
|
2012-11-04 17:00:13 -05:00
|
|
|
|
|
|
|
HDFS-4146. Use getter and setter in INodeFileWithLink to access blocks and
|
|
|
|
initialize root directory as snapshottable. (szetszwo)
|
2012-11-04 19:40:54 -05:00
|
|
|
|
|
|
|
HDFS-4149. Implement the disallowSnapshot(..) in FSNamesystem and add
|
|
|
|
resetSnapshottable(..) to SnapshotManager. (szetszwo)
|
2012-11-04 20:22:54 -05:00
|
|
|
|
|
|
|
HDFS-4147. When there is a snapshot in a subtree, deletion of the subtree
|
|
|
|
should fail. (Jing Zhao via szetszwo)
|
2012-11-07 14:30:36 -05:00
|
|
|
|
|
|
|
HDFS-4150. Update the inode in the block map when a snapshotted file or a
|
|
|
|
snapshot file is deleted. (Jing Zhao via szetszwo)
|
2012-11-07 14:38:29 -05:00
|
|
|
|
|
|
|
HDFS-4159. Rename should fail when the destination directory is snapshottable
|
|
|
|
and has snapshots. (Jing Zhao via szetszwo)
|
2012-11-09 19:27:59 -05:00
|
|
|
|
|
|
|
HDFS-4170. Add snapshot information to INodesInPath. (szetszwo)
|
2012-11-13 14:59:55 -05:00
|
|
|
|
|
|
|
HDFS-4177. Add a snapshot parameter to INodeDirectory.getChildrenList() for
|
|
|
|
selecting particular snapshot children list views. (szetszwo)
|
2012-11-13 18:26:40 -05:00
|
|
|
|
|
|
|
HDFS-4148. Disallow write/modify operations on files and directories in a
|
|
|
|
snapshot. (Brandon Li via suresh)
|
2012-11-15 16:34:54 -05:00
|
|
|
|
|
|
|
HDFS-4188. Add Snapshot.ID_COMPARATOR for comparing IDs and fix a bug in
|
|
|
|
ReadOnlyList.Util.binarySearch(..). (szetszwo)
|
2012-11-15 18:08:25 -05:00
|
|
|
|
|
|
|
HDFS-4187. Add tests for replication handling in snapshots. (Jing Zhao via
|
|
|
|
szetszwo)
|
2012-11-18 15:44:10 -05:00
|
|
|
|
|
|
|
HDFS-4196. Support renaming of snapshots. (Jing Zhao via szetszwo)
|
2012-11-20 09:49:21 -05:00
|
|
|
|
|
|
|
HDFS-4175. Additional snapshot tests for more complicated directory
|
|
|
|
structure and modifications. (Jing Zhao via suresh)
|
2012-12-10 18:54:26 -05:00
|
|
|
|
|
|
|
HDFS-4293. Fix TestSnapshot failure. (Jing Zhao via suresh)
|
2012-12-16 22:40:27 -05:00
|
|
|
|
|
|
|
HDFS-4317. Change INode and its subclasses to support HDFS-4103. (szetszwo)
|
2012-12-20 20:30:49 -05:00
|
|
|
|
|
|
|
HDFS-4103. Support O(1) snapshot creation. (szetszwo)
|
2012-12-28 03:49:33 -05:00
|
|
|
|
|
|
|
HDFS-4330. Support snapshots up to the snapshot limit. (szetszwo)
|
2013-01-04 05:45:57 -05:00
|
|
|
|
|
|
|
HDFS-4357. Fix a bug that if an inode is replaced, further INode operations
|
|
|
|
should apply to the new inode. (Jing Zhao via szetszwo)
|
2013-01-06 20:43:21 -05:00
|
|
|
|
|
|
|
HDFS-4230. Support listing of all the snapshottable directories. (Jing Zhao
|
|
|
|
via szetszwo)
|
2013-01-09 11:44:05 -05:00
|
|
|
|
|
|
|
HDFS-4244. Support snapshot deletion. (Jing Zhao via szetszwo)
|
2013-01-13 06:29:14 -05:00
|
|
|
|
|
|
|
HDFS-4245. Include snapshot related operations in TestOfflineEditsViewer.
|
|
|
|
(Jing Zhao via szetszwo)
|
2013-01-13 21:30:15 -05:00
|
|
|
|
2013-01-14 03:40:13 -05:00
|
|
|
HDFS-4395. In INodeDirectorySnapshottable's constructor, the passed-in dir
|
|
|
|
could be an INodeDirectoryWithSnapshot. (Jing Zhao via szetszwo)
|
2013-01-15 01:20:22 -05:00
|
|
|
|
|
|
|
HDFS-4397. Fix a bug in INodeDirectoryWithSnapshot.Diff.combinePostDiff(..)
|
|
|
|
that it may put the wrong node into the deleted list. (szetszwo)
|
2013-01-16 07:43:51 -05:00
|
|
|
|
|
|
|
HDFS-4407. Change INodeDirectoryWithSnapshot.Diff.combinePostDiff(..) to
|
|
|
|
merge-sort like and keep the postDiff parameter unmodified. (szetszwo)
|
2013-01-17 18:38:30 -05:00
|
|
|
|
|
|
|
HDFS-4098. Add FileWithSnapshot, INodeFileUnderConstructionWithSnapshot and
|
|
|
|
INodeFileUnderConstructionSnapshot for supporting append to snapshotted files.
|
|
|
|
(szetszwo)
|
2013-01-22 21:48:01 -05:00
|
|
|
|
|
|
|
HDFS-4126. Add reading/writing snapshot information to FSImage.
|
|
|
|
(Jing Zhao via suresh)
|
2013-01-24 16:33:34 -05:00
|
|
|
|
|
|
|
HDFS-4436. Change INode.recordModification(..) to return only the current
|
|
|
|
inode and remove the updateCircularList parameter from some methods in
|
|
|
|
INodeDirectoryWithSnapshot.Diff. (szetszwo)
|
2013-01-24 22:09:26 -05:00
|
|
|
|
|
|
|
HDFS-4429. When the latest snapshot exists, INodeFileUnderConstruction should
|
|
|
|
be replaced with INodeFileWithSnapshot but not INodeFile. (Jing Zhao
|
|
|
|
via szetszwo)
|
2013-01-25 19:01:51 -05:00
|
|
|
|
|
|
|
HDFS-4441. Move INodeDirectoryWithSnapshot.Diff and the related classes to a
|
|
|
|
package. (szetszwo)
|
2013-01-28 17:48:58 -05:00
|
|
|
|
|
|
|
HDFS-4432. Support INodeFileUnderConstructionWithSnapshot in FSImage
|
|
|
|
saving/loading. (Jing Zhao via suresh)
|
2013-01-29 16:31:44 -05:00
|
|
|
|
|
|
|
HDFS-4131. Add capability to namenode to get snapshot diff. (Jing Zhao via
|
|
|
|
suresh)
|
2013-01-29 18:25:49 -05:00
|
|
|
|
2013-01-31 16:13:04 -05:00
|
|
|
HDFS-4447. Refactor INodeDirectoryWithSnapshot for supporting general INode
|
|
|
|
diff lists. (szetszwo)
|
|
|
|
|
|
|
|
HDFS-4189. Renames the getMutableXxx methods to getXxx4Write and fix a bug
|
|
|
|
that some getExistingPathINodes calls should be getINodesInPath4Write.
|
|
|
|
(szetszwo)
|
2013-01-31 16:35:19 -05:00
|
|
|
|
|
|
|
HDFS-4361. When listing snapshottable directories, only return those
|
|
|
|
where the user has permission to take snapshots. (Jing Zhao via szetszwo)
|
2013-02-01 20:53:17 -05:00
|
|
|
|
|
|
|
HDFS-4464. Combine collectSubtreeBlocksAndClear with deleteDiffsForSnapshot
|
|
|
|
and rename it to destroySubtreeAndCollectBlocks. (szetszwo)
|
2013-02-02 15:39:01 -05:00
|
|
|
|
|
|
|
HDFS-4414. Add support for getting snapshot diff from DistributedFileSystem.
|
|
|
|
(Jing Zhao via suresh)
|
2013-02-07 21:18:55 -05:00
|
|
|
|
|
|
|
HDFS-4446. Support file snapshots with diff lists. (szetszwo)
|
2013-02-08 18:19:32 -05:00
|
|
|
|
|
|
|
HDFS-4480. Eliminate the file snapshot circular linked list. (szetszwo)
|
2013-02-13 19:43:28 -05:00
|
|
|
|
|
|
|
HDFS-4481. Change fsimage to support snapshot file diffs. (szetszwo)
|
2013-02-14 17:00:36 -05:00
|
|
|
|
|
|
|
HDFS-4500. Refactor snapshot INode methods. (szetszwo)
|
2013-02-14 18:07:49 -05:00
|
|
|
|
|
|
|
HDFS-4487. Fix snapshot diff report for HDFS-4446. (Jing Zhao via szetszwo)
|
2013-02-16 21:58:31 -05:00
|
|
|
|
|
|
|
HDFS-4431. Support snapshot in OfflineImageViewer. (Jing Zhao via szetszwo)
|
2013-02-20 15:02:24 -05:00
|
|
|
|
|
|
|
HDFS-4503. Update computeContentSummary(..), spaceConsumedInTree(..) and
|
|
|
|
diskspaceConsumed(..) in INode for snapshot. (szetszwo)
|
2013-02-20 22:27:36 -05:00
|
|
|
|
|
|
|
HDFS-4499. Fix file/directory/snapshot deletion for file diff. (Jing Zhao
|
|
|
|
via szetszwo)
|
2013-02-22 21:44:05 -05:00
|
|
|
|
|
|
|
HDFS-4524. Update SnapshotManager#snapshottables when loading fsimage.
|
|
|
|
(Jing Zhao via szetszwo)
|
2013-02-25 14:49:05 -05:00
|
|
|
|
|
|
|
HDFS-4520. Support listing snapshots under a snapshottable directory using ls.
|
|
|
|
(Jing Zhao via szetszwo)
|
2013-02-25 18:14:58 -05:00
|
|
|
|
|
|
|
HDFS-4514. Add CLI for supporting snapshot rename, diff report, and
|
|
|
|
snapshottable directory listing. (Jing Zhao via szetszwo)
|
2013-02-26 17:04:35 -05:00
|
|
|
|
|
|
|
HDFS-4523. Fix INodeFile replacement, TestQuota and javac errors from trunk
|
|
|
|
merge. (szetszwo)
|
2013-02-27 22:08:08 -05:00
|
|
|
|
|
|
|
HDFS-4507. Update quota verification for snapshots. (szetszwo)
|
2013-03-04 21:23:34 -05:00
|
|
|
|
|
|
|
HDFS-4545. With snapshots, FSDirectory.unprotectedSetReplication(..) always
|
|
|
|
changes file replication but it may or may not changes block replication.
|
|
|
|
(szetszwo)
|
2013-03-07 17:34:51 -05:00
|
|
|
|
|
|
|
HDFS-4557. Fix FSDirectory#delete when INode#cleanSubtree returns 0.
|
|
|
|
(Jing Zhao via szetszwo)
|
2013-03-09 13:14:30 -05:00
|
|
|
|
|
|
|
HDFS-4579. Annotate snapshot tests. (Arpit Agarwal via suresh)
|
2013-03-10 23:45:52 -04:00
|
|
|
|
|
|
|
HDFS-4574. Move Diff to the util package. (szetszwo)
|
2013-03-11 22:41:25 -04:00
|
|
|
|
|
|
|
HDFS-4563. Update namespace/diskspace usage after deleting snapshots.
|
|
|
|
(Jing Zhao via szetszwo)
|
2013-03-13 02:05:00 -04:00
|
|
|
|
|
|
|
HDFS-4144. Create test for all snapshot-related metrics.
|
|
|
|
(Jing Zhao via suresh)
|
2013-03-18 07:36:59 -04:00
|
|
|
|
|
|
|
HDFS-4556. Add snapshotdiff and LsSnapshottableDir tools to hdfs script.
|
|
|
|
(Arpit Agarwal via szetszwo)
|
2013-03-19 02:27:26 -04:00
|
|
|
|
|
|
|
HDFS-4534. Add INodeReference in order to support rename with snapshots.
|
|
|
|
(szetszwo)
|
2013-03-21 15:30:35 -04:00
|
|
|
|
|
|
|
HDFS-4616. Update the FilesDeleted metric while deleting file/dir in the
|
|
|
|
current tree. (Jing Zhao via szetszwo)
|
2013-03-24 10:53:52 -04:00
|
|
|
|
|
|
|
HDFS-4627. Fix FSImageFormat#Loader NPE and synchronization issues.
|
|
|
|
(Jing Zhao via suresh)
|
2013-03-25 06:21:30 -04:00
|
|
|
|
|
|
|
HDFS-4612. Not to use INode.getParent() when generating snapshot diff report.
|
|
|
|
(Jing Zhao via szetszwo)
|
2013-03-28 12:18:04 -04:00
|
|
|
|
|
|
|
HDFS-4636. Update quota usage when deleting files/dirs that were created
|
|
|
|
after taking the latest snapshot. (Jing Zhao via szetszwo)
|
2013-03-30 19:57:27 -04:00
|
|
|
|
|
|
|
HDFS-4648. For snapshot deletion, when merging the diff from to-delete
|
|
|
|
snapshot to the prior snapshot, make sure files/directories created after
|
|
|
|
the prior snapshot get deleted. (Jing Zhao via szetszwo)
|
2013-03-31 21:53:21 -04:00
|
|
|
|
|
|
|
HDFS-4637. INodeDirectory#replaceSelf4Quota may incorrectly convert a newly
|
|
|
|
created directory to an INodeDirectoryWithSnapshot. (Jing Zhao via szetszwo)
|
2013-04-01 19:24:42 -04:00
|
|
|
|
|
|
|
HDFS-4611. Update FSImage for INodeReference. (szetszwo)
|
2013-04-04 19:52:38 -04:00
|
|
|
|
|
|
|
HDFS-4647. Rename should call setLocalName after an inode is removed from
|
|
|
|
snapshots. (Arpit Agarwal via szetszwo)
|
2013-04-10 18:24:30 -04:00
|
|
|
|
|
|
|
HDFS-4684. Use INode id for image serialization when writing INodeReference.
|
|
|
|
(szetszwo)
|
2013-04-12 22:48:34 -04:00
|
|
|
|
|
|
|
HDFS-4675. Fix rename across snapshottable directories. (Jing Zhao via
|
|
|
|
szetszwo)
|
2013-04-13 17:41:33 -04:00
|
|
|
|
|
|
|
HDFS-4692. Use timestamp as default snapshot names. (szetszwo)
|
2013-04-15 17:42:06 -04:00
|
|
|
|
|
|
|
HDFS-4666. Define ".snapshot" as a reserved inode name so that users cannot
|
|
|
|
create a file/directory with ".snapshot" as the name. If ".snapshot" is used
|
|
|
|
in a previous version of HDFS, it must be renamed before upgrade; otherwise,
|
|
|
|
upgrade will fail. (szetszwo)
|
2013-04-16 18:03:58 -04:00
|
|
|
|
|
|
|
HDFS-4700. Fix the undo section of rename with snapshots. (Jing Zhao via
|
|
|
|
szetszwo)
|
2013-04-16 19:16:02 -04:00
|
|
|
|
|
|
|
HDFS-4529. Disallow concat when one of the src files is in some snapshot.
|
|
|
|
(szetszwo)
|
2013-04-16 22:41:38 -04:00
|
|
|
|
|
|
|
HDFS-4550. Refactor INodeDirectory.INodesInPath to a standalone class.
|
|
|
|
(szetszwo)
|
2013-04-17 21:28:00 -04:00
|
|
|
|
|
|
|
HDFS-4707. Add snapshot methods to FilterFileSystem and fix findbugs warnings.
|
|
|
|
(szetszwo)
|
2013-04-17 21:39:12 -04:00
|
|
|
|
|
|
|
HDFS-4706. Do not replace root inode for disallowSnapshot. (szetszwo)
|
2013-04-18 22:07:52 -04:00
|
|
|
|
|
|
|
HDFS-4717. Change the path parameter type of the snapshot methods in
|
|
|
|
HdfsAdmin from String to Path. (szetszwo)
|
2013-04-22 15:13:18 -04:00
|
|
|
|
|
|
|
HDFS-4708. Add snapshot user documentation. (szetszwo)
|
2013-04-22 18:13:58 -04:00
|
|
|
|
|
|
|
HDFS-4726. Fix test failures after merging the INodeId-INode mapping
|
|
|
|
from trunk. (Jing Zhao via szetszwo)
|
2013-04-22 20:00:47 -04:00
|
|
|
|
|
|
|
HDFS-4727. Update inodeMap after deleting files/directories/snapshots.
|
|
|
|
(Jing Zhao via szetszwo)
|
2013-04-22 20:11:51 -04:00
|
|
|
|
|
|
|
HDFS-4719. Remove AbstractINodeDiff.Factory and move its methods to
|
|
|
|
AbstractINodeDiffList. (Arpit Agarwal via szetszwo)
|
2013-04-23 20:28:07 -04:00
|
|
|
|
|
|
|
HDFS-4735. DisallowSnapshot throws IllegalStateException for nested
|
|
|
|
snapshottable directories. (Jing Zhao via szetszwo)
|
2013-04-23 22:11:18 -04:00
|
|
|
|
|
|
|
HDFS-4738. Changes AbstractINodeDiff to implement Comparable<Integer>, and
|
|
|
|
fix javadoc and other warnings. (szetszwo)
|
2013-04-24 16:31:06 -04:00
|
|
|
|
|
|
|
HDFS-4686. Update quota computation for rename and INodeReference.
|
|
|
|
(Jing Zhao via szetszwo)
|
2013-04-24 16:47:13 -04:00
|
|
|
|
|
|
|
HDFS-4729. Fix OfflineImageViewer and permission checking for snapshot
|
|
|
|
operations. (Jing Zhao via szetszwo)
|
2013-04-25 14:51:00 -04:00
|
|
|
|
|
|
|
HDFS-4749. Use INodeId to identify the corresponding directory node in
|
|
|
|
FSImage saving/loading. (Jing Zhao via szetszwo)
|
2013-04-25 14:53:14 -04:00
|
|
|
|
|
|
|
HDFS-4742. Fix appending to a renamed file with snapshot. (Jing Zhao via
|
|
|
|
szetszwo)
|
2013-04-25 21:05:47 -04:00
|
|
|
|
|
|
|
HDFS-4755. Fix AccessControlException message and moves "implements
|
|
|
|
LinkedElement" from INode to INodeWithAdditionalFields. (szetszwo)
|