Commit Graph

103 Commits

Author SHA1 Message Date
Eric Evans e649d0f4d5 separate assignment of current keyspace from login()
This changeset is based on Todd Blose's patch, with some changes:

 * Fixed some style nits, (braches on newlines, etc)
 * Reinstated debug log statement in CassandraServer.login()
 * Reinstated css_.debug test when printing stacktrace in the CLI
 * Removed unused _login() function from system tests
 * Updated contrib/utils/service/CassandraServiceTest for login() change
 * Disabled system_add_keyspace() when authentication is enabled (login()
   requires a keyspace).
 * Reset access level (force a new login) when keyspace is changed using
   set_keyspace().

Patch by Todd Blose and eevans for CASSANDRA-1022

git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@940127 13f79535-47bb-0310-9956-ffa450edef68
2010-05-02 00:06:31 +00:00
Jonathan Ellis 87b1b0d52f r/m multiget
patch by jbellis; reviewed by Brandon Williams for CASSANDRA-739

git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@938696 13f79535-47bb-0310-9956-ffa450edef68
2010-04-27 22:12:27 +00:00
Eric Evans cb3455f30e rm keyspace argument from thrift methods
This is Todd Blose's patch (CASSANDRA-714.patch.new) from 4/15, rebased
by me to trunk. Any errors introduced are mine and mine alone.

Patch by eevans and Todd Blose for CASSANDRA-714

git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@938170 13f79535-47bb-0310-9956-ffa450edef68
2010-04-26 18:18:54 +00:00
Jonathan Ellis 71c51f11dd add row cache preload option
patch by Vijay Parthasarathy and jbellis for CASSANDRA-946

git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@937591 13f79535-47bb-0310-9956-ffa450edef68
2010-04-24 04:30:48 +00:00
Jonathan Ellis 034619317a r/m now-unused snitch_class from KsDef thrift struct. patch by jbellis for CASSANDRA-986
git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@936495 13f79535-47bb-0310-9956-ffa450edef68
2010-04-21 20:39:28 +00:00
Gary Dusbabek bc83a65a61 get_count requires SlicePredicate. adds multi_get_count. Patch by Sylvain Lebresne, reviewed by Gary Dusbabek. CASSANDRA-744
git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@935946 13f79535-47bb-0310-9956-ffa450edef68
2010-04-20 14:51:57 +00:00
Jonathan Ellis a5fa451c2b avoid treating ttl <= 0 the same as ttl not specified
patch by jbellis; reviewed by Sylvain Lebresne for CASSANDRA-1003

git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@935709 13f79535-47bb-0310-9956-ffa450edef68
2010-04-19 19:09:06 +00:00
Jonathan Ellis 16ba403a0f Add ExpiringColumn and Column ttl.
patch by Sylvain Lebresne; reviewed by jbellis for CASSANDRA-699

git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@935088 13f79535-47bb-0310-9956-ffa450edef68
2010-04-16 22:04:46 +00:00
Gary Dusbabek f3a4e1736b convert thrift to byte keys. Patch by Stu Hood, reviewed by Gary Dusbabek. CASSANDRA-767
git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@934155 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 19:53:23 +00:00
Eric Evans fe34d59766 CASSANDRA-965 remove deprecated methods, update dependent code
* removed method defs and regenerated thrift code
 * removed CassandraServer implementations
 * updated cassandra-cli to call new (describe_*) methods
 * updated RingCache to use describe_ring()
 * removed "show config file" from cli (no thrift access for this anymore).
 * updated release notes.

Patch by eevans for CASSANDRA-965

git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@932072 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 19:27:25 +00:00
Gary Dusbabek 201b7599b2 thrift changes. Patch by Gary Dusbabek, reviewed by Jonthan Ellis. CASSANDRA-827
git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@931201 13f79535-47bb-0310-9956-ffa450edef68
2010-04-06 16:02:10 +00:00
Eric Evans ef749086b0 genavro schema file (not to be used until AVRO-494)
Patch by eevans

git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@930904 13f79535-47bb-0310-9956-ffa450edef68
2010-04-05 17:01:34 +00:00
Eric Evans 8e5dba1851 batch_mutate() rpc implementation
Patch by eevans

git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@930903 13f79535-47bb-0310-9956-ffa450edef68
2010-04-05 17:01:29 +00:00
Eric Evans cb0415d424 ColumnParent schema and record factory method
Patch by eevans

git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@930902 13f79535-47bb-0310-9956-ffa450edef68
2010-04-05 17:01:20 +00:00
Eric Evans 45cad8ca3e avro protocol schema changes for batch_mutate()
Patch by eevans

git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@930901 13f79535-47bb-0310-9956-ffa450edef68
2010-04-05 17:01:15 +00:00
Eric Evans 8fb1d3b042 updated api version string for CASSANDRA-900
Patch by eevans for CASSANDRA-900

git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@927099 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 16:02:37 +00:00
Eric Evans 059b0066cd access levels for Thrift authorization
Patch by Ted Zlatanov and eevans for CASSANDRA-900

git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@926388 13f79535-47bb-0310-9956-ffa450edef68
2010-03-22 23:11:16 +00:00
Eric Evans 1f9dd393f1 regenerated thrift code to include new enum
Patch by eevans and Ted Zlatanov for CASSANDRA-900

git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@926386 13f79535-47bb-0310-9956-ffa450edef68
2010-03-22 23:11:12 +00:00
Jonathan Ellis 405524ee6d merge from 0.6
git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@925428 13f79535-47bb-0310-9956-ffa450edef68
2010-03-19 21:22:37 +00:00
Jonathan Ellis fe50b493c5 merge from 0.6
git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@924885 13f79535-47bb-0310-9956-ffa450edef68
2010-03-18 16:28:00 +00:00
Jonathan Ellis 7d2115bf8b add optional bitmask matching to SliceRange. patch by Ted Zlatanov; reviewed by jbellis for CASSANDRA-764
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@918844 13f79535-47bb-0310-9956-ffa450edef68
2010-03-04 03:42:05 +00:00
Jonathan Ellis 2b69c401cb merge from 0.6
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@917685 13f79535-47bb-0310-9956-ffa450edef68
2010-03-01 20:02:34 +00:00
Eric Evans b43c78520e merged to 0.6 branch
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@915430 13f79535-47bb-0310-9956-ffa450edef68
2010-02-23 16:58:58 +00:00
Johan Oskarsson 713710b5fe Merge with 0.6 branch
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@915376 13f79535-47bb-0310-9956-ffa450edef68
2010-02-23 15:17:42 +00:00
Jonathan Ellis 43b86fe61f sub splits
patch by jbellis; reviewed by Stu Hood for CASSANDRA-342

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@909631 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 22:02:44 +00:00
Jonathan Ellis 2c6948cb0a expose token-based range queries to thrift
patch by jbellis; reviewed by Stu Hood for CASSANDRA-775

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@909617 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 21:42:03 +00:00
Jonathan Ellis 424742134d r/m gen-py, committed accidentally
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@907710 13f79535-47bb-0310-9956-ffa450edef68
2010-02-08 16:02:07 +00:00
Jonathan Ellis c325fcab72 expose describe_ methods replacing the get_*_property ones. add TokenRange struct for describe_ring.
patch by jbellis; reviewed by Stu Hood for CASSANDRA-736

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@907705 13f79535-47bb-0310-9956-ffa450edef68
2010-02-08 15:57:45 +00:00
Eric Evans f91c7d318d reorganize thrift code generation to match avro
Patch by eevans

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@904545 13f79535-47bb-0310-9956-ffa450edef68
2010-01-29 16:24:19 +00:00
Eric Evans 1cd17032ea avro rpc schema and code generation
Patch by eevans

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@904542 13f79535-47bb-0310-9956-ffa450edef68
2010-01-29 16:23:54 +00:00
Eric Evans 542bd7904d refactor thrift-specific code ...server -> ...thrift
This was mostly an IDE-driven effort.

Patch by eevans

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@904540 13f79535-47bb-0310-9956-ffa450edef68
2010-01-29 16:24:28 +00:00
Jonathan Ellis 3bf9c81577 update CHANGELOG, NEWS, and thrift version string. patch by jbellis
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@904536 13f79535-47bb-0310-9956-ffa450edef68
2010-01-29 16:01:59 +00:00
Gary Dusbabek 0a06292663 Add ConsistencyLevel.ANY for writes. Patch by Gary Dusbabek, reviewed by Jonathan Ellis. CASSANDRA-687
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@902140 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 16:04:10 +00:00
Jonathan Ellis 5c7f127a27 update CHANGES for trunk
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@901243 13f79535-47bb-0310-9956-ffa450edef68
2010-01-20 15:44:18 +00:00
Gary Dusbabek ea2eded3b8 remove get_key_rang. Patch by Gary Dusbabek, reviewed by Jonathan Ellis. CASSANDRA-710
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@901207 13f79535-47bb-0310-9956-ffa450edef68
2010-01-20 13:57:49 +00:00
Eric Evans 2f0e62c1a8 authentication and authorization functions
Patch by Ted Zlatanov; reviewed by eevans for CASSANDRA-547

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@900644 13f79535-47bb-0310-9956-ffa450edef68
2010-01-19 02:10:41 +00:00
Eric Evans 3a5b425446 update interface def for new API versioning policy
Patch by eevans; reviewed by jbellis for CASSANDRA-686

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@898006 13f79535-47bb-0310-9956-ffa450edef68
2010-01-11 19:04:29 +00:00
Jonathan Ellis e40894eff1 merge from 0.5 branch
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@896292 13f79535-47bb-0310-9956-ffa450edef68
2010-01-06 00:50:31 +00:00
Eric Evans 04d5ec33b2 regenerate code against thrift r894924
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@896207 13f79535-47bb-0310-9956-ffa450edef68
2010-01-05 20:33:44 +00:00
Jonathan Ellis 6e5e284f32 merge from 0.5 branch
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@893836 13f79535-47bb-0310-9956-ffa450edef68
2009-12-25 03:03:07 +00:00
Jonathan Ellis beba91e885 add batch_mutate command. patch by Jeff Hodges; reviewed by jbellis for CASSANDRA-336
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@892382 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 21:53:27 +00:00
Jonathan Ellis b4cae03720 merge from 0.5 branch
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@889499 13f79535-47bb-0310-9956-ffa450edef68
2009-12-11 04:12:48 +00:00
Eric Evans 4e8691ab1a regenerate thrift code to realize new docstrings
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@888619 13f79535-47bb-0310-9956-ffa450edef68
2009-12-08 22:59:52 +00:00
Eric Evans f1a06074cd add documentation to thrift interface
Patch by Gary Dusbabek; reviewed by eevans for CASSANDRA-324

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@888617 13f79535-47bb-0310-9956-ffa450edef68
2009-12-08 22:59:20 +00:00
Jonathan Ellis 52dfd5e905 set thrift VERSION to 0.5-beta1
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@882345 13f79535-47bb-0310-9956-ffa450edef68
2009-11-19 22:56:49 +00:00
Jonathan Ellis 46a809eef9 expose TimedOutException distinct from UnavailableException
patch by jbellis; reviewed by gdusbabek for CASSANDRA-563

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@882248 13f79535-47bb-0310-9956-ffa450edef68
2009-11-19 19:03:47 +00:00
Jonathan Ellis fc518cbb6a add primitive get_range_slice. inefficient, but better than get_key_range + get_slices.
patch by gdusbabek; reviewed by jbellis for CASSANDRA-344

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@881998 13f79535-47bb-0310-9956-ffa450edef68
2009-11-18 23:27:14 +00:00
Jonathan Ellis aa0b3d182a merge from 0.4
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@830303 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 19:21:29 +00:00
Jonathan Ellis d2c2365a78 add dcquorum/dcquorumsync consistency levels, representing "a quorum of the replicas in the current dc" and "a quorum of the replicas in each dc," respectively.
patch by Vijay Parthasarathy; reviewed by jbellis for CASSANDRA-492

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@829819 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 15:00:20 +00:00
Jonathan Ellis 3f87f59a6c add thrift version string.
patch by jbellis; reviewed by Michael Greene for CASSANDRA-412

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@816386 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 21:15:49 +00:00