[
https://issues.apache.org/jira/browse/HDFS-5568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vinay updated HDFS-5568:
------------------------
Attachment: HDFS-5568.patch
Here is the patch to include snapshot paths also during fsck check.
This is on demand. "-includeSnapshots" should be specified to include snapshot
paths. If need to provide as default, then can remove this option.
Fsck includes only those snapshottable directories which are owned by a user.
For super user includes all.
Please review and let me know improvements/suggestions required.
Thanks
> Support inclusion of snapshot paths in Namenode fsck
> ----------------------------------------------------
>
> Key: HDFS-5568
> URL: https://issues.apache.org/jira/browse/HDFS-5568
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: snapshots
> Reporter: Vinay
> Assignee: Vinay
> Attachments: HDFS-5568.patch
>
>
> Support Fsck to check the snapshot paths also for inconsistency.
> Currently Fsck supports snapshot paths if path given explicitly refers to a
> snapshot path.
> We have seen safemode problems in our clusters which were due to blocks
> missing which were only present inside snapshots. But "hdfs fsck /" shows
> HEALTHY.
> So supporting snapshot paths also during fsck (may be by default or on
> demand) would be helpful in these cases instead of specifying each and every
> snapshottable directory.
--
This message was sent by Atlassian JIRA
(v6.1#6144)