我將我的列族gcgraceseconds設置爲0; 但劇照rowkey不會被刪除,它仍然在我的專欄的家人從cassandra cli刪除行鍵
create column family workInfo123
with column_type = 'Standard'
and comparator = 'UTF8Type'
and default_validation_class = 'UTF8Type'
and key_validation_class = 'UTF8Type'
and read_repair_chance = 0.1
and dclocal_read_repair_chance = 0.0
and populate_io_cache_on_flush = true
and gc_grace = 0
and min_compaction_threshold = 4
and max_compaction_threshold = 32
and replicate_on_write = true
and compaction_strategy = 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy'
and caching = 'KEYS_ONLY'
and default_time_to_live = 0
and speculative_retry = 'NONE'
and compression_options = {'sstable_compression' : 'org.apache.cassandra.io.compress.LZ4Compressor'}
and index_interval = 128;
看到的
[[email protected]] list workInfo123;
Using default limit of 100
Using default cell limit of 100
-------------------
RowKey: a
-------------------
RowKey: xx
2 Rows Returned.
Elapsed time: 17 msec(s).
認爲下面我使用卡桑德拉-cli 我是不是應該改變任何東西
UPDATE : -
使用後./nodetool -host 127.0.0.1 compact
[[email protected]] list workInfo123;
Using default limit of 100
Using default cell limit of 100
-------------------
RowKey: xx
2 Rows Returned.
Elapsed time: 11 msec(s).
爲什麼xx
仍然是??
因此,鍵仍然出現,但刪除行後列不見了?在運行'nodetool flush'和'nodetool compact '後,該行是否完全消失? –
Ralf
'nodetool'是'/bin'中它自己的程序。它不是'cassandra-cli'命令。 –
Ralf
@Ralf'./nodetool flush winoriatest workInfo123'和'./nodetool -host 127.0.0.1 compact'壓縮表,但'rowkey xx'仍然存在,但'rowkey a'消失了。 'rowkey a'是三四天大的條目,那麼'rowkey xx'是否會因爲這個而發生? –