Jingsong Lee created FLINK-25173: ------------------------------------ Summary: Introduce CatalogLock Key: FLINK-25173 URL: https://issues.apache.org/jira/browse/FLINK-25173 Project: Flink Issue Type: Sub-task Components: Connectors / Hive, Table SQL / API Reporter: Jingsong Lee Fix For: 1.15.0
{panel} {panel} |{{/**}} {{ }}{{* An interface that allows source and sink to use global lock to some transaction-related things.}} {{ }}{{*/}} {{@Internal}} {{public}} {{interface}} {{CatalogLock }}{{extends}} {{Closeable {}} {{ }}{{/** Run with catalog lock. The caller should tell catalog the database and table name. */}} {{ }}{{<T> T runWithLock(String database, String table, Callable<T> callable) }}{{throws}} {{Exception;}} {{ }}{{/** Factory to create \{@link CatalogLock}. */}} {{ }}{{interface}} {{Factory }}{{extends}} {{Serializable {}} {{ }}{{CatalogLock create();}} {{ }}{{}}} {{}}}| Currently, only HiveCatalog can provide this catalog lock. -- This message was sent by Atlassian Jira (v8.20.1#820001)