karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paolo Antinori (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-3564) bin/stop fails for slave in case of Lock strategies
Date Wed, 25 Feb 2015 15:45:05 GMT
Paolo Antinori created KARAF-3564:

             Summary: bin/stop fails for slave in case of Lock strategies
                 Key: KARAF-3564
                 URL: https://issues.apache.org/jira/browse/KARAF-3564
             Project: Karaf
          Issue Type: Bug
          Components: karaf-core
    Affects Versions: 2.3.7
            Reporter: Paolo Antinori

{{bin/stop}} invokes {{org.apache.karaf.main.Stop}}


{{Stop}} reads the socket port it has to connect to from a file: {{data/port}} is the default.

But when a Lock strategy is in place, and the instance is the one that could not obtain the
lock, the shutdown socket is never started:


 if (lock.lock()) {
    if (lockLogged) {
       LOG.info("Lock acquired.");

and the Shutdown socket is created only in {{setupShutdown()}}

A workaround is to use {{bin/clien -u admin -p admin 'shutdown --force'}}

It should be safe to move the invocation of {{setupShutdown}} outside the {{if(lock.lock())}}

cross reference: https://issues.jboss.org/browse/ENTESB-2417

This message was sent by Atlassian JIRA

View raw message