[ https://issues.apache.org/jira/browse/AMBARI-24675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Éberhardt Péter updated AMBARI-24675: ------------------------------------- Fix Version/s: 2.7.6 > Hdfs Resource File Check using checksums > ---------------------------------------- > > Key: AMBARI-24675 > URL: https://issues.apache.org/jira/browse/AMBARI-24675 > Project: Ambari > Issue Type: Bug > Affects Versions: 2.7.0 > Reporter: Prabhu Joseph > Assignee: Dmytro Grinenko > Priority: Major > Fix For: 2.7.6 > > > hdfs_resource currently checks only file size while copying a resource into > Hdfs, it has to be reimplemented using checksum. > This impacts when changing a config value like 1 -> 2 where the filesize > remains same. > {code} > hdfs_resource.py > # TODO: re-implement this using checksums > if local_file_size == length: > Logger.info(format("DFS file {target} is identical to {source}, > skipping the copying")) > return > elif not self.main_resource.resource.replace_existing_files: > Logger.info(format("Not replacing existing DFS file {target} which > is different from {source}, due to replace_existing_files=False")) > return > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)