我與卡桑德拉有一個奇怪的行爲。每當我嘗試通過id找到一些行時,它會返回null(通過cqlsh控制檯或客戶端),但是如果通過另一個字段找到該寄存器,則該寄存器會存在。 例如: 在卡桑德拉找到身份證不起作用
我的表模式:
CREATE TABLE IF NOT EXISTS user_aggregation_new.user_aggregation_new (
userid timeuuid PRIMARY KEY,
fullname text,
birthdate text,
password text,
mobile text,
address frozen <address>,
thumbs map<text, text>,
driverlicense frozen <driverlicense>,
cpf text,
facebookid text,
membershipsince timestamp,
rating double,
email text,
status text,
facebookemail boolean,
bankaccount list<frozen <bankaccount>>,
dateupdated timestamp,
version bigint
);
卡桑德拉版本:3.7
這究竟是爲什麼?
你在每個DC中有多少個節點?你的密鑰空間的RF和Class名稱是什麼? –
使用以下命令在cqlsh中更改默認一致性級別: cqlsh:test> CONSISTENCY; (檢查您的默認一致性級別) cqlsh:test> CONSISTENCY ALL; (將其更改爲ALL) 然後檢查您是否通過相同的查詢獲取數據。 – Chaity