Skip to content

Conversation

@khush-bhatia
Copy link
Contributor

@khush-bhatia khush-bhatia commented May 28, 2019

Issue #, if available:

Description of changes:

Created a new interface ExecutorServiceFactory and a default implementation of it that maintains existing behavior.
Introduced a new config hive.metastore.executorservice.factory.class that will be used by Databricks to provide a custom executor service factory that returns a custom ExecutorService.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@khush-bhatia khush-bhatia changed the title Use a custom executor service if config is set [PROTOTYPE] Use a custom executor service if config is set May 29, 2019
Copy link

@databricks-david-lewis databricks-david-lewis left a comment

Choose a reason for hiding this comment

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

LGTM! I think this is much cleaner and more extensible.

@khush-bhatia khush-bhatia changed the title [PROTOTYPE] Use a custom executor service if config is set Use a custom executor service if config is set May 30, 2019
@khush-bhatia
Copy link
Contributor Author

@ialek36 , The PR is ready for review. I am working on adding tests now, but hoping to get some preliminary feedback on the high-level solution.

@GregOwen
Copy link

This looks great. LGTM.

@khush-bhatia
Copy link
Contributor Author

@aws-austin-lee , can you please review this PR.

@aws-austin-lee
Copy link
Contributor

The changes themselves look good to me, but I do not see any unit tests. Can we have some test coverage, please?

@khush-bhatia
Copy link
Contributor Author

@aws-austin-lee I have added unit tests. Could not run it locally though because I am running into this issue #1

@khush-bhatia
Copy link
Contributor Author

@aws-austin-lee , I resolved the build issues and could run the tests locally. Can you please review ? Thanks.

@khush-bhatia
Copy link
Contributor Author

@ialek36 , the PR is ready for review. I have added unit tests as well.

@ialek36
Copy link

ialek36 commented Jun 5, 2019

@khush-bhatia The unit test looks good to me. Let me follow up with @aws-austin-lee. I don't have merge permissions on the repo.

@aws-austin-lee aws-austin-lee merged commit 87aa085 into awslabs:master Jun 9, 2019
@aws-austin-lee
Copy link
Contributor

Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants