我对卡桑德拉很陌生。我有一个单节点集群运行了几天没有问题,但今天它开始忽略我的一些 CQL 命令。 SELECT
s 工作正常,但如果我DROP TABLE foo;
从 cqlsh 运行,则什么也不会发生。暂停半秒后,它让我回到提示符,但桌子没有被丢弃。使用创建索引也是如此CREATE INDEX
。
我在虚拟机中运行,在 Ubuntu 12.04 上使用 OpenStax 的 Cassandra 发行版。
我检查了 Cassandra 日志,当我运行 CREATE INDEX 时肯定会得到输出,但没有明显的错误:
CREATE INDEX number_uri_index ON numbers (number);
产生:
INFO [MigrationStage:1] 2012-07-25 14:25:59,120 ColumnFamilyStore.java (line 643) Enqueuing flush of Memtable-schema_columnfamilies@15955724(1212/1515 serialized/live bytes, 20 ops)
INFO [FlushWriter:5] 2012-07-25 14:25:59,122 Memtable.java (line 266) Writing Memtable-schema_columnfamilies@15955724(1212/1515 serialized/live bytes, 20 ops)
INFO [FlushWriter:5] 2012-07-25 14:25:59,139 Memtable.java (line 307) Completed flushing /var/lib/cassandra/data/system/schema_columnfamilies/system-schema_columnfamilies-hd-50-Data.db (1267 bytes) for commitlog position ReplayPosition(segmentId=140485087964, position=8551)
INFO [MigrationStage:1] 2012-07-25 14:25:59,141 ColumnFamilyStore.java (line 643) Enqueuing flush of Memtable-schema_columns@7576227(320/400 serialized/live bytes, 5 ops)
INFO [FlushWriter:5] 2012-07-25 14:25:59,141 Memtable.java (line 266) Writing Memtable-schema_columns@7576227(320/400 serialized/live bytes, 5 ops)
INFO [FlushWriter:5] 2012-07-25 14:25:59,172 Memtable.java (line 307) Completed flushing /var/lib/cassandra/data/system/schema_columns/system-schema_columns-hd-46-Data.db (367 bytes) for commitlog position ReplayPosition(segmentId=140485087964, position=8551)