-
Notifications
You must be signed in to change notification settings - Fork 3k
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
JavassistProxyFactory fails if it cannot write to /tmp/com/zaxxer/.../*.class #124
Comments
I think that configuring the base path for writing the tmp files should be considered also. |
I think these classes should be held entirely in memory, unless a flag for debugging proxy class generation says otherwise. |
Also agree on that. Not sure though if in-memory persistence may yield other problems (heap consumption). |
Classes are only dumped to the tmp dir when DEBUG level logging is set -- dumping the classes is not operational, but is in fact used for debugging. There are three options here:
|
Ok, turning off DEBUG logging for JavassistProxyFactory sounds like the best option for us, thanks! |
Perhaps it would still be nice for those actually using the dumping feature that the files would be in a user-specific directory? |
It's really just for internal use. We're going to change it over to an internally defined system property rather than triggering off of the debug mode of the logger. |
It seems
JavassistProxyFactory
dumps generated proxy classes to a directory structure directly below the operating system tmp directory. At least in Unix environments this directory is typically shared, so if another user tries to use HikariCP as well, he gets an exception when failing to overwrite the files dumped by the first user.Perhaps the path where temporary files are written (by HikariCP) could be made user-specific e.g. adding
System.getProperty("user.name")
into the path, to allow multiple users to use HikariCP on the same machine?Sample stacktrace snippet:
The text was updated successfully, but these errors were encountered: