can't write with consistency level of one after some nodes fail
---------------------------------------------------------------
Key: CASSANDRA-524
URL: https://issues.apache.org/jira/browse/CASSANDRA-524
Project: Cassandra
Issue Type: Bug
Components: Core
Affects Versions: 0.4, 0.5
Environment: tr...@r830776
Reporter: Edmond Lau
Fix For: 0.5
Start a 3 node cluster with a replication factor of 2. Then take down two
nodes.
If I write with a consistency level of ONE on any key, I get an
InvalidRequestException:
ERROR [pool-1-thread-45] 2009-10-29 21:27:10,120 StorageProxy.java
(line 183) error writing key 1
InvalidRequestException(why:Cannot block for less than one replica)
at
org.apache.cassandra.service.QuorumResponseHandler.<init>(QuorumResponseHandler.java:52)
at
org.apache.cassandra.locator.AbstractReplicationStrategy.getResponseHandler(AbstractReplicationStrategy.java:64)
at
org.apache.cassandra.service.StorageService.getResponseHandler(StorageService.java:869)
at
org.apache.cassandra.service.StorageProxy.insertBlocking(StorageProxy.java:162)
at
org.apache.cassandra.service.CassandraServer.doInsert(CassandraServer.java:473)
at
org.apache.cassandra.service.CassandraServer.insert(CassandraServer.java:424)
at
org.apache.cassandra.service.Cassandra$Processor$insert.process(Cassandra.java:819)
at
org.apache.cassandra.service.Cassandra$Processor.process(Cassandra.java:624)
at
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:253)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Oddly, a write with a consistency level of QUORUM succeeds for certain
keys (but fails with others) even though I only have one live node.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.