roryqi commented on code in PR #10787:
URL: https://github.com/apache/gravitino/pull/10787#discussion_r3109202660
##########
iceberg/iceberg-common/src/main/java/org/apache/gravitino/iceberg/common/ops/IcebergCatalogWrapper.java:
##########
@@ -71,14 +71,14 @@ public class IcebergCatalogWrapper implements AutoCloseable
{
public static final Logger LOG =
LoggerFactory.getLogger(IcebergCatalogWrapper.class);
- @Getter protected Catalog catalog;
- private SupportsNamespaces asNamespaceCatalog;
+ private final Object initializationLock = new Object();
+ protected volatile Catalog catalog;
Review Comment:
Done.
--
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]