-
Notifications
You must be signed in to change notification settings - Fork 126
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
[CBRD-25285] Add a new ClassLoader to avoid reloading classes that load JNI in a Java SP Server #5076
Conversation
src/executables/loadjava.cpp
Outdated
{0, 0, 0, 0} | ||
}; | ||
|
||
while (1) | ||
{ | ||
int option_index = 0; | ||
int option_key = getopt_long (argc, argv, "yh", loadjava_option, &option_index); | ||
int option_key = getopt_long (argc, argv, "y:jh", loadjava_option, &option_index); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you add ':'?
Using ':' means there are arguments.
Does the '-y' option have additional arguments?
@@ -914,7 +914,8 @@ $set 34 MSGCAT_UTIL_SET_LOADJAVA | |||
Usage: loadjava [OPTION] database-name java-class-file\n\ | |||
\n\ | |||
valid options:\n\ | |||
-y, --overwrite Klassendatei, wenn vorhanden, überschreiben, Standard nein\n | |||
-y, --overwrite Klassendatei, wenn vorhanden, überschreiben, Standard nein\n\ | |||
-j, --jni add a Class or Jar to static loading for JNI\n |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Class --> class
build-windows fails casued by compiling
It seems not related to this PR, I'm going to merge the PR. |
…ad JNI in a Java SP Server (CUBRID#5076) http://jira.cubrid.org/browse/CBRD-25285 A new classloader (StoredProcedureStaticClassLoader) will be added to avoid reloading classes that load JNI. By loadjava's -j option, classes are copied to /java_static directory and the classloader will try to find classes in the path. The classloader does not check whether any file is modified in the path, Also is not be re-initialized like StoredProcedureClassLoader. To update overwritten classes in /java_static, restarting Java SP server(cub_javasp) is required.
…ad JNI in a Java SP Server (#5076) (#5090) http://jira.cubrid.org/browse/CBRD-25285 A new classloader (StoredProcedureStaticClassLoader) will be added to avoid reloading classes that load JNI. By loadjava's -j option, classes are copied to /java_static directory and the classloader will try to find classes in the path. The classloader does not check whether any file is modified in the path, Also is not be re-initialized like StoredProcedureClassLoader. To update overwritten classes in /java_static, restarting Java SP server(cub_javasp) is required.
http://jira.cubrid.org/browse/CBRD-25285
A new classloader (
StoredProcedureStaticClassLoader
) will be added to avoid reloading classes that load JNI. Byloadjava
's-j
option, classes are copied to/java_static
directory and the classloader will try to find classes in the path.The classloader does not check whether any file is modified in the path, Also is not be re-initialized like
StoredProcedureClassLoader
. To update overwritten classes in/java_static
, restarting Java SP server(cub_javasp
) is required.