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

[Issue-2741] use RetryingMetaStoreClient #2804

Closed
wants to merge 1 commit into from

Conversation

jhsenjaliya
Copy link

uses RetryingMetaStoreClient to handle the connection failures automatically as per the hive internal logic. instead of trying to use hiveMetastoreClient directly.

try {
try {
return CLIENT_CTOR.newInstance(hiveConf);
return RetryingMetaStoreClient.getProxy(hiveConf, null, HiveMetaStoreClient.class.getName());
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe I'm mistaken, but this is the CTOR that is @VisibleForTesting?

Can we use:

public static IMetaStoreClient getProxy(
      Configuration hiveConf, boolean allowEmbedded)

@szehon-ho
Copy link
Collaborator

Actually on second look, it looks like ClientPoolImpl already does the retry logic (though no configurable retries), so if we replace it it will need to be a bigger replacement..

@szehon-ho
Copy link
Collaborator

@jhsenjaliya do you plan to continue working on it, or I can also help? Probably we need to get rid of the extra retry at ClientPool layer and refactor more codes to get it to work.

@jhsenjaliya
Copy link
Author

Hi @szehon-ho , yes, since the clientPool is designed to take care of reties, and RetryingHiveMetastore client does not really allow individual object creation, its hard to replace it without significant code replacement which i feel now unnecessary, I explained the issue in discussion at #2741

@szehon-ho
Copy link
Collaborator

This has been implemented

@szehon-ho szehon-ho closed this Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants