steveloughran commented on PR #14501:
URL: https://github.com/apache/iceberg/pull/14501#issuecomment-3806719603
> The Trash feature in Hadoop/HDFS is quite strange as it's a client,
config, and cluster level feature that all depend upon each other. For example,
the client has to respect the config and initialize the Trash and perform a
move operation otherwise it's ignored. The config has to be set and configured
properly to a location the user has access to.
For HDFS the client actually asks the service what the policy is
```java
public FsServerDefaults getServerDefaults() throws IOException {
return this.dfs.getServerDefaults();
}
```
ViewFS does this for the resolved FS of a path, so will get it for hdfs
there.
The PR #15111 uses this info so the entire trash settings should be picked
up from the store. If a client config has trash off when working with local fs,
s3, abfs etc, when it interacts with hdfs it'll still get the settings from
that cluster.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]