Joe Schaefer
6c0d7c6e94
cassandra goes tlp
...
git-svn-id: https://svn.apache.org/repos/asf/cassandra/tags/cassandra-0.3.0-final@922689 13f79535-47bb-0310-9956-ffa450edef68
2010-03-13 23:17:20 +00:00
Eric Evans
1709e3ca29
re-re-tagging 0.3.0 final
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/tags/cassandra-0.3.0-final@792979 13f79535-47bb-0310-9956-ffa450edef68
2009-07-10 15:26:01 +00:00
Eric Evans
a65704672c
tag 0.3.0 final
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/tags/cassandra-0.3.0-final@792281 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 19:39:06 +00:00
Eric Evans
f9b31c1341
dropping -dev suffix in preparation for release
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@792279 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 19:35:43 +00:00
Eric Evans
28c6651682
tag 0.3.0 final
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/tags/cassandra-0.3.0-final@792270 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 19:12:42 +00:00
Jonathan Ellis
aeb1a2bb42
add apache license header to autogenerated source code. is this necessary? who knows? but I know someone is going to argue about it if it's missing.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@792197 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 15:55:57 +00:00
Jonathan Ellis
0b800820b8
add DISCLAIMER; tweak NOTICE
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@792195 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 15:47:21 +00:00
Jonathan Ellis
2b10e68f34
add rc2, rc3 entries
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@788099 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24 17:56:11 +00:00
Jonathan Ellis
ecaeaf7615
Under heavy load and large column values, we still saw lockups in tcp connection. Here is the problem. The
...
following code that sets the interest ops seems innocent, but it's the source of the problem. The reason is
that this operation is not atomic. Another thread could sneak in between the reading of the ops and the
setting of it. As a result, some wrong bits could be set.
key_.interestOps(key_.interestOps() | SelectionKey.OP_READ)
This is a sequence that demonstrates how we can lose the OP_READ bit forever and thus jam the read channel:
1. Thread 1: we want to write a message and in write(Message) we are about to turn on OP_WRITE because the message can't be written in one shot.
2. Thread 2: a read comes in and in read(SelectionKey), we turn off OP_READ and submit the read request to ReadWorkItem in Thread 3.
3. Thread 1: read interestOps and see OP_READ as off.
4. Thread 3: finished processing the read request and turn OP_READ on
5. Thread 1: resumes and turn on OP_WRITE. However, by doing that, we also turned off OP_READ. The read channel is thus blocked forever after this.
patch by Jun Rao; reviewed by jbellis for CASSANDRA-220
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@787765 13f79535-47bb-0310-9956-ffa450edef68
2009-06-23 17:55:39 +00:00
Jonathan Ellis
0e2848bc4b
correct version number to 0.3.0. patch by Sandeep Tata; reviewed by jbellis for CASSANDRA-237
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@786175 13f79535-47bb-0310-9956-ffa450edef68
2009-06-18 17:27:16 +00:00
Jonathan Ellis
d8b4275288
add changelog. patch by jbellis; reviewed by Jun Rao for CASSANDRA-221
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@783106 13f79535-47bb-0310-9956-ffa450edef68
2009-06-09 19:38:46 +00:00
Jonathan Ellis
b4e90b9e7b
r/m 'touch' code that populates a cache that is never used (and never updated on compaction either, so it's buggy too).
...
patch by jbellis; reviewed by goffinet for CASSANDRA-222
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@782731 13f79535-47bb-0310-9956-ffa450edef68
2009-06-08 19:18:18 +00:00
Jonathan Ellis
bb543e0f4b
cleanup for TcpConnection. patch by jbellis; reviewed by Jun Rao for CASSANDRA-220
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@782678 13f79535-47bb-0310-9956-ffa450edef68
2009-06-08 15:35:34 +00:00
Jonathan Ellis
629b696491
fix race in TcpConnection. patch by Jun Rao; reviewed by jbellis for CASSANDRA-220
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@782656 13f79535-47bb-0310-9956-ffa450edef68
2009-06-08 14:44:57 +00:00
Jonathan Ellis
0e43f5a073
Rename thrift api parameters dealing with column specification. Patch by jbellis; reviewed by Jun Rao for CASSANDRA-214
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@782116 13f79535-47bb-0310-9956-ffa450edef68
2009-06-05 19:43:54 +00:00
Jonathan Ellis
9e4dbf52bf
add BUGS.txt. patch by jbellis and Eric Evans for CASSANDRA-216
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@782110 13f79535-47bb-0310-9956-ffa450edef68
2009-06-05 19:31:38 +00:00
Jonathan Ellis
33f549d0a3
Change select timeout from 100ms to 1. This mitigates a bug on some systems where the select doesn't process new data until the next call. (Spinning faster doesn't increase load on an idle system.) patch by jbellis; tested by goffinet
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@782095 13f79535-47bb-0310-9956-ffa450edef68
2009-06-05 18:38:45 +00:00
Jonathan Ellis
49ed308408
fix wiki link. patch by johano for CASSANDRA-207
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@780680 13f79535-47bb-0310-9956-ffa450edef68
2009-06-01 15:25:48 +00:00
Jonathan Ellis
38dc4fe758
add apache license summary to bash and python scripts. patch by johano; reviewed by jbellis for CASSANDRA-206
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@780679 13f79535-47bb-0310-9956-ffa450edef68
2009-06-01 15:25:45 +00:00
Jonathan Ellis
813fbb0996
incorporate libraries' NOTICEs. patch by johano for CASSANDRA-205
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@780678 13f79535-47bb-0310-9956-ffa450edef68
2009-06-01 15:25:36 +00:00
Jonathan Ellis
83ac967ef2
fix possible data loss during multiple restarts. patch by jbellis; reviewed by Jun Rao for CASSANDRA-204
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@779770 13f79535-47bb-0310-9956-ffa450edef68
2009-05-28 21:04:50 +00:00
Jonathan Ellis
69c19d9de7
add license files for lib/ jars. patch by johano; reviewed by jbellis for CASSANDRA-176
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@779750 13f79535-47bb-0310-9956-ffa450edef68
2009-05-28 19:57:18 +00:00
Jonathan Ellis
f2ecfb5cb1
s/cassandra/apache-cassandra-incubating/. patch by johano; reviewed by jbellis for CASSANDRA-191
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@779747 13f79535-47bb-0310-9956-ffa450edef68
2009-05-28 19:53:52 +00:00
Jonathan Ellis
a41df854d6
OneCompactionTest is failing occasionally because 500 keys per CFS is actually triggering an automatic compaction (since test flush threshold is only 20) and we were doing a non-threadsafe doCompaction for convenience: the failure occurs when our manual compaction begins mid-run of an automatic one, and the automatic deletes the original sstable file first. Fix by (a) dropping the number of keys so that OneCompactionTest lives up to its name (more are tested in "CompactionsTest") and (b) making the compactions call threadsafe by refactoring to allow a threshold parameter to MCM.submit.
...
patch by jbellis; reviewed by Jun Rao for CASSANDRA-184
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@776714 13f79535-47bb-0310-9956-ffa450edef68
2009-05-20 14:40:27 +00:00
Jonathan Ellis
24cc41bd10
add src distribution and change suffixes to .tar.gz. patch by johano; reviewed by jbellis for CASSANDRA-190
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@776713 13f79535-47bb-0310-9956-ffa450edef68
2009-05-20 14:38:52 +00:00
Jonathan Ellis
bbb009ca26
r/m activation.jar for CASSANDRA-186
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@776087 13f79535-47bb-0310-9956-ffa450edef68
2009-05-18 20:50:22 +00:00
Jonathan Ellis
17004b60c5
r/m pcj.jar. patch by jbellis; reviewed by Eric Evans for CASSANDRA-177
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@775368 13f79535-47bb-0310-9956-ffa450edef68
2009-05-15 22:35:09 +00:00
Jonathan Ellis
5758b88232
r/m JSAP library. patch by jbellis; reviewed by Eric Evans for CASSANDRA-178
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@775334 13f79535-47bb-0310-9956-ffa450edef68
2009-05-15 20:57:53 +00:00
Jonathan Ellis
ea8dcf0176
r/m ASM library. patch by johano; reviewed by jbellis for CASSANDRA-179
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@774945 13f79535-47bb-0310-9956-ffa450edef68
2009-05-14 22:02:02 +00:00
Jonathan Ellis
d6b7b7c433
add license header to source files missing one. patch by johano; reviewed by jbellis for CASSANDRA-175
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@774788 13f79535-47bb-0310-9956-ffa450edef68
2009-05-14 14:33:41 +00:00
Jonathan Ellis
3b6c919d93
branch 0.3
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.3@774578 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 22:47:24 +00:00
Jonathan Ellis
1fdfad82b3
enable assertions by default. patch by jbellis
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@774568 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 22:31:52 +00:00
Jonathan Ellis
3d7203266a
replace executor with locking. the interaction between the executor service terminating and the CFS
...
was inherently unsafe -- you would have to lock anyway to make it safe, the atomic reference wasn't
enough, so at that point you might as well get rid of the executor.
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@774567 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 22:31:49 +00:00
Jonathan Ellis
9bb87e99a4
fix cobetura report. patch by johano; reviewed by jbellis for CASSANDRA-167
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@774525 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 20:53:15 +00:00
Jonathan Ellis
735008dafc
more log cleanup. patch by jbellis
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@774424 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 16:47:14 +00:00
Jonathan Ellis
bd3c6acf33
misc cleanup. patch by jbellis
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@774166 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 02:19:34 +00:00
Jonathan Ellis
f86d47c242
to avoid adding work to terminating executor (which will raise an exception) we need to check for threshold violated _first_, and move puts to the new memtable once flush has started. patch by jbellis; reviewed by Eric Evans for CASSANDRA-165
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@774165 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 02:17:23 +00:00
Jonathan Ellis
ae70cea79a
fix RackUnawareStrategyTest -- endpoint asserts 'host' is an ip address (to make sure we're not mixing hostnames in again) so create a suitable fake IP for the test. patch by jbellis for CASSANDRA-163
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@774097 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12 21:26:42 +00:00
Jonathan Ellis
3aca0737cb
another workaround for register/select wonkiness. patch by jbellis; tested by Mark Robson for CASSANDRA-156
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@774076 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12 20:46:36 +00:00
Jonathan Ellis
da441aed29
cleanup ssTable filename tracking. patch by jbellis
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@774025 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12 19:11:31 +00:00
Jonathan Ellis
b460bd71c5
test to more reliably reproduce CME during range. fix by locking out compact during range query.
...
patch by jbellis; reviewed by Eric Evans for CASSANDRA-161
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@774024 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12 19:11:27 +00:00
Jonathan Ellis
5886b7c9ac
fix race condition in compaction -- it was possible for a read thread to "snapshot" ssTables_, then have
...
the compactor thread delete those (after merging them into a new file) before the read thread checked
them. Since the read thread's "snapshot" doesn't include the new merged sstable, it incorrectly tells
the caller that the key does not exist.
patch by jbellis; reviewed by Eric Evans for CASSANDRA-161
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@774023 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12 19:11:21 +00:00
Jonathan Ellis
41ee512d6f
fix race condition between when memtable is replaced as the active one and when it's added to
...
the set of historical (pending flush) memtables.
patch by jbellis; reviewed by Eric Evans for CASSANDRA-161
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@774022 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12 19:11:15 +00:00
Jonathan Ellis
6fc61d0cd5
fix junit-related build issues. patch by johano; reviewed by jbellis for CASSANDRA-164
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@774016 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12 18:51:49 +00:00
Jonathan Ellis
2fd856de35
unregister mbean on flush. patch by daishi; reviewed by jbellis for CASSANDRA-157
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@774002 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12 17:56:31 +00:00
Jonathan Ellis
9307f621bc
we don't need these jars for junit
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@773957 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12 16:11:37 +00:00
Jonathan Ellis
5964cd4c04
extract tests that could conflict with each other to a separate test class (= gets own jvm)
...
patch by jbellis; reviewed by Sandeep Tata for CASSANDRA-162
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@773941 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12 15:26:52 +00:00
Jonathan Ellis
97fc5cb8ef
migrate to JUnit 4.6. patch by jbellis; reviewed by Sandeep Tata for CASSANDRA-162
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@773940 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12 15:26:38 +00:00
Jonathan Ellis
8054e4e715
test different data sizes for namesort. patch by jbellis
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@773730 13f79535-47bb-0310-9956-ffa450edef68
2009-05-11 23:52:23 +00:00
Jonathan Ellis
ad2cd9a9ba
more cleanup, mostly by reducing nesting level where possible. patch by jbellis
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@773729 13f79535-47bb-0310-9956-ffa450edef68
2009-05-11 23:52:17 +00:00