Skip to content

Conversation

@szlta
Copy link
Contributor

@szlta szlta commented Oct 27, 2025

Committing transactions triggers a refresh() call on underlying table operations before the actual commit happens.

HiveTableOperations recreates its EncryptionManager on such invocations, so any new encryption key stored in the EM's transient state will be lost.

Effectively, appends within transactions will result in encrypted manifest lists with their encryption key being thrown away.

Committing transactions triggers a refresh() call on
underlying table operations.

HiveTableOperations recreates its encryption manager on
such invocations, so any new encryption key stored in
the EM's transient state will be lost.

Effectively, appends within transactions will result in
encrypted manifest lists with their encryption key
being thrown away.
@huaxingao
Copy link
Contributor

cc @ggershinsky

Copy link
Contributor

@ggershinsky ggershinsky left a comment

Choose a reason for hiding this comment

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

Thanks @szlta , LGTM.

@szlta szlta changed the title [Hive] Fix newly added encryption keys getting lost in transactions Hive: Fix newly added encryption keys getting lost in transactions Oct 28, 2025
@huaxingao huaxingao merged commit fa62ec1 into apache:main Oct 28, 2025
42 checks passed
@huaxingao
Copy link
Contributor

Thanks @szlta for the PR! Thanks @ggershinsky for the review!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants