-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
Update to ShimDandy 1.2.0 #314
Conversation
1.2.0 removes an avenue for leaking memory, and provides a close method to call `shutdown-agents` on your behalf.
👍 I'll give this a test drive later today and report back/merge. Thanks so much for your help on this @tobias! |
@micha @alandipert @Deraen this requires a new binary release, did we come up with a consistent scheme for versioning those? |
@martinklepsch In this case binary change is not breaking but will just fix problems? So I think version 2.4.0 would be good enough. |
I could be wrong about breakage, the |
@Deraen it's breaking as in old binary causes failure when ran with new libs:
|
I think we should just wrap with try/catch: (when pod
(try (.close pod)
(catch java.lang.IllegalArgumentException _
;; compatibility with boot.App version 2.3.x
(.invoke pod "clojure.core/shutdown-agents")
(.. pod getClassLoader close)))) This will fall back to the previous behavior if an older version if shimdandy is present. |
Ah, I neglected to consider how this would work with the app/lib split. It would also be safe to not call I should also clarify that since the changes are all in shimdandy-impl, and the api changes were only additive (just |
Awesome! Thanks @tobias @martinklepsch @Deraen! 🍻 |
1.2.0 removes an avenue for leaking memory, and provides a close method
to call
shutdown-agents
on your behalf.This should address #268.