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-28601: Leverage configurable getPartitions API in HMS to decrease memory footprint in HS2 #5539

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

armitage420
Copy link
Contributor

@armitage420 armitage420 commented Nov 12, 2024

What changes were proposed in this pull request?

Leverage configurable getPartitionsWithSpecs API in HMS to decrease memory footprint in HS2

Why are the changes needed?

The primary motivation behind these changes is to optimize the performance of certain API calls within HS2. These calls often require specific elements, such as say location, without needing the complete storage descriptor in partition object. Transmitting the full object in these cases results in unnecessary overhead and resource consumption. By leveraging the getPartitionsWithSpecs API, we can fetch only the necessary Partition's sub-objects, thereby reducing the memory footprint and hence reducing unnecessary network usage. (A document is added with the jira for more details on how the APIs work, and performance impact it can make)

Does this PR introduce any user-facing change?

No

Is the change a dependency upgrade?

No

How was this patch tested?

Provided tests and added JUnit test class

@armitage420 armitage420 changed the title WIP[HIVE-28601]: Please do not review [HIVE-28601]: Leverage configurable getPartitions API in HMS to decrease memory footprint in HS2 Dec 15, 2024
@armitage420 armitage420 changed the title [HIVE-28601]: Leverage configurable getPartitions API in HMS to decrease memory footprint in HS2 HIVE-28601: Leverage configurable getPartitions API in HMS to decrease memory footprint in HS2 Dec 15, 2024
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.

+1, pending tests

@armitage420
Copy link
Contributor Author

@deniskuzZ Thank you so much for your review again!
The pending test is fixed. Waiting for the pipeline run!

@armitage420
Copy link
Contributor Author

The build is green! phew! :')

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.

5 participants