Dawid Weiss created SOLR-6213:
---------------------------------

             Summary: StackOverflowException in Solr cloud's leader election
                 Key: SOLR-6213
                 URL: https://issues.apache.org/jira/browse/SOLR-6213
             Project: Solr
          Issue Type: Bug
    Affects Versions: 5.0, 4.10
            Reporter: Dawid Weiss
            Priority: Critical


This is what's causing test hangs (at least on FreeBSD, LUCENE-5786), possibly 
on other machines too. The problem is stack overflow from looped calls in:

{code}
  > org.apache.solr.cloud.LeaderElector.joinElection(LeaderElector.java:221)
  > 
org.apache.solr.cloud.ShardLeaderElectionContext.rejoinLeaderElection(ElectionContext.java:448)
  > 
org.apache.solr.cloud.ShardLeaderElectionContext.runLeaderProcess(ElectionContext.java:212)
  > 
org.apache.solr.cloud.LeaderElector.runIamLeaderProcess(LeaderElector.java:163)
  > org.apache.solr.cloud.LeaderElector.checkIfIamLeader(LeaderElector.java:125)
  > org.apache.solr.cloud.LeaderElector.joinElection(LeaderElector.java:313)
  > org.apache.solr.cloud.LeaderElector.joinElection(LeaderElector.java:221)
  > 
org.apache.solr.cloud.ShardLeaderElectionContext.rejoinLeaderElection(ElectionContext.java:448)
  > 
org.apache.solr.cloud.ShardLeaderElectionContext.runLeaderProcess(ElectionContext.java:212)
  > 
org.apache.solr.cloud.LeaderElector.runIamLeaderProcess(LeaderElector.java:163)
  > org.apache.solr.cloud.LeaderElector.checkIfIamLeader(LeaderElector.java:125)
  > org.apache.solr.cloud.LeaderElector.joinElection(LeaderElector.java:313)
  > org.apache.solr.cloud.LeaderElector.joinElection(LeaderElector.java:221)
  > 
org.apache.solr.cloud.ShardLeaderElectionContext.rejoinLeaderElection(ElectionContext.java:448)
  > 
org.apache.solr.cloud.ShardLeaderElectionContext.runLeaderProcess(ElectionContext.java:212)
  > 
org.apache.solr.cloud.LeaderElector.runIamLeaderProcess(LeaderElector.java:163)
  > org.apache.solr.cloud.LeaderElector.checkIfIamLeader(LeaderElector.java:125)
  > org.apache.solr.cloud.LeaderElector.joinElection(LeaderElector.java:313)
  > org.apache.solr.cloud.LeaderElector.joinElection(LeaderElector.java:221)
  > 
org.apache.solr.cloud.ShardLeaderElectionContext.rejoinLeaderElection(ElectionContext.java:448)
  > 
org.apache.solr.cloud.ShardLeaderElectionContext.runLeaderProcess(ElectionContext.java:212)
  > 
org.apache.solr.cloud.LeaderElector.runIamLeaderProcess(LeaderElector.java:163)
  > org.apache.solr.cloud.LeaderElector.checkIfIamLeader(LeaderElector.java:125)
  > org.apache.solr.cloud.LeaderElector.joinElection(LeaderElector.java:313)
  > org.apache.solr.cloud.LeaderElector.joinElection(LeaderElector.java:221)
  > 
org.apache.solr.cloud.ShardLeaderElectionContext.rejoinLeaderElection(ElectionContext.java:448)
  > 
org.apache.solr.cloud.ShardLeaderElectionContext.runLeaderProcess(ElectionContext.java:212)
  > 
org.apache.solr.cloud.LeaderElector.runIamLeaderProcess(LeaderElector.java:163)
  > org.apache.solr.cloud.LeaderElector.checkIfIamLeader(LeaderElector.java:125)
  > org.apache.solr.cloud.LeaderElector.joinElection(LeaderElector.java:313)
  > org.apache.solr.cloud.LeaderElector.joinElection(LeaderElector.java:221)
  > 
org.apache.solr.cloud.ShardLeaderElectionContext.rejoinLeaderElection(ElectionContext.java:448)
  > 
org.apache.solr.cloud.ShardLeaderElectionContext.runLeaderProcess(ElectionContext.java:212)
  > 
org.apache.solr.cloud.LeaderElector.runIamLeaderProcess(LeaderElector.java:163)
  > org.apache.solr.cloud.LeaderElector.checkIfIamLeader(LeaderElector.java:125)
  > org.apache.solr.cloud.LeaderElector.joinElection(LeaderElector.java:313)
  > org.apache.solr.cloud.LeaderElector.joinElection(LeaderElector.java:221)
  > 
org.apache.solr.cloud.ShardLeaderElectionContext.rejoinLeaderElection(ElectionContext.java:448)
  > 
org.apache.solr.cloud.ShardLeaderElectionContext.runLeaderProcess(ElectionContext.java:212)
  > 
org.apache.solr.cloud.LeaderElector.runIamLeaderProcess(LeaderElector.java:163)
  > org.apache.solr.cloud.LeaderElector.checkIfIamLeader(LeaderElector.java:125)
  > org.apache.solr.cloud.LeaderElector.joinElection(LeaderElector.java:313)
  > org.apache.solr.cloud.LeaderElector.joinElection(LeaderElector.java:221)
  > 
org.apache.solr.cloud.ShardLeaderElectionContext.rejoinLeaderElection(ElectionContext.java:448)
  > 
org.apache.solr.cloud.ShardLeaderElectionContext.runLeaderProcess(ElectionContext.java:212)
  > 
org.apache.solr.cloud.LeaderElector.runIamLeaderProcess(LeaderElector.java:163)
  > org.apache.solr.cloud.LeaderElector.checkIfIamLeader(LeaderElector.java:125)
  > org.apache.solr.cloud.LeaderElector.joinElection(LeaderElector.java:313)
  > org.apache.solr.cloud.LeaderElector.joinElection(LeaderElector.java:221)
  > 
org.apache.solr.cloud.ShardLeaderElectionContext.rejoinLeaderElection(ElectionContext.java:448)
  > 
org.apache.solr.cloud.ShardLeaderElectionContext.runLeaderProcess(ElectionContext.java:212)
  > 
org.apache.solr.cloud.LeaderElector.runIamLeaderProcess(LeaderElector.java:163)
  > org.apache.solr.cloud.LeaderElector.checkIfIamLeader(LeaderElector.java:125)
  > org.apache.solr.cloud.LeaderElector.joinElection(LeaderElector.java:313)
  > org.apache.solr.cloud.LeaderElector.joinElection(LeaderElector.java:221)
  > 
org.apache.solr.cloud.ShardLeaderElectionContext.rejoinLeaderElection(ElectionContext.java:448)
{code}

These routines attempt to log information to loggers, which in turn attempts to 
serialize messages back to the master (test process). When the stack is 
exhausted the serialization process fails and breaks the communication with the 
master test node.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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

Reply via email to