You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Edmond Lau (JIRA)" <ji...@apache.org> on 2009/10/29 23:01:59 UTC
[jira] Created: (CASSANDRA-524) can't write with consistency level
of one after some nodes fail
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: trunk@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.
[jira] Updated: (CASSANDRA-524) can't write with consistency level
of one after some nodes fail
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-524:
-------------------------------------
Attachment: 524.patch
> 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: trunk@r830776
> Reporter: Edmond Lau
> Fix For: 0.5
>
> Attachments: 524.patch
>
>
> 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.
[jira] Commented: (CASSANDRA-524) can't write with consistency
level of one after some nodes fail
Posted by "Edmond Lau (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12772005#action_12772005 ]
Edmond Lau commented on CASSANDRA-524:
--------------------------------------
Patched and verified the fix.
> 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: trunk@r830776
> Reporter: Edmond Lau
> Assignee: Jonathan Ellis
> Fix For: 0.5
>
> Attachments: 524.patch
>
>
> 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.
[jira] Assigned: (CASSANDRA-524) can't write with consistency level
of one after some nodes fail
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis reassigned CASSANDRA-524:
----------------------------------------
Assignee: Jonathan Ellis
> 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: trunk@r830776
> Reporter: Edmond Lau
> Assignee: Jonathan Ellis
> Fix For: 0.5
>
> Attachments: 524.patch
>
>
> 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.
[jira] Resolved: (CASSANDRA-524) can't write with consistency level
of one after some nodes fail
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis resolved CASSANDRA-524.
--------------------------------------
Resolution: Fixed
committed
> 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: trunk@r830776
> Reporter: Edmond Lau
> Assignee: Jonathan Ellis
> Fix For: 0.5
>
> Attachments: 524.patch
>
>
> 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.
[jira] Commented: (CASSANDRA-524) can't write with consistency
level of one after some nodes fail
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12772241#action_12772241 ]
Hudson commented on CASSANDRA-524:
----------------------------------
Integrated in Cassandra #244 (See [http://hudson.zones.apache.org/hudson/job/Cassandra/244/])
fix hinted handoff map computation
patch by jbellis; tested by Edmond Lau for
> 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: trunk@r830776
> Reporter: Edmond Lau
> Assignee: Jonathan Ellis
> Fix For: 0.5
>
> Attachments: 524.patch
>
>
> 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.