Skip to content

HIVE-29470: Add unit test to verify commonLocalResources after openin…#6338

Draft
kokila-19 wants to merge 1 commit intoapache:masterfrom
kokila-19:jar_localization
Draft

HIVE-29470: Add unit test to verify commonLocalResources after openin…#6338
kokila-19 wants to merge 1 commit intoapache:masterfrom
kokila-19:jar_localization

Conversation

@kokila-19
Copy link
Contributor

…g a Tez session

Ensures buildCommonLocalResources populates the map with the hive-exec app jar and localized resources so regressions are caught if resource registration is removed.

What changes were proposed in this pull request?

Added testCommonLocalResourcesPopulatedOnSessionOpen() to assert that commonLocalResources includes:
the hive-exec app jar and all localized resources when opening a Tez session.

Why are the changes needed?

Resource registration in openInternalUnsafe (adding the app jar and localized resources to commonLocalResources) had no test coverage. Because of that, tests still passed when that registration was removed or commented out, so a regression could go undetected.
This PR adds unit test coverage so that if the commonLocalResources.put() calls for the app jar or localized resources are removed, the new test fails and the regression is caught.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Unit test

…g a Tez session

Ensures buildCommonLocalResources populates the map with the hive-exec app
jar and localized resources so regressions are caught if resource
registration is removed.
@sonarqubecloud
Copy link

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.

2 participants