Skip to content

Conversation

@steveloughran
Copy link
Contributor

Addresses #15093

  • New (documented) option iceberg.hadoop.delete-trash-schemas
  • Default value is "hdfs, viewfs"
  • Uses Trash.moveToAppropriateTrash() to resolve the target FS, and will query hdfs for the
    active trash policy.
  • Restores behavior that delete(missing-path) is a no-op; trash operations raise FNFE here
  • Test changes as appropriate

* declares whether to look @ trash policy before delete
* defaults are currently "hdfs" and "viewfs", though I'm tempted to make the
  default "".
… for

Addresses apache#15093
* Default Filesystems are hdfs: and viewfs: schemas
* Tests conditionally enable file: schema as trash
* Tests set up FS with/without trash enablement.
* Also address issue that delete(missing-path) must always succeed; trash policy fails here.
+ docs.
+ test sets in a list of schemas when enabling local trash so verifying that the option splitting works.
@steveloughran steveloughran marked this pull request as draft January 23, 2026 11:09
1. verify setting schemas to "" means default hdfs value goes
2. verify that a failure in moveToTrash() is caught and downgraded.

Test case apache#2 is the key one, as it shows that delete works even if trash move somehow failed.

+ fix doc trailing space failure.
@steveloughran steveloughran marked this pull request as ready for review January 25, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant