nosql - Does select all records work in cassandra when one node fails in RF=1 scenario? -
if have 3 nodes , have rf=1 , 1 node unavailable. if use select * table
or select * table secondary_index=x
, fail or return partial data?
you have specified replication factor 1..i guess fail either of cases,if partition obtained belongs node down.
case 1: doing select of partitions column family. if partitions split across 2 available nodes, read safe. if 1 of row partition there in unavailable node, bound exception.
case 2: agreed secondary indexes local in order apply secondary index without partition key, coordinator has go around local indexes of nodes find out(if not wrong). , practically end in sure shot exception cassandra may assume partition in down node may contain secondary index value attached it.
my suggestion : dont use replication factor or querying pattern if going production set up!!
Comments
Post a Comment