Open rickyma opened 3 months ago
Can you elaborate on the issue a bite more please? What is the current behaviour and what is not elegant about it.
When cleaning expired resources, no matter it is an HDFS file or a normal disk file, we always do the following things in HybridStorageManager.removeResources
, that's why en exception is thrown:
public void removeResources(PurgeEvent event) {
LOG.info("Start to remove resource of {}", event);
warmStorageManager.removeResources(event);
coldStorageManager.removeResources(event);
}
You are saying we should not attempt to delete from any storage if the data is not stored there? This means we need to keep track where the data reside.
Yeah, it's better this way, so we can reduce a lot of meaningless warn logs.
Code of Conduct
Search before asking
Describe the bug
We need a more elegant way to delete files, rather than deleting them from the local disk first and then from the hdfs every time.
Affects Version(s)
master
Uniffle Server Log Output
Uniffle Engine Log Output
No response
Uniffle Server Configurations
No response
Uniffle Engine Configurations
No response
Additional context
No response
Are you willing to submit PR?