marcelmay / hadoop-hdfs-fsimage-exporter

Exports Hadoop HDFS content statistics to Prometheus
Apache License 2.0
152 stars 46 forks source link

Add test case for handling _COPYING_ files #227

Closed spearkkk closed 2 weeks ago

spearkkk commented 2 weeks ago

The test covers scenarios where:

marcelmay commented 2 weeks ago

Thx alot, @spearkkk !

I believe a COPYING file would be created by a 3rd party accessing the fsimage directory?

spearkkk commented 2 weeks ago

@marcelmay right, it is created by file copying operation by other accessing. I just thought that test case would help me understand REGEX of filter.