[ 
https://issues.apache.org/jira/browse/SOLR-9618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15563184#comment-15563184
 ] 

Dawid Weiss commented on SOLR-9618:
-----------------------------------

Thanks Mikhail, but knowing what's stuck on what is one thing and knowing why 
it got there is another (I actually did lock ownership analysis too). Check out 
this stack trace in full:
{code}
"zkCallback-3166-thread-10" #47841 prio=5 os_prio=0 tid=0x00007f5f800eb000 
nid=0x5912 waiting for monitor entry [0x00007f5e94c1a000]
   java.lang.Thread.State: BLOCKED (on object monitor)
        at java.util.logging.StreamHandler.publish(StreamHandler.java:206)
        - waiting to lock <0x00000000e0e6e2b8> (a 
java.util.logging.ConsoleHandler)
        at java.util.logging.ConsoleHandler.publish(ConsoleHandler.java:116)
        at java.util.logging.Logger.log(Logger.java:738)
        at java.util.logging.Logger.doLog(Logger.java:765)
        at java.util.logging.Logger.log(Logger.java:876)
        at 
com.carrotsearch.randomizedtesting.RandomizedRunner$QueueUncaughtExceptionsHandler.uncaughtException(RandomizedRunner.java:524)
        at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1057)
        at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1052)
        at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1052)
        at 
com.carrotsearch.randomizedtesting.RunnerThreadGroup.uncaughtException(RunnerThreadGroup.java:32)
        at java.lang.Thread.dispatchUncaughtException(Thread.java:1956)
{code}

it originates from a private method that is invoked by the JVM... 

I see an immediate patch in removing this from RR:
{code}
      Logger.getLogger(RunnerThreadGroup.class.getSimpleName()).log(
          Level.WARNING,
          "Uncaught exception in thread: " + t, e);
{code}

but I'd like to understand how this interaction can be reliably repeated; 
perhaps there is a deeper problem that needs resolving.

> Tests hang on a forked process (deadlock inside the process)
> ------------------------------------------------------------
>
>                 Key: SOLR-9618
>                 URL: https://issues.apache.org/jira/browse/SOLR-9618
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Dawid Weiss
>            Assignee: Dawid Weiss
>         Attachments: trace.log.bz2
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to