Jun Rao
6c31fd86fa
trivial change to make stop-server really work
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@833526 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 19:08:07 +00:00
Jonathan Ellis
f77ec79a8b
avoid flushing empty binarymemtable
...
patch by jbellis; reviewed by goffinet for CASSANDRA-532
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@833498 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 17:56:35 +00:00
Eric Evans
0be4eb0404
clhm licensing/attribution that match current practice
...
Patch by eevans; reviewed by jbellis for CASSANDRA-528
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@833222 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05 22:46:42 +00:00
Jonathan Ellis
23dd57230d
add synchronized to register/unregister methods and remove unused code. patch by Stu Hood and jbellis for CASSANDRA-527
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@833046 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05 13:35:57 +00:00
Jonathan Ellis
63a0c9d6c7
add onAlive, onDead methods to gossiper listener interface so listeners don't have to try to infer that by less accurate circumstantial evidence
...
patch by jbellis; reviewed by Jaakko Laine for CASSANDRA-527
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@832996 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05 05:33:47 +00:00
Jonathan Ellis
538dc69515
return clones of supercolumns from memtable so caller can't accidentally mutate them, fixing the failing test.
...
convert removeDeleted on SC to remove-oriented instead of clone-then-add-back to make this hurt performance less.
patch by jbellis; reviewed by gdusbabek for CASSANDRA-510
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@832798 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 17:07:49 +00:00
Jonathan Ellis
98719aa7c6
don't removeDeleted on the whole CF before filtering what the request was for; it's expensive. also, fixes subcolumn queries being counted twice in readStats
...
patch by jbellis; reviewed by gdusbabek for CASSANDRA-510
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@832797 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 17:07:42 +00:00
Jonathan Ellis
f6b71a507d
add failing test for removing a single subcolumn.
...
patch by jbellis; reviewed by gdusbabek for CASSANDRA-510
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@832796 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 17:07:37 +00:00
Jonathan Ellis
a51c21eae8
merge from 0.4
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@832533 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 20:09:18 +00:00
Jonathan Ellis
e488d26666
only quorum timeout should be unavailableexception; others should be internal errors. also remove un-thrown InvalidRequest exception from some throws clauses. patch by jbellis
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@832439 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 14:48:18 +00:00
Jonathan Ellis
57f0725560
optimize away unnecessary seeks during range scan
...
patch by Gary Dusbabek; reviewed by jbellis for CASSANDRA-350
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@832287 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 03:20:43 +00:00
Jonathan Ellis
a08630fce0
prefer bootstrapping into ring sections that are not already being bootstrapped into
...
patch by jbellis; reviewed by Vijay Parthasarathy for CASSANDRA-517
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@832285 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 03:12:16 +00:00
Jonathan Ellis
99954686e1
add sortByProximity and use to prefer bootstrap from closer nodes.
...
patch by jbellis and Vijay Parthasarathy for CASSANDRA-513
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@832273 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 02:27:50 +00:00
Jonathan Ellis
e946c63806
refactor getDefaultToken into default checking + getRandomToken. Decorate OPP keys so we don't have to special case IndexedDKs for getSplits.
...
patch by jbellis and Vijay Parthasarathy for CASSANDRA-513
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@832272 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 02:27:43 +00:00
Jonathan Ellis
7ee47b49c6
add logging, assert
...
patch by jbellis
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@832269 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 02:24:19 +00:00
Jonathan Ellis
46e5f23e1b
fix NPE caused by getToken on endpoint that isn't member of ring yet. add assert to prevent in the future.
...
patch by jbellis for CASSANDRA-522
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@832268 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 02:24:12 +00:00
Jonathan Ellis
3678daa0be
brute-force replacement of throwing maps around with encapsulated TokenMetadata
...
patch by jbellis for CASSANDRA-522
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@832267 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 02:24:05 +00:00
Jonathan Ellis
242fa0231b
CASSANDRA-522
...
convert replication strategy methods to multimap
patch by jbellis for CASSANDRA-522
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@832266 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 02:23:53 +00:00
Jonathan Ellis
4d256f6655
scan on startup for orphaned filter and index files and remove them.
...
patch by Gary Dusbabek; reviewed by jbellis for CASSANDRA-432
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@832075 13f79535-47bb-0310-9956-ffa450edef68
2009-11-02 19:38:25 +00:00
Jonathan Ellis
1794fbed23
add updateForeignTokenUnsafe for bulk loader. patch by goffinet; reviewed by jbellis for CASSANDRA-523
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@831433 13f79535-47bb-0310-9956-ffa450edef68
2009-10-30 19:45:38 +00:00
Jonathan Ellis
f170a9dfad
fix hinted handoff map computation
...
patch by jbellis; tested by Edmond Lau for CASSANDRA-524
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@831414 13f79535-47bb-0310-9956-ffa450edef68
2009-10-30 18:27:44 +00:00
Jonathan Ellis
ccafdada13
fixes for DQ quorum code. patch by Vijay Parthasarathy; reviewed by jbellis for CASSANDRA-492
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@831339 13f79535-47bb-0310-9956-ffa450edef68
2009-10-30 15:42:09 +00:00
Jonathan Ellis
f6b54dfc6b
merge from 0.4
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@831186 13f79535-47bb-0310-9956-ffa450edef68
2009-10-30 02:40:35 +00:00
Jonathan Ellis
f21b80836d
improve stress.py client-side throughput by using the accelerated thrift protocol and multiprocessing instead of threads. patch by Brandon Williams; reviewed by jbellis for CASSANDRA-514
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@830776 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 22:07:50 +00:00
Jonathan Ellis
836bde42fe
update CHANGES
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@830445 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 05:47:12 +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
128cb03a5f
make BootStrapperTest use of TokenMetadata match actual BootStrapper use better. patch by jbellis for CASSANDRA-502
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@830218 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 14:53:18 +00:00
Jonathan Ellis
4856460f0e
refactor bootstrap to only concern itself with bootstrapping the local node, which greatly simplifies things
...
patch by jbellis; reviewed by goffinet for CASSANDRA-483
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@830214 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 14:40:29 +00:00
Jonathan Ellis
160483cd19
rename getRangeMap -> getRangeAddresses; add inverse getAddressRanges
...
patch by jbellis; reviewed by goffinet for CASSANDRA-483
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@830213 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 14:40:23 +00:00
Jonathan Ellis
0287d0dd87
fix the bootstrap interaction with gossip; there were two main problems:
...
1) token and bootstrap state are not guaranteed to be gossiped together; since we only updated TMD.bootstrapNodes on an update of the token, this means we could actually miss the bootstrap notice
2) deletions of state are not actually supported by Gossiper; there is no concept of that at the protocol level. so if we delete state locally it will never get gossiped. Instead, we have a MODE that is either MOVING or NORMAL, corresponding to bootstrap & normal operation.
patch by jbellis; reviewed by goffinet for CASSANDRA-483
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@830212 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 14:40:18 +00:00
Jonathan Ellis
ad01178e37
rename away underscores
...
patch by jbellis; reviewed by goffinet for CASSANDRA-483
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@830211 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 14:40:06 +00:00
Jonathan Ellis
e006aa51b9
r/m single-use executor in favor of a Thread
...
patch by jbellis; reviewed by goffinet for CASSANDRA-483
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@830210 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 14:40:01 +00:00
Jonathan Ellis
4d2b25713f
initialize generation to seconds-since-epoch, a value much more likely to be unique than "1"
...
patch by jbellis; reviewed by eevans for CASSANDRA-515
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@830046 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 02:25:50 +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
ed808be3d3
fix regression recognizing local reads from 828148.
...
patch by jbellis; reviewed by Brandon Williams for CASSANDRA-512
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@829136 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 17:25:58 +00:00
Jonathan Ellis
370b0ec2f2
fix outdated comment. patch by jbellis
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@828923 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 03:16:21 +00:00
Jonathan Ellis
bb32068268
add checks for obviously bogus values read
...
patch by jbellis; reviewed by junrao for CASSANDRA-466
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@828922 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 03:06:46 +00:00
Jonathan Ellis
e1b622e869
make compaction able to recover from errors w/in a row
...
patch by jbellis; reviewed by junrao for CASSANDRA-466
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@828921 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 03:06:39 +00:00
Jonathan Ellis
296f15804c
merge from 0.4 branch
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@828797 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 17:48:43 +00:00
Jonathan Ellis
7518f7ce9f
all rows go through deserialize/removeDeleted so we can GC tombstones.
...
patch by jbellis; reviewed by junrao for CASSANDRA-507
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@828755 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 15:41:11 +00:00
Jonathan Ellis
6915e8f60b
add clhm-production.jar
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@828752 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 15:37:13 +00:00
Jonathan Ellis
26971fb3ff
CLHM, fixed version
...
patch by jbellis; reviewed by goffinet for CASSANDRA-423
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@828734 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 14:58:53 +00:00
Eric Evans
5987e304e5
initial commit of visualization and diagnostics app
...
Patch by eevans and gdusbabek; reviewed by gdusbabek for CASSANDRA-252
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@828238 13f79535-47bb-0310-9956-ffa450edef68
2009-10-21 22:22:26 +00:00
Jonathan Ellis
90caf577b7
catch Throwable on startup rather than Exception
...
patch by jbellis
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@828154 13f79535-47bb-0310-9956-ffa450edef68
2009-10-21 19:29:35 +00:00
Jonathan Ellis
924c7e5fcb
rename "readstorage" endpoints to "natural," "writestorage" to "write" and "hintedstorage" to "hinted"
...
make ReplicationStrategy deal with List<InetAddress> instead of InetAddress[] -- we use the former both in RS and externally, so forcing RS to convert to [] and external users to convert back to List is silly
patch by jbellis
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@828148 13f79535-47bb-0310-9956-ffa450edef68
2009-10-21 19:18:43 +00:00
Jonathan Ellis
afb382b044
add -XX:SurvivorRatio=128 -XX:MaxTenuringThreshold=0 to default gc options. patch by Brandon Williams; reviewed by jbellis for CASSANDRA-504
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@828139 13f79535-47bb-0310-9956-ffa450edef68
2009-10-21 18:47:35 +00:00
Jonathan Ellis
2a0846d367
merge from 0.4 branch
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@828137 13f79535-47bb-0310-9956-ffa450edef68
2009-10-21 18:45:21 +00:00
Jonathan Ellis
b767bf7e7d
convert EndPoint to InetAddress (removes MembershipCleaner, the code to drop a node from the cluster entirely. we're probably going to want to resurrect that at some point)
...
patch by jbellis; reviewed by Brandon Williams for CASSANDRA-498
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@828130 13f79535-47bb-0310-9956-ffa450edef68
2009-10-21 18:26:02 +00:00
Jonathan Ellis
694a6115c7
r/m uses of EndPoint(port) constructor; rename EndPoint methods to make porting easier; r/m gratuitous uses of getHost
...
patch by jbellis; reviewed by Brandon Williams for CASSANDRA-498
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@828128 13f79535-47bb-0310-9956-ffa450edef68
2009-10-21 18:25:35 +00:00
Jonathan Ellis
c44e9d05ca
r/m unused "listening" distinction in TcpConnection
...
patch by jbellis; reviewed by Brandon Williams for CASSANDRA-498
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@828127 13f79535-47bb-0310-9956-ffa450edef68
2009-10-21 18:25:25 +00:00