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-598: Fix SR to run on Java 11 #599

Merged
merged 3 commits into from
Oct 7, 2019

Conversation

kamalcph
Copy link
Contributor

@kamalcph kamalcph commented Oct 1, 2019

  • Used G1GC instead of parallel GC.
  • Included JAXB-API and it's runtime jars to run the JDK8 compiled build on JRE11.

@kamalcph
Copy link
Contributor Author

kamalcph commented Oct 1, 2019

This PR is built on top of #597

@raju-saravanan
Copy link
Collaborator

@kamalcph Can you rebase this PR with latest MASTER ?

* Used G1GC instead of parallel GC.
* Included JAXB-API and it's runtime jars to run the JDK8 compiled build on JRE11.
@kamalcph
Copy link
Contributor Author

kamalcph commented Oct 3, 2019

@raju-saravanan
Rebased the PR.

Copy link
Contributor

@guruchai guruchai left a comment

Choose a reason for hiding this comment

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

LGTM...

Copy link
Collaborator

@raju-saravanan raju-saravanan left a comment

Choose a reason for hiding this comment

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

Overall LGTM, left few minor comments.

# GC options
GC_LOG_FILE_NAME='registry-gc.log'
if [ -z "$REGISTRY_GC_LOG_OPTS" ]; then
JAVA_MAJOR_VERSION=$($JAVA -version 2>&1 | sed -E -n 's/.* version "([0-9]*).*$/\1/p')
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit : Shouldn't it be "([0-9]+) instead of "([0-9]*) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Both of them works!

Copy link
Collaborator

Choose a reason for hiding this comment

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

@kamalcph It's a nit :)

System.out.println("Failed to load " + jarFile + " into classpath.");
throw new Exception(e);
}
}

static class MyURLClassLoader extends URLClassLoader {
Copy link
Collaborator

Choose a reason for hiding this comment

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

May be we can call this JarClassLoader or some other better name ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renamed to JarClassLoader.

String bootstrapDirPath,
String mysqlJarUrl,
Proxy proxy) throws Exception {
public static ClassLoader downloadMySQLJarIfNeeded(StorageProviderConfiguration storageProperties,
Copy link
Collaborator

Choose a reason for hiding this comment

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

May be we can call this loadMySQLJarIfNeeded() ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renamed to maybeLoadMySQLJar.

Copy link
Collaborator

@raju-saravanan raju-saravanan left a comment

Choose a reason for hiding this comment

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

+1 LGTM

@raju-saravanan raju-saravanan merged commit b123aec into hortonworks:master Oct 7, 2019
@kamalcph kamalcph deleted the CSP-525 branch October 7, 2019 14:12
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.

3 participants