Hi
Inside org.apache.cassandra.thrift,  in CassandraServer.java, it seems
that read operation for Consistency level  "all" is not supported.

Is this the case?
Does this mean there is no way to read from all the copy?  if there
are 3 copies of data, I would like to read all of them.

I gave the code snippet below.



  protected Map<String, ColumnFamily>
readColumnFamily(List<ReadCommand> commands, ConsistencyLevel
consistency_level)
    throws InvalidRequestException, UnavailableException, TimedOutException
    {
        // TODO - Support multiple column families per row, right now
row only contains 1 column family
        Map<String, ColumnFamily> columnFamilyKeyMap = new
HashMap<String,ColumnFamily>();

        if (consistency_level == ConsistencyLevel.ZERO)
        {
            throw new InvalidRequestException("Consistency level zero
may not be applied to read operations");
        }
        if (consistency_level == ConsistencyLevel.ALL)
        {
            throw new InvalidRequestException("Consistency level all
is not yet supported on read operations");
        }
        if (consistency_level == ConsistencyLevel.ANY)
        {
            throw new InvalidRequestException("Consistency level any
may not be applied to read operations");
        }



thanks
Maifi

Reply via email to