Intel-bigdata / SSM

Smart Storage Management for Big Data, a comprehensive hot/cold data optimized solution
Apache License 2.0
134 stars 67 forks source link

Make the same dfsclient in recheck process of move action. #2223

Closed lipppppp closed 3 years ago

lipppppp commented 3 years ago

Move action will recheck file length in execute process. If the file is compressed, it will compare the original length with compressed length because of two different dfsclients. As a result, moving compressed file cannot update sid. So, I replace smartDFSClient with DFSClient for MoveFileAction.

PHILO-HE commented 3 years ago

It woud be better if we set client inside the action. You can refer to EnableErasureCodingPolicy.java

PHILO-HE commented 3 years ago

Looks good to me. Will commit soon.