You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Stephen O'Donnell (Jira)" <ji...@apache.org> on 2021/07/08 09:35:00 UTC
[jira] [Commented] (HDFS-16121) Iterative snapshot diff report can
generate duplicate records for creates, deletes and Renames
[ https://issues.apache.org/jira/browse/HDFS-16121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17377262#comment-17377262 ]
Stephen O'Donnell commented on HDFS-16121:
------------------------------------------
Does it look like this change was introduced by HDFS-13252? If so, then I can link that issue to this one for tracking.
> Iterative snapshot diff report can generate duplicate records for creates, deletes and Renames
> ----------------------------------------------------------------------------------------------
>
> Key: HDFS-16121
> URL: https://issues.apache.org/jira/browse/HDFS-16121
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: snapshots
> Reporter: Srinivasu Majeti
> Assignee: Shashikant Banerjee
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Currently, iterative snapshot diff report first traverses the created list for a directory diff and then the deleted list. If the deleted list size is lesser than the created list size, the offset calculation in the respective list seems wrong. So the next iteration of diff report generation call, it will start iterating the already processed in the created list leading to duplicate entries in the list.
> Fix is to correct the offset calculation during the traversal of the deleted list.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org