Commit Graph

1047 Commits

Author SHA1 Message Date
Jonathan Ellis 33acfcd657 add support for multiple mmapped index segments, and add mmap_index_only option
patch by jbellis; tested by Brandon Williams for CASSANDRA-669

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@896742 13f79535-47bb-0310-9956-ffa450edef68
2010-01-07 02:57:14 +00:00
Jonathan Ellis d6bdce610d store data information for any index entries spanning a mmap segment boundary when reading the index (with a BufferedRAF) so we don't have to deal with that at read time.
patch by jbellis; tested by Brandon Williams for CASSANDRA-669

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@896741 13f79535-47bb-0310-9956-ffa450edef68
2010-01-07 02:56:16 +00:00
Jonathan Ellis 55ae7aaa1c add --progress-interval to stress.py. patch by Brandon Williams; reviewed by jbellis for CASSANDRA-676
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@896699 13f79535-47bb-0310-9956-ffa450edef68
2010-01-06 22:33:47 +00:00
Jonathan Ellis a82ebebf77 add --keep-going option to continue past exceptions (e.g. to keep hammering server after timeouts start). check get return value and raise when expected key is not present (cassandra can skip missing keys really really fast but that is not what we want to measure here). patch by Brandon Williams; reviewed by jbellis for CASSANDRA-676
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@896698 13f79535-47bb-0310-9956-ffa450edef68
2010-01-06 22:33:32 +00:00
Gary Dusbabek dcaf84e356 Remove unused partitioner member from ReplicationStrategy classes. Patch by gdusbabek, reviewed by jbellis.
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@896447 13f79535-47bb-0310-9956-ffa450edef68
2010-01-06 13:59:30 +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 775d0522ef actually return SlicePredicate
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@896257 13f79535-47bb-0310-9956-ffa450edef68
2010-01-05 22:48:51 +00:00
Eric Evans 790ad96c50 update contrib/client_only
Patch by eevans for CASSANDRA-600

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@896211 13f79535-47bb-0310-9956-ffa450edef68
2010-01-05 20:34:44 +00:00
Eric Evans 01c02cca68 cleanup test and contrib breakage from thrift upgrade
Patch by eevans for CASSANDRA-547

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@896210 13f79535-47bb-0310-9956-ffa450edef68
2010-01-05 20:34:37 +00:00
Eric Evans 24f3751f2b reorganize ThriftGlue
* use static import of ThriftGlue methods
  * move from o.a.c.glue to o.a.c.service package

Patch by eevans for CASSANDRA-547

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@896209 13f79535-47bb-0310-9956-ffa450edef68
2010-01-05 20:34:21 +00:00
Eric Evans aee99e3b91 use factories to create Thrift types
Patch by Ted Zlatanov; reviewed by eevans for CASSANDRA-547

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@896208 13f79535-47bb-0310-9956-ffa450edef68
2010-01-05 20:34:04 +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
Eric Evans 55b617c6a9 applied new thrift jar
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@896206 13f79535-47bb-0310-9956-ffa450edef68
2010-01-05 20:32:58 +00:00
Jonathan Ellis c065da73ee merge from 0.5 branch
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@896140 13f79535-47bb-0310-9956-ffa450edef68
2010-01-05 17:28:41 +00:00
Jonathan Ellis a96bdf3239 use NBHM instead of Hashtable and (!) manual locking in MessagingService
patch by jbellis; reviewed by gdusbabek for CASSANDRA-659

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@895889 13f79535-47bb-0310-9956-ffa450edef68
2010-01-05 04:06:38 +00:00
Jonathan Ellis 2b37194d05 r/m unused MS.endPoints_ field
patch by jbellis; reviewed by gdusbabek for CASSANDRA-659

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@895888 13f79535-47bb-0310-9956-ffa450edef68
2010-01-05 04:06:16 +00:00
Jonathan Ellis b72fb58000 r/m unused "reservedverbs" code
patch by jbellis; reviewed by gdusbabek for CASSANDRA-659

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@895887 13f79535-47bb-0310-9956-ffa450edef68
2010-01-05 04:05:54 +00:00
Jonathan Ellis 4aff8fadb7 r/m unused TC.inUse_ field
patch by jbellis; reviewed by gdusbabek for CASSANDRA-659

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@895885 13f79535-47bb-0310-9956-ffa450edef68
2010-01-05 04:05:26 +00:00
Jonathan Ellis 21cce2d97c merge from 0.5 branch
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@895778 13f79535-47bb-0310-9956-ffa450edef68
2010-01-04 20:58:36 +00:00
Eric Evans bea58f3605 add thrift perl generation target to build.xml
Patch by Ted Zlatanov; reviewed by eevans for CASSANDRA-664

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@895760 13f79535-47bb-0310-9956-ffa450edef68
2010-01-04 20:19:31 +00:00
Eric Evans 8c4bc9f622 pretty-print column names in cli output
Patch by Ryan Daum; reviewed by eevans for CASSANDRA-661

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@895759 13f79535-47bb-0310-9956-ffa450edef68
2010-01-04 20:14:48 +00:00
Jonathan Ellis d0c1a84319 fix import in contrib. patch by jbellis
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@894969 13f79535-47bb-0310-9956-ffa450edef68
2010-01-01 03:54:04 +00:00
Gary Dusbabek 89490e39b4 Remove duplicated write (CASSANDRA-662). Patch by Gary Dusbabek, reviewed by Jonathan Ellis.
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@894951 13f79535-47bb-0310-9956-ffa450edef68
2009-12-31 22:42:38 +00:00
Jonathan Ellis b2c2a6031a productize mmap approach: handle files > 2GB by chunking w/ fallback to BRAF
when a row crosses chunk boundaries (you don't want to have to check for crossing
boundary in each read() call, or you'll almost certainly waste more time than
the BRAF approach); add retrying-delete to wait for mmapped files to be unmapped
by finalizer after compaction

patch by jbellis; reviewed by Brandon Williams and goffinet for CASSANDRA-408

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@894944 13f79535-47bb-0310-9956-ffa450edef68
2009-12-31 21:32:13 +00:00
Jonathan Ellis ded4585812 Implement FileDataInput with MappedFileDataInput, backed by a mmap'd ByteBuffer.
patch by jbellis; reviewed by Brandon Williams and goffinet for CASSANDRA-408

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@894943 13f79535-47bb-0310-9956-ffa450edef68
2009-12-31 21:31:01 +00:00
Jonathan Ellis 7a58ca6d8d add FileDataInput, implemented by BufferedRandomAccessFile
patch by jbellis; reviewed by Brandon Williams and goffinet for CASSANDRA-408

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@894942 13f79535-47bb-0310-9956-ffa450edef68
2009-12-31 21:30:10 +00:00
Jonathan Ellis 7594c1ba49 merge from 0.5 branch
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@894747 13f79535-47bb-0310-9956-ffa450edef68
2009-12-31 00:28:03 +00:00
Gary Dusbabek 35e704389c Update CHANGES.txt (missed in r894721).
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@894736 13f79535-47bb-0310-9956-ffa450edef68
2009-12-30 23:18:47 +00:00
Gary Dusbabek d6d4a4fe18 CASSANDRA-651 TcpConnectionManager was holding on to disconnected connections, giving the false indication they were being used.
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@894721 13f79535-47bb-0310-9956-ffa450edef68
2009-12-30 22:20:32 +00:00
Gary Dusbabek 446c9cfaf3 revert: testing svn access
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@894714 13f79535-47bb-0310-9956-ffa450edef68
2009-12-30 21:26:15 +00:00
Gary Dusbabek 4e143147db testing svn access
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@894713 13f79535-47bb-0310-9956-ffa450edef68
2009-12-30 21:25:49 +00:00
Jonathan Ellis 0e52162d49 re-add missing semicolon to test fixing build
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@894543 13f79535-47bb-0310-9956-ffa450edef68
2009-12-30 04:58:01 +00:00
Jonathan Ellis c7b8853246 test build bot mails w/ breakage: removed semicolon
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@894542 13f79535-47bb-0310-9956-ffa450edef68
2009-12-30 04:50:43 +00:00
Jonathan Ellis c8def03073 extend cleanuphelper in more places, and make cleanuphelper stricter about cleaning out old data. fixes test heisenbugs. patch by jbellis
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@894517 13f79535-47bb-0310-9956-ffa450edef68
2009-12-29 23:40:44 +00:00
Jonathan Ellis 433a0f9089 fix allowing unregisterMBean to be called more than once. patch by jbellis
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@894489 13f79535-47bb-0310-9956-ffa450edef68
2009-12-29 21:49:36 +00:00
Eric Evans 325a7c1af6 audit classes implementing Serializable
Patch by eevans for CASSANDRA-655

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@894486 13f79535-47bb-0310-9956-ffa450edef68
2009-12-29 21:33:52 +00:00
Jonathan Ellis 6b1e0a42a9 convert Runnables containing code involving checked exceptions to WrappedRunnable, which reduces the boilerplate of rethrowing as RuntimeException. Also replace one-off Runner class from test suite that served a similar purpose. patch by jbellis
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@894467 13f79535-47bb-0310-9956-ffa450edef68
2009-12-29 19:25:18 +00:00
Jonathan Ellis 3655e91f56 move deleteAsync into DeletionService. patch by jbellis
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@894451 13f79535-47bb-0310-9956-ffa450edef68
2009-12-29 17:33:24 +00:00
Jonathan Ellis dc6e4fe55f move generic classes w/ no cassandra dependencies into cassandra.io.util. patch by jbellis
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@894447 13f79535-47bb-0310-9956-ffa450edef68
2009-12-29 17:14:20 +00:00
Jonathan Ellis bcfd76081d r/m unused FastBuffered*Stream classes, which were copies of Buffered*Stream w/o the synchronization. patch by jbellis
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@894446 13f79535-47bb-0310-9956-ffa450edef68
2009-12-29 17:12:37 +00:00
Jonathan Ellis 1cb079400f replace DataInputBuffer with ByteArrayInputStream/DataInputStream. patch by Todd Blose; reviewed by jbellis for CASSANDRA-656
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@894312 13f79535-47bb-0310-9956-ffa450edef68
2009-12-29 06:13:04 +00:00
Eric Evans cb828319c5 consolidate json libraries
Patch by eevans; reviewed by jbellis for CASSANDRA-587

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@894259 13f79535-47bb-0310-9956-ffa450edef68
2009-12-28 22:20:52 +00:00
Jonathan Ellis 95eb871750 merge from 0.5 branch
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@894193 13f79535-47bb-0310-9956-ffa450edef68
2009-12-28 16:03:44 +00:00
Jonathan Ellis ca5e5f0e9d r/m unused method parameter. patch by jbellis
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@894190 13f79535-47bb-0310-9956-ffa450edef68
2009-12-28 15:43:41 +00:00
Jonathan Ellis 7d4e29bc41 r/m dead method from poor merge. patch by jbellis
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@894189 13f79535-47bb-0310-9956-ffa450edef68
2009-12-28 15:43:14 +00:00
Jonathan Ellis ced475ad6e merge from 0.5 branch
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@893908 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 00:24:56 +00:00
Jonathan Ellis 31c564a0ac clean up generics, formatting of Cachetable. patch by gabriele renzi; reviewed by jbellis for CASSANDRA-654
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@893873 13f79535-47bb-0310-9956-ffa450edef68
2009-12-25 15:48:19 +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 0642a536ba merge from 0.5
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@893620 13f79535-47bb-0310-9956-ffa450edef68
2009-12-23 20:16:08 +00:00
Jonathan Ellis 76de711564 fix bad merge; add overrideable CompactionIterator.getScanners for cleaner subclassing. patch by jbellis
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@893618 13f79535-47bb-0310-9956-ffa450edef68
2009-12-23 20:05:53 +00:00