ajantha-bhat commented on code in PR #7641:
URL: https://github.com/apache/iceberg/pull/7641#discussion_r1198972111
##########
nessie/src/main/java/org/apache/iceberg/nessie/NessieTableOperations.java:
##########
@@ -92,6 +92,18 @@ private TableMetadata loadTableMetadata(String
metadataLocation, Reference refer
// Nessie CLI will provide a reference aware GC functionality for the
expired/unreferenced
// files.
newProperties.put(TableProperties.GC_ENABLED, "false");
+
+ boolean metadataCleanupEnabled =
+ newProperties
+
.getOrDefault(TableProperties.METADATA_DELETE_AFTER_COMMIT_ENABLED, "false")
+ .equalsIgnoreCase("true");
+ if (metadataCleanupEnabled) {
+ newProperties.put(TableProperties.METADATA_DELETE_AFTER_COMMIT_ENABLED,
"false");
+ LOG.warn(
+ "Clean up of table metadata files during commit is disabled as it
can be in use by other references."
+ + " Use nessie-gc tool for reference aware GC");
Review Comment:
> I guess the WARN is going to be logged on every load, unless the user
permanently resets the METADATA_DELETE_AFTER_COMMIT_ENABLED property to false,
right?
No, this will be set in table metadata refresh flow. So, this property will
be set to false and written to file in the first refresh. So, it won't print
on every load. For example, this testcase execution prints it only once.
--
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]