Fork me on GitHub
#tools-deps
<
2018-07-03
>
pesterhazy08:07:31

@martinklepsch probably not related to the println itself, right?

martinklepsch08:07:44

No, println was just literal string, but the shot down agents thing fixed it for whatever reason :man-shrugging:

hagmonk00:07:31

you can try hitting it with jstack next time to see where it's hung up

4
andy.fingerhut17:07:57

Likely there is something in your program that is creating a future, which causes that behavior, e.g. clojure.java.shell/sh -- http://clojuredocs.org/clojure.core/future

martinklepsch13:07:14

@U0CMVHBL2 thanks that was most likely the issue. Is there any way to properly shutdown an individual future so that I don’t have to clean up using shutdown-agents later?

martinklepsch14:07:46

This issue came up pretty frequently again, tried jstack now which returns the follow (besides lots of other stuff):

"Finalizer" #3 daemon prio=8 os_prio=31 tid=0x00007f89a7016800 nid=0x5103 in Object.wait() [0x000070000957b000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x00000006c000e778> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
        - locked <0x00000006c000e778> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)

"Reference Handler" #2 daemon prio=10 os_prio=31 tid=0x00007f89a7013800 nid=0x2e03 in Object.wait() [0x0000700009478000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x00000006c000e948> (a java.lang.ref.Reference$Lock)
        at java.lang.Object.wait(Object.java:502)
        at java.lang.ref.Reference.tryHandlePending(Reference.java:191)
        - locked <0x00000006c000e948> (a java.lang.ref.Reference$Lock)
        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:153)

martinklepsch15:07:24

duh, found it 🙂 didn’t stop a scheduler facepalm

martinklepsch15:07:43

Seems shutdown-agents is still required in some capacity though