You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Joaquin Casares (Created) (JIRA)" <ji...@apache.org> on 2011/11/09 21:13:52 UTC

[jira] [Created] (CASSANDRA-3477) sudo /etc/init.d/cassandra stop and restart don't work on Debian 6

sudo /etc/init.d/cassandra stop and restart don't work on Debian 6
------------------------------------------------------------------

                 Key: CASSANDRA-3477
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
             Project: Cassandra
          Issue Type: Bug
            Reporter: Joaquin Casares


The restart command keeps failing and never passes.

The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.

Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3477) cassandra takes too long to shut down when told to quit

Posted by "paul cannon (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13168595#comment-13168595 ] 

paul cannon commented on CASSANDRA-3477:
----------------------------------------

Joaquin- ready to close?
                
> cassandra takes too long to shut down when told to quit
> -------------------------------------------------------
>
>                 Key: CASSANDRA-3477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Joaquin Casares
>            Assignee: paul cannon
>            Priority: Minor
>             Fix For: 1.0.6
>
>
> The restart command keeps failing and never passes.
> The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.
> Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3477) cassandra takes too long to shut down when told to quit

Posted by "Jonathan Ellis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13148095#comment-13148095 ] 

Jonathan Ellis commented on CASSANDRA-3477:
-------------------------------------------

I guess you can profile the shutdown hook, maybe split some of it into multiple threads?  But fundamentally if you want it shut down *fast* you have kill -9 for that, with the drawbacks that entails. :)
                
> cassandra takes too long to shut down when told to quit
> -------------------------------------------------------
>
>                 Key: CASSANDRA-3477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Joaquin Casares
>            Assignee: paul cannon
>            Priority: Minor
>             Fix For: 1.0.3
>
>
> The restart command keeps failing and never passes.
> The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.
> Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3477) sudo /etc/init.d/cassandra stop and restart don't work on Debian 6

Posted by "Joaquin Casares (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13147461#comment-13147461 ] 

Joaquin Casares commented on CASSANDRA-3477:
--------------------------------------------

Just tried it again on fresh machines.

Restart still fails and now I see stop works if you wait some time after /etc/init.d/cassandra stop returns.

Right now, stop followed immediately by start is not recommended. I'm waiting to see when /var/run/cassandra.pid no longer exists before running start.
                
> sudo /etc/init.d/cassandra stop and restart don't work on Debian 6
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-3477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>            Reporter: Joaquin Casares
>            Assignee: paul cannon
>            Priority: Minor
>             Fix For: 1.0.3
>
>
> The restart command keeps failing and never passes.
> The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.
> Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CASSANDRA-3477) cassandra takes too long to shut down when told to quit

Posted by "Jonathan Ellis (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis resolved CASSANDRA-3477.
---------------------------------------

       Resolution: Duplicate
    Fix Version/s:     (was: 1.0.6)
         Assignee:     (was: paul cannon)

resolving as duplicate of CASSANDRA-3335
                
> cassandra takes too long to shut down when told to quit
> -------------------------------------------------------
>
>                 Key: CASSANDRA-3477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Joaquin Casares
>            Priority: Minor
>
> The restart command keeps failing and never passes.
> The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.
> Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CASSANDRA-3477) sudo /etc/init.d/cassandra stop and restart don't work on Debian 6

Posted by "Joaquin Casares (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13147986#comment-13147986 ] 

Joaquin Casares edited comment on CASSANDRA-3477 at 11/10/11 8:32 PM:
----------------------------------------------------------------------

Here's from my program's log:

{CODE}
[EXEC] 11/10/11-12:08:33 sudo -A /etc/init.d/cassandra restart
[/EXEC] 11/10/11-12:09:33 sudo -A /etc/init.d/cassandra restart:
 * Restarting Cassandra cassandra
   ...fail!
[EXEC] 11/10/11-12:09:33 sudo -A /etc/init.d/cassandra stop
[/EXEC] 11/10/11-12:10:33 sudo -A /etc/init.d/cassandra stop
[INFO] Waiting for Cassandra service to terminate...
[EXEC] 11/10/11-12:10:38 sudo -A /etc/init.d/cassandra stop
[/EXEC] 11/10/11-12:11:39 sudo -A /etc/init.d/cassandra stop
[INFO] Waiting for Cassandra service to terminate...
.....
[EXEC] 11/10/11-14:21:02 sudo -A /etc/init.d/cassandra stop
[/EXEC] 11/10/11-14:22:02 sudo -A /etc/init.d/cassandra stop
[INFO] Waiting for Cassandra service to terminate...
{CODE}

{CODE}
root@jcasares-Ubuntu-11:~# date
Thu Nov 10 20:28:27 UTC 2011
root@jcasares-Ubuntu-11:~# ps auwx | grep cass
root      5119  0.0  0.0  18892   400 ?        Ss   12:07   0:00 jsvc.exec -user cassandra -home /usr/lib/jvm/java-6-sun/jre/bin/../ ...
105       5121  0.2 62.4 1370104 1280196 ?     SLl  12:07   1:25 jsvc.exec -user cassandra -home /usr/lib/jvm/java-6-sun/jre/bin/../ ...
root@jcasares-Ubuntu-11:~# sudo cat /var/run/cassandra.pid 
5121
{CODE}

Output of sh -x /etc/init.d/cassandra stop
http://aep.appspot.com/display/vjkvJtUEciR-0QZxTTmj-ZAvQzc/
                
      was (Author: j.casares):
    Here's from my programs log:

{CODE}
[EXEC] 11/10/11-12:08:33 sudo -A /etc/init.d/cassandra restart
[/EXEC] 11/10/11-12:09:33 sudo -A /etc/init.d/cassandra restart:
 * Restarting Cassandra cassandra
   ...fail!
[EXEC] 11/10/11-12:09:33 sudo -A /etc/init.d/cassandra stop
[/EXEC] 11/10/11-12:10:33 sudo -A /etc/init.d/cassandra stop
[INFO] Waiting for Cassandra service to terminate...
[EXEC] 11/10/11-12:10:38 sudo -A /etc/init.d/cassandra stop
[/EXEC] 11/10/11-12:11:39 sudo -A /etc/init.d/cassandra stop
[INFO] Waiting for Cassandra service to terminate...
.....
[EXEC] 11/10/11-14:21:02 sudo -A /etc/init.d/cassandra stop
[/EXEC] 11/10/11-14:22:02 sudo -A /etc/init.d/cassandra stop
[INFO] Waiting for Cassandra service to terminate...
{CODE}

{CODE}
root@jcasares-Ubuntu-11:~# date
Thu Nov 10 20:28:27 UTC 2011
root@jcasares-Ubuntu-11:~# ps auwx | grep cass
root      5119  0.0  0.0  18892   400 ?        Ss   12:07   0:00 jsvc.exec -user cassandra -home /usr/lib/jvm/java-6-sun/jre/bin/../ ...
105       5121  0.2 62.4 1370104 1280196 ?     SLl  12:07   1:25 jsvc.exec -user cassandra -home /usr/lib/jvm/java-6-sun/jre/bin/../ ...
root@jcasares-Ubuntu-11:~# sudo cat /var/run/cassandra.pid 
5121
{CODE}

Output of sh -x /etc/init.d/cassandra stop
http://aep.appspot.com/display/vjkvJtUEciR-0QZxTTmj-ZAvQzc/
                  
> sudo /etc/init.d/cassandra stop and restart don't work on Debian 6
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-3477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>            Reporter: Joaquin Casares
>            Assignee: paul cannon
>            Priority: Minor
>             Fix For: 1.0.3
>
>
> The restart command keeps failing and never passes.
> The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.
> Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3477) sudo /etc/init.d/cassandra stop and restart don't work on Debian 6

Posted by "Joaquin Casares (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13147986#comment-13147986 ] 

Joaquin Casares commented on CASSANDRA-3477:
--------------------------------------------

Here's from my programs log:

{CODE}
[EXEC] 11/10/11-12:08:33 sudo -A /etc/init.d/cassandra restart
[/EXEC] 11/10/11-12:09:33 sudo -A /etc/init.d/cassandra restart:
 * Restarting Cassandra cassandra
   ...fail!
[EXEC] 11/10/11-12:09:33 sudo -A /etc/init.d/cassandra stop
[/EXEC] 11/10/11-12:10:33 sudo -A /etc/init.d/cassandra stop
[INFO] Waiting for Cassandra service to terminate...
[EXEC] 11/10/11-12:10:38 sudo -A /etc/init.d/cassandra stop
[/EXEC] 11/10/11-12:11:39 sudo -A /etc/init.d/cassandra stop
[INFO] Waiting for Cassandra service to terminate...
.....
[EXEC] 11/10/11-14:21:02 sudo -A /etc/init.d/cassandra stop
[/EXEC] 11/10/11-14:22:02 sudo -A /etc/init.d/cassandra stop
[INFO] Waiting for Cassandra service to terminate...
{CODE}

{CODE}
root@jcasares-Ubuntu-11:~# date
Thu Nov 10 20:28:27 UTC 2011
root@jcasares-Ubuntu-11:~# ps auwx | grep cass
root      5119  0.0  0.0  18892   400 ?        Ss   12:07   0:00 jsvc.exec -user cassandra -home /usr/lib/jvm/java-6-sun/jre/bin/../ ...
105       5121  0.2 62.4 1370104 1280196 ?     SLl  12:07   1:25 jsvc.exec -user cassandra -home /usr/lib/jvm/java-6-sun/jre/bin/../ ...
root@jcasares-Ubuntu-11:~# sudo cat /var/run/cassandra.pid 
5121
{CODE}

Output of sh -x /etc/init.d/cassandra stop
http://aep.appspot.com/display/vjkvJtUEciR-0QZxTTmj-ZAvQzc/
                
> sudo /etc/init.d/cassandra stop and restart don't work on Debian 6
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-3477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>            Reporter: Joaquin Casares
>            Assignee: paul cannon
>            Priority: Minor
>             Fix For: 1.0.3
>
>
> The restart command keeps failing and never passes.
> The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.
> Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3477) sudo /etc/init.d/cassandra stop and restart don't work on Debian 6

Posted by "Joaquin Casares (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13148047#comment-13148047 ] 

Joaquin Casares commented on CASSANDRA-3477:
--------------------------------------------

On Ubuntu 10.04:

{CODE}
joaquin@jcasares-Ubuntu-10:~$ ps auwx | grep cass
root      4593  0.0  0.0  16732   372 ?        Ss   21:56   0:00 /usr/bin/jsvc -user cassandra -home /usr/lib/jvm/java-6-sun/jre/bin/../ -pi ...
joaquin@jcasares-Ubuntu-10:~$ sudo /usr/bin/jsvc -stop -verbose -home /usr/lib/jvm/java-6-sun/jre/bin/../     -pidfile /var/run/cassandra.pid org.apache.cassandra.thrift.CassandraDaemon
joaquin@jcasares-Ubuntu-10:~$ echo $?
255
joaquin@jcasares-Ubuntu-10:~$ sudo tail /var/log/cassandra.bak/system.log 
 INFO [FlushWriter:1] 2011-11-10 21:56:01,768 Memtable.java (line 273) Completed flushing /var/lib/cassandra/data/system/LocationInfo-h-2-Data.db (163 bytes)
 INFO [main] 2011-11-10 21:56:01,771 StorageService.java (line 885) Node localhost/127.0.0.1 state jump to normal
 INFO [main] 2011-11-10 21:56:01,772 StorageService.java (line 577) Bootstrap/Replace/Move completed! Now serving reads.
 INFO [main] 2011-11-10 21:56:01,773 Mx4jTool.java (line 72) Will not load MX4J, mx4j-tools.jar is not in the classpath
 INFO [main] 2011-11-10 21:56:01,812 CassandraDaemon.java (line 124) Binding thrift service to localhost/127.0.0.1:9160
 INFO [main] 2011-11-10 21:56:01,816 CassandraDaemon.java (line 133) Using TFastFramedTransport with a max frame size of 15728640 bytes.
 INFO [main] 2011-11-10 21:56:01,819 CassandraDaemon.java (line 160) Using synchronous/threadpool thrift server on localhost/127.0.0.1 : 9160
 INFO [Thread-3] 2011-11-10 21:56:01,820 CassandraDaemon.java (line 212) Listening for thrift clients...
 INFO [main] 2011-11-10 21:56:03,354 AbstractCassandraDaemon.java (line 270) Cassandra shutting down...
 INFO [main] 2011-11-10 21:56:03,354 CassandraDaemon.java (line 218) Stop listening to thrift clients
joaquin@jcasares-Ubuntu-10:~$ ps auwx | grep cass
root      4593  0.0  0.0  16732   372 ?        Ss   21:56   0:00 /usr/bin/jsvc -user cassandra -home /usr/lib/jvm/java-6-sun/jre/bin/../ -pi ...
joaquin@jcasares-Ubuntu-10:~$ sudo /usr/bin/jsvc -stop -verbose -home /usr/lib/jvm/java-6-sun/jre/bin/../     -pidfile /var/run/cassandra.pid org.apache.cassandra.thrift.CassandraDaemon
joaquin@jcasares-Ubuntu-10:~$ echo $?
255
joaquin@jcasares-Ubuntu-10:~$ sudo tail /var/log/cassandra.bak/system.log -n5 INFO [main] 2011-11-10 21:56:01,816 CassandraDaemon.java (line 133) Using TFastFramedTransport with a max frame size of 15728640 bytes.
 INFO [main] 2011-11-10 21:56:01,819 CassandraDaemon.java (line 160) Using synchronous/threadpool thrift server on localhost/127.0.0.1 : 9160
 INFO [Thread-3] 2011-11-10 21:56:01,820 CassandraDaemon.java (line 212) Listening for thrift clients...
 INFO [main] 2011-11-10 21:56:03,354 AbstractCassandraDaemon.java (line 270) Cassandra shutting down...
 INFO [main] 2011-11-10 21:56:03,354 CassandraDaemon.java (line 218) Stop listening to thrift clients
{CODE}
                
> sudo /etc/init.d/cassandra stop and restart don't work on Debian 6
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-3477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>            Reporter: Joaquin Casares
>            Assignee: paul cannon
>            Priority: Minor
>             Fix For: 1.0.3
>
>
> The restart command keeps failing and never passes.
> The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.
> Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3477) sudo /etc/init.d/cassandra stop and restart don't work on Debian 6

Posted by "Joaquin Casares (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13148034#comment-13148034 ] 

Joaquin Casares commented on CASSANDRA-3477:
--------------------------------------------

This is what I see when I run a restart. I was asking if we could have something similar for this stop command? Fairy sprinkles if you will, but if the code is already going to be touched, why not?
{CODE}
root@jcasares-Ubuntu-11:~# sudo /etc/init.d/cassandra restart
 * Restarting Cassandra cassandra
   ...fail!
{CODE}

In /var/log/cassandra.bak/output.log:
{CODE}
 INFO 12:07:31,271 Listening for thrift clients...
 INFO 12:07:32,525 Cassandra shutting down...
 INFO 12:07:32,526 Stop listening to thrift clients
Shutdown or reload already scheduled
Shutdown or reload already scheduled
Shutdown or reload already scheduled
...
{CODE}

                
> sudo /etc/init.d/cassandra stop and restart don't work on Debian 6
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-3477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>            Reporter: Joaquin Casares
>            Assignee: paul cannon
>            Priority: Minor
>             Fix For: 1.0.3
>
>
> The restart command keeps failing and never passes.
> The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.
> Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CASSANDRA-3477) sudo /etc/init.d/cassandra stop and restart don't work on Debian 6

Posted by "Joaquin Casares (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13147461#comment-13147461 ] 

Joaquin Casares edited comment on CASSANDRA-3477 at 11/10/11 2:59 AM:
----------------------------------------------------------------------

Just tried it again on fresh machines.

Restart still fails and now I see stop works sometimes if you wait some time after /etc/init.d/cassandra stop returns.

Right now, stop followed immediately by start is not recommended. I'm waiting to see when /var/run/cassandra.pid no longer exists before running start.
                
      was (Author: j.casares):
    Just tried it again on fresh machines.

Restart still fails and now I see stop works if you wait some time after /etc/init.d/cassandra stop returns.

Right now, stop followed immediately by start is not recommended. I'm waiting to see when /var/run/cassandra.pid no longer exists before running start.
                  
> sudo /etc/init.d/cassandra stop and restart don't work on Debian 6
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-3477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>            Reporter: Joaquin Casares
>            Assignee: paul cannon
>            Priority: Minor
>             Fix For: 1.0.3
>
>
> The restart command keeps failing and never passes.
> The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.
> Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3477) sudo /etc/init.d/cassandra stop and restart don't work on Debian 6

Posted by "Joaquin Casares (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13148019#comment-13148019 ] 

Joaquin Casares commented on CASSANDRA-3477:
--------------------------------------------

Sorry, I was under the assumption that stop would print out an error message if it failed. Could we have it do that similar to the restart command? Thanks for pointing that out.

Ouput:
{CODE}
joaquin@jcasares-Ubuntu-11:~$ ps auwx | grep cass
root      9288  0.0  0.0  18892   396 ?        Ss   12:04   0:00 jsvc.exec -user cassandra -home /usr/lib/jvm/java-6-sun/jre/bin/../ ...
joaquin@jcasares-Ubuntu-11:~$ sudo /usr/bin/jsvc -stop -verbose -home /usr/lib/jvm/java-6-sun/jre/bin/../ \
>     -pidfile /var/run/cassandra.pid org.apache.cassandra.thrift.CassandraDaemon
[sudo] password for joaquin: 
joaquin@jcasares-Ubuntu-11:~$ ps auwx | grep cass
joaquin   9603  0.0  0.0   8168  1044 pts/0    S+   21:21   0:00 grep --color=auto cass
{CODE}
                
> sudo /etc/init.d/cassandra stop and restart don't work on Debian 6
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-3477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>            Reporter: Joaquin Casares
>            Assignee: paul cannon
>            Priority: Minor
>             Fix For: 1.0.3
>
>
> The restart command keeps failing and never passes.
> The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.
> Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CASSANDRA-3477) cassandra takes too long to shut down when told to quit

Posted by "Jonathan Ellis (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis resolved CASSANDRA-3477.
---------------------------------------

    Resolution: Cannot Reproduce

Reopened/re-resolved b/c that is actually a different issue.
                
> cassandra takes too long to shut down when told to quit
> -------------------------------------------------------
>
>                 Key: CASSANDRA-3477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Joaquin Casares
>            Priority: Minor
>
> The restart command keeps failing and never passes.
> The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.
> Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-3477) sudo /etc/init.d/cassandra stop and restart don't work on Debian 6

Posted by "Jonathan Ellis (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-3477:
--------------------------------------

      Component/s: Packaging
         Priority: Minor  (was: Major)
    Fix Version/s: 1.0.3
         Assignee: paul cannon
    
> sudo /etc/init.d/cassandra stop and restart don't work on Debian 6
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-3477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>            Reporter: Joaquin Casares
>            Assignee: paul cannon
>            Priority: Minor
>             Fix For: 1.0.3
>
>
> The restart command keeps failing and never passes.
> The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.
> Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CASSANDRA-3477) sudo /etc/init.d/cassandra stop and restart don't work on Debian 6

Posted by "Joaquin Casares (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13148025#comment-13148025 ] 

Joaquin Casares edited comment on CASSANDRA-3477 at 11/10/11 9:29 PM:
----------------------------------------------------------------------

On another machine:
{CODE}
root@jcasares-Ubuntu-11:~# cat /var/run/cassandra.pid
5232
root@jcasares-Ubuntu-11:~# ps auwx | grep cass
root      5231  0.0  0.0  18892   396 ?        Ss   12:07   0:00 jsvc.exec -user cassandra -home /usr/lib/jvm/java-6-sun/jre/bin/../ ...
root@jcasares-Ubuntu-11:~# sudo /usr/bin/jsvc -stop -verbose -home /usr/lib/jvm/java-6-sun/jre/bin/../ \
> >     -pidfile /var/run/cassandra.pid org.apache.cassandra.thrift.CassandraDaemon
root@jcasares-Ubuntu-11:~# echo $?
255
root@jcasares-Ubuntu-11:~# ps auwx | grep cass
root      5231  0.0  0.0  18892   396 ?        Ss   12:07   0:00 jsvc.exec -user cassandra -home /usr/lib/jvm/java-6-sun/jre/bin/../ ...
{CODE}

This keeps going in a loop every time I execute.
                
      was (Author: j.casares):
    On another machine:
{CODE}
root@jcasares-Ubuntu-11:~# cat /var/run/cassandra.pid
5232
root@jcasares-Ubuntu-11:~# ps auwx | grep cass
root      5231  0.0  0.0  18892   396 ?        Ss   12:07   0:00 jsvc.exec -user cassandra -home /usr/lib/jvm/java-6-sun/jre/bin/../ ...
root@jcasares-Ubuntu-11:~# sudo /usr/bin/jsvc -stop -verbose -home /usr/lib/jvm/java-6-sun/jre/bin/../ \
> >     -pidfile /var/run/cassandra.pid org.apache.cassandra.thrift.CassandraDaemon
root@jcasares-Ubuntu-11:~# echo $?
255
root@jcasares-Ubuntu-11:~# ps auwx | grep cassroot      5231  0.0  0.0  18892   396 ?        Ss   12:07   0:00 jsvc.exec -user cassandra -home /usr/lib/jvm/java-6-sun/jre/bin/../ ...
{CODE}

This keeps going in a loop every time I execute.
                  
> sudo /etc/init.d/cassandra stop and restart don't work on Debian 6
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-3477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>            Reporter: Joaquin Casares
>            Assignee: paul cannon
>            Priority: Minor
>             Fix For: 1.0.3
>
>
> The restart command keeps failing and never passes.
> The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.
> Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-3477) cassandra takes too long to shut down when told to quit

Posted by "paul cannon (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

paul cannon updated CASSANDRA-3477:
-----------------------------------

    Component/s:     (was: Packaging)
                 Core
        Summary: cassandra takes too long to shut down when told to quit  (was: sudo /etc/init.d/cassandra stop and restart don't work on Debian 6)

Ah, looks like it is indeed common practice to print messages when restarting, regardless of $VERBOSE. No, the way 'stop' works is correct as is- you really should turn on VERBOSE=yes if you want to see those messages.

So our problem is that Cassandra is taking a long time to shut itself down. Retitling.
                
> cassandra takes too long to shut down when told to quit
> -------------------------------------------------------
>
>                 Key: CASSANDRA-3477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Joaquin Casares
>            Assignee: paul cannon
>            Priority: Minor
>             Fix For: 1.0.3
>
>
> The restart command keeps failing and never passes.
> The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.
> Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3477) cassandra takes too long to shut down when told to quit

Posted by "Joaquin Casares (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13148098#comment-13148098 ] 

Joaquin Casares commented on CASSANDRA-3477:
--------------------------------------------

I realized late in the game that I was pulling out of stale repos. I was using Cassandra 1.0.0 and am now using Cassandra 1.0.2 and everything looks good.

I'm sorry for the added hassle. I'll be leaving this ticket open just in case I see this bug come back, but should know definitely by the weekend.

Primary tests on Ubuntu 11.04 using stop and restart look good.

Thanks.
                
> cassandra takes too long to shut down when told to quit
> -------------------------------------------------------
>
>                 Key: CASSANDRA-3477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Joaquin Casares
>            Assignee: paul cannon
>            Priority: Minor
>             Fix For: 1.0.3
>
>
> The restart command keeps failing and never passes.
> The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.
> Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3477) sudo /etc/init.d/cassandra stop and restart don't work on Debian 6

Posted by "paul cannon (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13148029#comment-13148029 ] 

paul cannon commented on CASSANDRA-3477:
----------------------------------------

bq. Could we have it do that similar to the restart command?

Do what similar to the restart command? Do you mean print an error message? restart shouldn't be printing an error message either, unless {{VERBOSE=yes}}.

bq. This keeps going in a loop every time I execute.

Anything in the cassandra logs corresponding to the stop instruction?
                
> sudo /etc/init.d/cassandra stop and restart don't work on Debian 6
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-3477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>            Reporter: Joaquin Casares
>            Assignee: paul cannon
>            Priority: Minor
>             Fix For: 1.0.3
>
>
> The restart command keeps failing and never passes.
> The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.
> Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3477) sudo /etc/init.d/cassandra stop and restart don't work on Debian 6

Posted by "Jonathan Ellis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13147691#comment-13147691 ] 

Jonathan Ellis commented on CASSANDRA-3477:
-------------------------------------------

sounds to me like we just need to wait for the old process to really finish on stop
                
> sudo /etc/init.d/cassandra stop and restart don't work on Debian 6
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-3477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>            Reporter: Joaquin Casares
>            Assignee: paul cannon
>            Priority: Minor
>             Fix For: 1.0.3
>
>
> The restart command keeps failing and never passes.
> The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.
> Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3477) sudo /etc/init.d/cassandra stop and restart don't work on Debian 6

Posted by "paul cannon (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13147812#comment-13147812 ] 

paul cannon commented on CASSANDRA-3477:
----------------------------------------

Joaquin- try running the initscript as {{sh -x /etc/init.d/cassandra stop}} (or {{restart}}) to see what it's doing. I expect in both cases it's just waiting for the cassandra process to stop, but that cassandra really is taking a long time to stop.
                
> sudo /etc/init.d/cassandra stop and restart don't work on Debian 6
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-3477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>            Reporter: Joaquin Casares
>            Assignee: paul cannon
>            Priority: Minor
>             Fix For: 1.0.3
>
>
> The restart command keeps failing and never passes.
> The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.
> Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CASSANDRA-3477) sudo /etc/init.d/cassandra stop and restart don't work on Debian 6

Posted by "Joaquin Casares (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13148025#comment-13148025 ] 

Joaquin Casares edited comment on CASSANDRA-3477 at 11/10/11 9:28 PM:
----------------------------------------------------------------------

On another machine:
{CODE}
root@jcasares-Ubuntu-11:~# cat /var/run/cassandra.pid
5232
root@jcasares-Ubuntu-11:~# ps auwx | grep cass
root      5231  0.0  0.0  18892   396 ?        Ss   12:07   0:00 jsvc.exec -user cassandra -home /usr/lib/jvm/java-6-sun/jre/bin/../ ...
root@jcasares-Ubuntu-11:~# sudo /usr/bin/jsvc -stop -verbose -home /usr/lib/jvm/java-6-sun/jre/bin/../ \
> >     -pidfile /var/run/cassandra.pid org.apache.cassandra.thrift.CassandraDaemon
root@jcasares-Ubuntu-11:~# echo $?
255
root@jcasares-Ubuntu-11:~# ps auwx | grep cassroot      5231  0.0  0.0  18892   396 ?        Ss   12:07   0:00 jsvc.exec -user cassandra -home /usr/lib/jvm/java-6-sun/jre/bin/../ ...
{CODE}

This keeps going in a loop every time I execute.
                
      was (Author: j.casares):
    On another machine:
{CODE}
root@jcasares-Ubuntu-11:~# ps auwx | grep cass
root      5231  0.0  0.0  18892   396 ?        Ss   12:07   0:00 jsvc.exec -user cassandra -home /usr/lib/jvm/java-6-sun/jre/bin/../ ...
root@jcasares-Ubuntu-11:~# sudo /usr/bin/jsvc -stop -verbose -home /usr/lib/jvm/java-6-sun/jre/bin/../ \
> >     -pidfile /var/run/cassandra.pid org.apache.cassandra.thrift.CassandraDaemon
root@jcasares-Ubuntu-11:~# echo $?
255
root@jcasares-Ubuntu-11:~# ps auwx | grep cassroot      5231  0.0  0.0  18892   396 ?        Ss   12:07   0:00 jsvc.exec -user cassandra -home /usr/lib/jvm/java-6-sun/jre/bin/../ ...
{CODE}

This keeps going in a loop every time I execute.
                  
> sudo /etc/init.d/cassandra stop and restart don't work on Debian 6
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-3477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>            Reporter: Joaquin Casares
>            Assignee: paul cannon
>            Priority: Minor
>             Fix For: 1.0.3
>
>
> The restart command keeps failing and never passes.
> The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.
> Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (CASSANDRA-3477) cassandra takes too long to shut down when told to quit

Posted by "Jonathan Ellis (Reopened) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis reopened CASSANDRA-3477:
---------------------------------------

    
> cassandra takes too long to shut down when told to quit
> -------------------------------------------------------
>
>                 Key: CASSANDRA-3477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Joaquin Casares
>            Priority: Minor
>
> The restart command keeps failing and never passes.
> The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.
> Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3477) sudo /etc/init.d/cassandra stop and restart don't work on Debian 6

Posted by "Joaquin Casares (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13147624#comment-13147624 ] 

Joaquin Casares commented on CASSANDRA-3477:
--------------------------------------------

Also just saw restart fail on both Ubuntu 10.04 and 11.04.

'stop' also seemed to have worked in 11.04, but I had to do it twice in order for it to really stop.
                
> sudo /etc/init.d/cassandra stop and restart don't work on Debian 6
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-3477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>            Reporter: Joaquin Casares
>            Assignee: paul cannon
>            Priority: Minor
>             Fix For: 1.0.3
>
>
> The restart command keeps failing and never passes.
> The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.
> Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3477) sudo /etc/init.d/cassandra stop and restart don't work on Debian 6

Posted by "Joaquin Casares (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13148025#comment-13148025 ] 

Joaquin Casares commented on CASSANDRA-3477:
--------------------------------------------

On another machine:
{CODE}
root@jcasares-Ubuntu-11:~# ps auwx | grep cass
root      5231  0.0  0.0  18892   396 ?        Ss   12:07   0:00 jsvc.exec -user cassandra -home /usr/lib/jvm/java-6-sun/jre/bin/../ ...
root@jcasares-Ubuntu-11:~# sudo /usr/bin/jsvc -stop -verbose -home /usr/lib/jvm/java-6-sun/jre/bin/../ \
> >     -pidfile /var/run/cassandra.pid org.apache.cassandra.thrift.CassandraDaemon
root@jcasares-Ubuntu-11:~# echo $?
255
root@jcasares-Ubuntu-11:~# ps auwx | grep cassroot      5231  0.0  0.0  18892   396 ?        Ss   12:07   0:00 jsvc.exec -user cassandra -home /usr/lib/jvm/java-6-sun/jre/bin/../ ...
{CODE}

This keeps going in a loop every time I execute.
                
> sudo /etc/init.d/cassandra stop and restart don't work on Debian 6
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-3477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>            Reporter: Joaquin Casares
>            Assignee: paul cannon
>            Priority: Minor
>             Fix For: 1.0.3
>
>
> The restart command keeps failing and never passes.
> The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.
> Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3477) sudo /etc/init.d/cassandra stop and restart don't work on Debian 6

Posted by "paul cannon (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13148011#comment-13148011 ] 

paul cannon commented on CASSANDRA-3477:
----------------------------------------

A return value of 2 from the initscript stop routine means that jsvc failed to stop the daemon.

(So "the stop command seems to have completed successfully" is inaccurate; a nonzero return value is the correct way for an initscript to indicate failure. If you want to see messages about progress/success/failure from initscripts, you should set {{VERBOSE=yes}} in {{/etc/default/rcS}}.)

At any rate, it looks like the bit to debug is jsvc. Can you try stopping the daemon with:

{noformat}
sudo /usr/bin/jsvc -stop -verbose -home /usr/lib/jvm/java-6-sun/jre/bin/../ \
    -pidfile /var/run/cassandra.pid org.apache.cassandra.thrift.CassandraDaemon
{noformat}

..then see what exit code it gives, and see whether cassandra actually stops.
                
> sudo /etc/init.d/cassandra stop and restart don't work on Debian 6
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-3477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>            Reporter: Joaquin Casares
>            Assignee: paul cannon
>            Priority: Minor
>             Fix For: 1.0.3
>
>
> The restart command keeps failing and never passes.
> The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.
> Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3477) cassandra takes too long to shut down when told to quit

Posted by "Joaquin Casares (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13168608#comment-13168608 ] 

Joaquin Casares commented on CASSANDRA-3477:
--------------------------------------------

Sure thing. Haven't seen it on 1.05 yet.

Thanks!
                
> cassandra takes too long to shut down when told to quit
> -------------------------------------------------------
>
>                 Key: CASSANDRA-3477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Joaquin Casares
>            Assignee: paul cannon
>            Priority: Minor
>             Fix For: 1.0.6
>
>
> The restart command keeps failing and never passes.
> The stop command seems to have completed successfully, but the processes is still listed when I run 'ps auwx | grep cass'.
> Using the Debian6 images on Rackspace. 2 nodes are definitely showing the same behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira