You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Kirk True (JIRA)" <ji...@apache.org> on 2019/07/24 23:05:00 UTC
[jira] [Comment Edited] (CASSANDRA-12001) nodetool stopdaemon
doesn't stop cassandra gracefully
[ https://issues.apache.org/jira/browse/CASSANDRA-12001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16892263#comment-16892263 ]
Kirk True edited comment on CASSANDRA-12001 at 7/24/19 11:04 PM:
-----------------------------------------------------------------
Not sure if this is still an issue as it doesn't reproduce in trunk (as of 07/24/2019).
After I run steps 1 and 2, I see this:
{code:java}
$ tree data/data/testdb/
data/data/testdb/
└── t2-50c0a350ae6611e9aeb7e9df185a05b8
├── backups
├── na-1-big-CompressionInfo.db
├── na-1-big-Data.db
├── na-1-big-Digest.crc32
├── na-1-big-Filter.db
├── na-1-big-Index.db
├── na-1-big-Statistics.db
├── na-1-big-Summary.db
└── na-1-big-TOC.txt
2 directories, 8 files
{code}
After I run steps 3 and 4, I see this:
{code:java}
$ tree data/data/testdb/
data/data/testdb/
└── t2-50c0a350ae6611e9aeb7e9df185a05b8
├── backups
├── na-1-big-CompressionInfo.db
├── na-1-big-Data.db
├── na-1-big-Digest.crc32
├── na-1-big-Filter.db
├── na-1-big-Index.db
├── na-1-big-Statistics.db
├── na-1-big-Summary.db
├── na-1-big-TOC.txt
├── na-2-big-CompressionInfo.db
├── na-2-big-Data.db
├── na-2-big-Digest.crc32
├── na-2-big-Filter.db
├── na-2-big-Index.db
├── na-2-big-Statistics.db
├── na-2-big-Summary.db
└── na-2-big-TOC.txt
2 directories, 16 files
{code}
This is all with default settings for Cassandra and the keyspace.
was (Author: kirktrue):
Not sure if this is still an issue as it doesn't reproduce in trunk (as of 07/24/2019).
After I run the steps 1 and 2, I see this:
{code:java}
$ tree data/data/testdb/
data/data/testdb/
└── t2-50c0a350ae6611e9aeb7e9df185a05b8
├── backups
├── na-1-big-CompressionInfo.db
├── na-1-big-Data.db
├── na-1-big-Digest.crc32
├── na-1-big-Filter.db
├── na-1-big-Index.db
├── na-1-big-Statistics.db
├── na-1-big-Summary.db
└── na-1-big-TOC.txt
2 directories, 8 files
{code}
After I run steps 3 and 4, I see this:
{code:java}
$ tree data/data/testdb/
data/data/testdb/
└── t2-50c0a350ae6611e9aeb7e9df185a05b8
├── backups
├── na-1-big-CompressionInfo.db
├── na-1-big-Data.db
├── na-1-big-Digest.crc32
├── na-1-big-Filter.db
├── na-1-big-Index.db
├── na-1-big-Statistics.db
├── na-1-big-Summary.db
├── na-1-big-TOC.txt
├── na-2-big-CompressionInfo.db
├── na-2-big-Data.db
├── na-2-big-Digest.crc32
├── na-2-big-Filter.db
├── na-2-big-Index.db
├── na-2-big-Statistics.db
├── na-2-big-Summary.db
└── na-2-big-TOC.txt
2 directories, 16 files
{code}
This is all with default settings for Cassandra and the keyspace.
> nodetool stopdaemon doesn't stop cassandra gracefully
> --------------------------------------------------------
>
> Key: CASSANDRA-12001
> URL: https://issues.apache.org/jira/browse/CASSANDRA-12001
> Project: Cassandra
> Issue Type: Bug
> Components: Tool/nodetool
> Environment: Ubuntu: Linux 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
> Cassandra Version :
> cassandra -v
> 2.1.2
> Reporter: Anshu Vajpayee
> Priority: Low
> Labels: lhf
>
> As per general opinion, nodetool stopdaemon should perform graceful shutdown rater than crash killing of cassandra daemon .
> It doesn't flush the memtables and also it doesn't stop the thrift and CQL connection interfaces before crashing/stopping the node. It directly calls SIGTERM on process as simple as kill -15/ctrl + c.
>
> 1. created a table like as below:
> cqlsh:test_ks> create table t2(id1 int, id2 text, primary key(id1));
> cqlsh:test_ks>
> cqlsh:test_ks> insert into t2(id1,id2) values (1,'a');
> cqlsh:test_ks> insert into t2(id1,id2) values (2,'a');
> cqlsh:test_ks> insert into t2(id1,id2) values (3,'a');
> cqlsh:test_ks> select * from t2;
> id1 | id2
> -----+-----
> 1 | a
> 2 | a
> 3 | a
> 2.Flush the memtable manually using nodetool flush
> student@cascor:~/node1/apache-cassandra-2.1.2/bin$ nodetool flush
> student@cascor:~/node1/apache-cassandra-2.1.2/bin$ cd ../data/data/test_ks/t2-a671f6b0319a11e6a91ae3263299699d/
> student@cascor:~/node1/apache-cassandra-2.1.2/data/data/test_ks/t2-a671f6b0319a11e6a91ae3263299699d$ ls -ltr
> total 36
> -rw-rw-r-- 1 student student 16 Jun 13 12:14 test_ks-t2-ka-1-Filter.db
> -rw-rw-r-- 1 student student 54 Jun 13 12:14 test_ks-t2-ka-1-Index.db
> -rw-rw-r-- 1 student student 93 Jun 13 12:14 test_ks-t2-ka-1-Data.db
> -rw-rw-r-- 1 student student 91 Jun 13 12:14 test_ks-t2-ka-1-TOC.txt
> -rw-rw-r-- 1 student student 80 Jun 13 12:14 test_ks-t2-ka-1-Summary.db
> -rw-rw-r-- 1 student student 4442 Jun 13 12:14 test_ks-t2-ka-1-Statistics.db
> -rw-rw-r-- 1 student student 10 Jun 13 12:14 test_ks-t2-ka-1-Digest.sha1
> -rw-rw-r-- 1 student student 43 Jun 13 12:14 test_ks-t2-ka-1-CompressionInfo.db
> 3. Make few more changes on table t2
> cqlsh:test_ks> insert into t2(id1,id2) values (5,'a');
> cqlsh:test_ks> insert into t2(id1,id2) values (6,'a');
> cqlsh:test_ks> insert into t2(id1,id2) values (7,'a');
> cqlsh:test_ks> insert into t2(id1,id2) values (8,'a');
> cqlsh:test_ks> select * from t2;
> id1 | id2
> -----+-----
> 5 | a
> 1 | a
> 8 | a
> 2 | a
> 7 | a
> 6 | a
> 3 | a
> 4. Stopping the node using nodetool stopdaemon
> student@cascor:~$ nodetool stopdaemon
> Cassandra has shutdown.
> error: Connection refused
> -- StackTrace --
> java.net.ConnectException: Connection refused
> 5. No new version of SStables . Reason stopdaemon doesn't run nodetool flush/drain before actually stopping daemon.
> student@cascor:~/node1/apache-cassandra-2.1.2/data/data/test_ks/t2-a671f6b0319a11e6a91ae3263299699d$ ls -ltr
> total 36
> -rw-rw-r-- 1 student student 16 Jun 13 12:14 test_ks-t2-ka-1-Filter.db
> -rw-rw-r-- 1 student student 54 Jun 13 12:14 test_ks-t2-ka-1-Index.db
> -rw-rw-r-- 1 student student 93 Jun 13 12:14 test_ks-t2-ka-1-Data.db
> -rw-rw-r-- 1 student student 91 Jun 13 12:14 test_ks-t2-ka-1-TOC.txt
> -rw-rw-r-- 1 student student 80 Jun 13 12:14 test_ks-t2-ka-1-Summary.db
> -rw-rw-r-- 1 student student 4442 Jun 13 12:14 test_ks-t2-ka-1-Statistics.db
> -rw-rw-r-- 1 student student 10 Jun 13 12:14 test_ks-t2-ka-1-Digest.sha1
> -rw-rw-r-- 1 student student 43 Jun 13 12:14 test_ks-t2-ka-1-CompressionInfo.db
> student@cascor:~/node1/apache-cassandra-2.1.2/data/data/test_ks/t2-a671f6b0319a11e6a91ae3263299699d$
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org