[英]cassandra - queries to one table timing out…always
使用apache cassandra 2.1 rc4 ...使用datastax c#驅動程序+實體上下文nuget包自動創建模式。 它創建了相關的表,通過cqlsh> describe一切正常。 在開發中心中,架構顯示良好。 然而:
那里幾乎沒有數據-100行左右。 對於有問題的表,
SELECT * FROM tbl;
超時。
SELECT * FROM tbl where pk1='foo' and pk2='bar'
立即返回0行。 表中似乎沒有任何數據(很有意義...所有插入均失敗)。
將密鑰空間的復制因子從一增加到三個(4個節點群集,所有節點都正常)。 在鍵空間上進行全面修復(再次...那里幾乎沒有數據)。 似乎是永遠的。
有任何想法嗎?
更新:我將鍵空間的復制因子提高到3,進行了全面修復(似乎是無止境的),然后在所有節點上進行了滾動重啟(在進行全面修復時觸發了滾動重啟)。 這似乎已經解決了。 一定有些東西陷入了困境。 這是describe輸出:
CREATE TABLE vigil."tallyOrderScores" (
context text,
"orderRef" text,
"ruleId" int,
"ruleText" text,
score int,
PRIMARY KEY ((context, "orderRef"), "ruleId")
) WITH CLUSTERING ORDER BY ("ruleId" ASC)
AND bloom_filter_fp_chance = 0.01
AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}'
AND comment = ''
AND compaction = {'min_threshold': '4', 'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND dclocal_read_repair_chance = 0.1
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
您以前是否經營過舊的Cassandra? 在這種情況下,您可能需要運行nodetool upgradesstables: http ://docs.datastax.com/en/cassandra/2.1/cassandra/tools/toolsUpgradeSstables.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.