You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current fileset schema cascade deletion only applies to the location of the schema.
I am not sure if we need to consider the sub-files under the location of the schema during cascade deletion, or just need to consider the child-filesets' locations of the schema? Or do we need to consider both?
From the current scenario within Xiaomi, we will not directly Drop the schema, but only support Drop the fileset. If we need to support Drop Schema, it seems reasonable to delete the storage location of managed fileset under the schema at the same time, but the cost may be slightly higher because recursive storage location deletion is required. Maybe disable that deleting schema of fileset recursively which has the managed filesets is also an option.
Version
main branch
Describe what's wrong
In current
dropSchema
codes, when we drop a fileset schema with cascade, it only judges the schemaPath's subfile but missing the child fileset:gravitino/catalogs/catalog-hadoop/src/main/java/org/apache/gravitino/catalog/hadoop/HadoopCatalogOperations.java
Lines 509 to 517 in 3dd59a8
Error message and/or stacktrace
don't throw an error
How to reproduce
s1
with location/a
s1.f1
under above schema with location/b
s1
with cascade/a
was removed but/b
still exists (that's the problem)Additional context
No response
The text was updated successfully, but these errors were encountered: