Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HIVE-27850: Iceberg: Addendum 2: Set runAs user in CompactionInfo. #5100

Merged
merged 1 commit into from Feb 27, 2024

Conversation

difin
Copy link
Contributor

@difin difin commented Feb 25, 2024

What changes were proposed in this pull request?

Setting CompactionInfo.runAs in Iceberg Compaction Service.

Why are the changes needed?

Without runAs set, execution fails during compilation phase on access authorization in internal environments.
Besides that, if runAs is not set and Iceberg compaction throws any exception, without this fix there will be also another exception thrown in the catch block here:

if (CompactorUtil.runJobAsSelf(ci.runAs)) {

Does this PR introduce any user-facing change?

No

Is the change a dependency upgrade?

No

How was this patch tested?

Testing with dev jars on local dev env and precommit tests.

Copy link

sonarcloud bot commented Feb 26, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link
Member

@deniskuzZ deniskuzZ left a comment

Choose a reason for hiding this comment

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

LGTM +1

@deniskuzZ deniskuzZ merged commit 8900565 into apache:master Feb 27, 2024
5 checks passed
dengzhhu653 pushed a commit to dengzhhu653/hive that referenced this pull request Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants