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-28002: Make hive.metastore.batch.retrieve.max property to be read from hiveconf in HS2 #5008

Closed
wants to merge 1 commit into from

Conversation

vikramahuja1001
Copy link
Contributor

@vikramahuja1001 vikramahuja1001 commented Jan 16, 2024

What changes were proposed in this pull request?

The property hive.metastore.batch.retrieve.max is used by both the client(Hs2) and the HMS when fetching objects(tables/partitions) in batches. This property is present in both hiveConf.java as well as metastoreConf.java. For some use cases in the client(Hs2), this value is referred from the metastoreConf. Changing those use cases to HiveConf.java to have a set demarkation between HS2 and HMS use cases for this property.

Why are the changes needed?

Does this PR introduce any user-facing change?

Is the change a dependency upgrade?

How was this patch tested?

Copy link

@aturoczy aturoczy left a comment

Choose a reason for hiding this comment

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

I do not understanding why it is better to read this config from HiveConfig than for MetaStore config? Sorry, but I do not understand the benefits of this change. Could you please ellaborate why this change has a benefit?

@@ -1296,10 +1296,7 @@ public static enum ConfVars {
@Deprecated
METASTORE_PLUGIN_REGISTRY_BUNDLE_CHECK("datanucleus.plugin.pluginRegistryBundleCheck", "LOG",
"Defines what happens when plugin bundles are found and are duplicated [EXCEPTION|LOG|NONE]"),
/**

Choose a reason for hiding this comment

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

It is not deprecated before? Or why it is changed?

@deniskuzZ
Copy link
Member

-1

@vikramahuja1001
Copy link
Contributor Author

The main motivation behind this PR was to increase readability wrt HS2 accessing only HiveConf and HMS accessing only MetastoreConf to have a clear demarkation.

I will close this PR wrt the above comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants