Skip to content

Conversation

@electrum
Copy link
Member

Description

Hive metastore caching was originally disallowed to enable Iceberg transaction retry. Without caching, retries were not useful, as each attempt would use the old cached metadata. AbstractMetastoreTableOperations now has a mechanism to explicitly invalidate the cache on refresh.

Additional context and related issues

Fixes #13115

Release notes

(x) Release notes are required, with the following suggested text:

## Iceberg
* Allow Hive metastore caching. ({issue}`13115`)

@cla-bot cla-bot bot added the cla-signed label Jan 25, 2025
@github-actions github-actions bot added iceberg Iceberg connector hive Hive connector jdbc Relates to Trino JDBC driver labels Jan 25, 2025
@electrum electrum force-pushed the iceberg-cache branch 3 times, most recently from c42fbaf to 4472ac0 Compare January 26, 2025 18:32
@github-actions github-actions bot added the delta-lake Delta Lake connector label Jan 26, 2025
@electrum electrum merged commit f735fc8 into trinodb:master Jan 31, 2025
57 checks passed
@electrum electrum deleted the iceberg-cache branch January 31, 2025 19:02
@github-actions github-actions bot added this to the 470 milestone Jan 31, 2025
Comment on lines -39 to -45
Map<String, String> config = ImmutableMap.<String, String>builder()
.put("hive.metastore.uri", "thrift://localhost:1234")
.put("hive.metastore-cache-ttl", "5m")
.put("bootstrap.quiet", "true")
.buildOrThrow();
assertThatThrownBy(() -> createConnector(config))
.hasMessageContaining("Hive metastore caching must not be enabled for Iceberg");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this is now supported, the test should stay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed delta-lake Delta Lake connector hive Hive connector iceberg Iceberg connector jdbc Relates to Trino JDBC driver

Development

Successfully merging this pull request may close these issues.

Hive Metastore Cache for Iceberg metadata (list tables)

3 participants