[jira] [Commented] (CASSANDRA-1311) Triggers

2013-02-04 Thread Vijay (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-1311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570064#comment-13570064
 ] 

Vijay commented on CASSANDRA-1311:
--

Pushed v2 to https://github.com/Vijay2win/cassandra/tree/1311-v2
Also pushed example which i used for testing to 
https://github.com/Vijay2win/inverted-index, Thanks!

 Triggers
 

 Key: CASSANDRA-1311
 URL: https://issues.apache.org/jira/browse/CASSANDRA-1311
 Project: Cassandra
  Issue Type: New Feature
Reporter: Maxim Grinev
Assignee: Vijay
 Fix For: 2.0

 Attachments: HOWTO-PatchAndRunTriggerExample.txt, 
 HOWTO-PatchAndRunTriggerExample-update1.txt, ImplementationDetails.pdf, 
 ImplementationDetails-update1.pdf, trunk-967053.txt, 
 trunk-984391-update1.txt, trunk-984391-update2.txt


 Asynchronous triggers is a basic mechanism to implement various use cases of 
 asynchronous execution of application code at database side. For example to 
 support indexes and materialized views, online analytics, push-based data 
 propagation.
 Please find the motivation, triggers description and list of applications:
 http://maxgrinev.com/2010/07/23/extending-cassandra-with-asynchronous-triggers/
 An example of using triggers for indexing:
 http://maxgrinev.com/2010/07/23/managing-indexes-in-cassandra-using-async-triggers/
 Implementation details are attached.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CASSANDRA-5034) Refactor to introduce Mutation Container in write path

2013-02-04 Thread Jonathan Ellis (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570066#comment-13570066
 ] 

Jonathan Ellis commented on CASSANDRA-5034:
---

Hmm, are you just using the Thrift api?  We probably left that alone for 
backwards compatibility.  Disallowing mixing counters in for 
atomic_batch_mutate should be fine though.

 Refactor to introduce Mutation Container in write path
 --

 Key: CASSANDRA-5034
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5034
 Project: Cassandra
  Issue Type: Improvement
  Components: Core
Affects Versions: 2.0
Reporter: Vijay
Assignee: Vijay
Priority: Minor
 Fix For: 2.0

 Attachments: 0001-CASSANDRA-5034.patch


 For triggers we need to identify if the batch mutations contain counters, if 
 present we cannot apply the BM with triggers safely. Hence we wanted this 
 refactor, the idea is also to improve code reuse.
 https://github.com/Vijay2win/cassandra/blob/1311/src/java/org/apache/cassandra/thrift/MutationContainer.java
 We thought (reviewer: Gary) it is better to separate these 2 patches, hence 
 this ticket.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CASSANDRA-5034) Refactor to introduce Mutation Container in write path

2013-02-04 Thread Vijay (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570070#comment-13570070
 ] 

Vijay commented on CASSANDRA-5034:
--

Hi Jonathan, Yep thats right i was talking about thrift API's I am doing a 
simpler check in 1311-v2 (it does work the way one would hope) :)

 Refactor to introduce Mutation Container in write path
 --

 Key: CASSANDRA-5034
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5034
 Project: Cassandra
  Issue Type: Improvement
  Components: Core
Affects Versions: 2.0
Reporter: Vijay
Assignee: Vijay
Priority: Minor
 Fix For: 2.0

 Attachments: 0001-CASSANDRA-5034.patch


 For triggers we need to identify if the batch mutations contain counters, if 
 present we cannot apply the BM with triggers safely. Hence we wanted this 
 refactor, the idea is also to improve code reuse.
 https://github.com/Vijay2win/cassandra/blob/1311/src/java/org/apache/cassandra/thrift/MutationContainer.java
 We thought (reviewer: Gary) it is better to separate these 2 patches, hence 
 this ticket.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Comment Edited] (CASSANDRA-5034) Refactor to introduce Mutation Container in write path

2013-02-04 Thread Vijay (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570070#comment-13570070
 ] 

Vijay edited comment on CASSANDRA-5034 at 2/4/13 8:46 AM:
--

Hi Jonathan, Yep thats right i was talking about thrift API's I am doing a 
simpler check in 1311-v2 :)

  was (Author: vijay2...@yahoo.com):
Hi Jonathan, Yep thats right i was talking about thrift API's I am 
doing a simpler check in 1311-v2 (it does work the way one would hope) :)
  
 Refactor to introduce Mutation Container in write path
 --

 Key: CASSANDRA-5034
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5034
 Project: Cassandra
  Issue Type: Improvement
  Components: Core
Affects Versions: 2.0
Reporter: Vijay
Assignee: Vijay
Priority: Minor
 Fix For: 2.0

 Attachments: 0001-CASSANDRA-5034.patch


 For triggers we need to identify if the batch mutations contain counters, if 
 present we cannot apply the BM with triggers safely. Hence we wanted this 
 refactor, the idea is also to improve code reuse.
 https://github.com/Vijay2win/cassandra/blob/1311/src/java/org/apache/cassandra/thrift/MutationContainer.java
 We thought (reviewer: Gary) it is better to separate these 2 patches, hence 
 this ticket.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CASSANDRA-4775) Counters 2.0

2013-02-04 Thread Jonathan Ellis (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-4775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570079#comment-13570079
 ] 

Jonathan Ellis commented on CASSANDRA-4775:
---

bq. AVG(...) is harder, needing both the sum and item count to be stored under 
the hood. Even more advanced is bitwise logical AND/OR/... on bitsets rather 
than numbers, such as would allow for hyperloglog approximate cardinality 
counting or other similar operations.

Not sure we'd want to support avg (since it requires extra information to be 
stored, as you point out), but it would be easy to support some kind of 
reduce(IterableColumn) with any scheme that stores per-column updates.

(Not sure we'd want to expose that directly to users though.)

 Counters 2.0
 

 Key: CASSANDRA-4775
 URL: https://issues.apache.org/jira/browse/CASSANDRA-4775
 Project: Cassandra
  Issue Type: New Feature
  Components: Core
Reporter: Arya Goudarzi
  Labels: counters
 Fix For: 2.0


 The existing partitioned counters remain a source of frustration for most 
 users almost two years after being introduced.  The remaining problems are 
 inherent in the design, not something that can be fixed given enough 
 time/eyeballs.
 Ideally a solution would give us
 - similar performance
 - less special cases in the code
 - potential for a retry mechanism

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


git commit: Deprecate but keep strings-as-blob support for now for compatibility sake

2013-02-04 Thread slebresne
Updated Branches:
  refs/heads/cassandra-1.2 60acf0d79 - b251e7aec


Deprecate but keep strings-as-blob support for now for compatibility sake


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/b251e7ae
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/b251e7ae
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/b251e7ae

Branch: refs/heads/cassandra-1.2
Commit: b251e7aec03273ac14eeae79bee13422068d508b
Parents: 60acf0d
Author: Sylvain Lebresne sylv...@datastax.com
Authored: Mon Feb 4 10:44:30 2013 +0100
Committer: Sylvain Lebresne sylv...@datastax.com
Committed: Mon Feb 4 10:44:30 2013 +0100

--
 NEWS.txt |5 +++-
 doc/cql3/CQL.textile |3 +-
 src/java/org/apache/cassandra/cql3/Term.java |   22 +
 3 files changed, 28 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/b251e7ae/NEWS.txt
--
diff --git a/NEWS.txt b/NEWS.txt
index 5a6e4f5..7e04b2e 100644
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -16,7 +16,10 @@ Upgrading
 - CQL3 type validation for constants has been fixed, which may require
   fixing queries that were relying on the previous loose validation. Please
   refer to the CQL3 documentation 
(http://cassandra.apache.org/doc/cql3/CQL.html)
-  and in particular the changelog section for more details.
+  and in particular the changelog section for more details. Please note in
+  particular that inputing blobs as strings constants is now deprecated (in
+  favor of blob constants) and its support will be removed in a future
+  version.
 
 
 1.2.1

http://git-wip-us.apache.org/repos/asf/cassandra/blob/b251e7ae/doc/cql3/CQL.textile
--
diff --git a/doc/cql3/CQL.textile b/doc/cql3/CQL.textile
index 35b75bf..9611608 100644
--- a/doc/cql3/CQL.textile
+++ b/doc/cql3/CQL.textile
@@ -1007,7 +1007,8 @@ The following describes the addition/changes brought for 
each version of CQL.
 
 h3. 3.0.2
 
-- Type validation for the constants:#constants has been fixed. For instance, 
the implementation used to allow @'2'@ as a valid value for an @int@ column 
(interpreting it has the equivalent of @2@), or @42@ as a valid @blob@ value 
(in which case @42@ was interpreted as an hexadecimal representation of the 
blob). This is no longer the case, type validation of constants is now more 
strict. See the data types:#dataTypes section for details on which constant 
is allowed for which type, but note that this let to the introduction of blobs 
constants:#constants.
+- Type validation for the constants:#constants has been fixed. For instance, 
the implementation used to allow @'2'@ as a valid value for an @int@ column 
(interpreting it has the equivalent of @2@), or @42@ as a valid @blob@ value 
(in which case @42@ was interpreted as an hexadecimal representation of the 
blob). This is no longer the case, type validation of constants is now more 
strict. See the data types:#dataTypes section for details on which constant 
is allowed for which type.
+- The type validation fixed of the previous point has lead to the introduction 
of blobs constants:#constants to allow inputing blobs. Do note that while 
inputing blobs as strings constant is still supported by this version (to allow 
smoother transition to blob constant), it is now deprecated (in particular the 
data types:#dataTypes section does not list strings constants as valid blobs) 
and will be removed by a future version. If you were using strings as blobs, 
you should thus update your client code asap to switch blob constants.
 
 h3. 3.0.1
 

http://git-wip-us.apache.org/repos/asf/cassandra/blob/b251e7ae/src/java/org/apache/cassandra/cql3/Term.java
--
diff --git a/src/java/org/apache/cassandra/cql3/Term.java 
b/src/java/org/apache/cassandra/cql3/Term.java
index b3c312e..fb797d5 100644
--- a/src/java/org/apache/cassandra/cql3/Term.java
+++ b/src/java/org/apache/cassandra/cql3/Term.java
@@ -22,6 +22,9 @@ import java.util.Collections;
 import java.util.List;
 import java.util.Set;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
 import org.apache.cassandra.db.marshal.AbstractType;
 import org.apache.cassandra.db.marshal.BytesType;
 import org.apache.cassandra.db.marshal.MarshalException;
@@ -30,6 +33,8 @@ import 
org.apache.cassandra.exceptions.InvalidRequestException;
 /** A term parsed from a CQL statement. */
 public class Term
 {
+private static final Logger logger = LoggerFactory.getLogger(Term.class);
+
 public enum Type
 {
 STRING, INTEGER, UUID, FLOAT, BOOLEAN, 

[2/3] git commit: Merge branch 'cassandra-1.2' into trunk

2013-02-04 Thread slebresne
Merge branch 'cassandra-1.2' into trunk


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/87248347
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/87248347
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/87248347

Branch: refs/heads/trunk
Commit: 87248347bf4ea52431f43be876bac4638ec7b004
Parents: f56f08c b251e7a
Author: Sylvain Lebresne sylv...@datastax.com
Authored: Mon Feb 4 10:45:30 2013 +0100
Committer: Sylvain Lebresne sylv...@datastax.com
Committed: Mon Feb 4 10:45:30 2013 +0100

--
 NEWS.txt |5 +++-
 doc/cql3/CQL.textile |3 +-
 src/java/org/apache/cassandra/cql3/Term.java |   22 +
 3 files changed, 28 insertions(+), 2 deletions(-)
--




[1/3] git commit: Deprecate but keep strings-as-blob support for now for compatibility sake

2013-02-04 Thread slebresne
Deprecate but keep strings-as-blob support for now for compatibility sake


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/b251e7ae
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/b251e7ae
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/b251e7ae

Branch: refs/heads/trunk
Commit: b251e7aec03273ac14eeae79bee13422068d508b
Parents: 60acf0d
Author: Sylvain Lebresne sylv...@datastax.com
Authored: Mon Feb 4 10:44:30 2013 +0100
Committer: Sylvain Lebresne sylv...@datastax.com
Committed: Mon Feb 4 10:44:30 2013 +0100

--
 NEWS.txt |5 +++-
 doc/cql3/CQL.textile |3 +-
 src/java/org/apache/cassandra/cql3/Term.java |   22 +
 3 files changed, 28 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/b251e7ae/NEWS.txt
--
diff --git a/NEWS.txt b/NEWS.txt
index 5a6e4f5..7e04b2e 100644
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -16,7 +16,10 @@ Upgrading
 - CQL3 type validation for constants has been fixed, which may require
   fixing queries that were relying on the previous loose validation. Please
   refer to the CQL3 documentation 
(http://cassandra.apache.org/doc/cql3/CQL.html)
-  and in particular the changelog section for more details.
+  and in particular the changelog section for more details. Please note in
+  particular that inputing blobs as strings constants is now deprecated (in
+  favor of blob constants) and its support will be removed in a future
+  version.
 
 
 1.2.1

http://git-wip-us.apache.org/repos/asf/cassandra/blob/b251e7ae/doc/cql3/CQL.textile
--
diff --git a/doc/cql3/CQL.textile b/doc/cql3/CQL.textile
index 35b75bf..9611608 100644
--- a/doc/cql3/CQL.textile
+++ b/doc/cql3/CQL.textile
@@ -1007,7 +1007,8 @@ The following describes the addition/changes brought for 
each version of CQL.
 
 h3. 3.0.2
 
-- Type validation for the constants:#constants has been fixed. For instance, 
the implementation used to allow @'2'@ as a valid value for an @int@ column 
(interpreting it has the equivalent of @2@), or @42@ as a valid @blob@ value 
(in which case @42@ was interpreted as an hexadecimal representation of the 
blob). This is no longer the case, type validation of constants is now more 
strict. See the data types:#dataTypes section for details on which constant 
is allowed for which type, but note that this let to the introduction of blobs 
constants:#constants.
+- Type validation for the constants:#constants has been fixed. For instance, 
the implementation used to allow @'2'@ as a valid value for an @int@ column 
(interpreting it has the equivalent of @2@), or @42@ as a valid @blob@ value 
(in which case @42@ was interpreted as an hexadecimal representation of the 
blob). This is no longer the case, type validation of constants is now more 
strict. See the data types:#dataTypes section for details on which constant 
is allowed for which type.
+- The type validation fixed of the previous point has lead to the introduction 
of blobs constants:#constants to allow inputing blobs. Do note that while 
inputing blobs as strings constant is still supported by this version (to allow 
smoother transition to blob constant), it is now deprecated (in particular the 
data types:#dataTypes section does not list strings constants as valid blobs) 
and will be removed by a future version. If you were using strings as blobs, 
you should thus update your client code asap to switch blob constants.
 
 h3. 3.0.1
 

http://git-wip-us.apache.org/repos/asf/cassandra/blob/b251e7ae/src/java/org/apache/cassandra/cql3/Term.java
--
diff --git a/src/java/org/apache/cassandra/cql3/Term.java 
b/src/java/org/apache/cassandra/cql3/Term.java
index b3c312e..fb797d5 100644
--- a/src/java/org/apache/cassandra/cql3/Term.java
+++ b/src/java/org/apache/cassandra/cql3/Term.java
@@ -22,6 +22,9 @@ import java.util.Collections;
 import java.util.List;
 import java.util.Set;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
 import org.apache.cassandra.db.marshal.AbstractType;
 import org.apache.cassandra.db.marshal.BytesType;
 import org.apache.cassandra.db.marshal.MarshalException;
@@ -30,6 +33,8 @@ import 
org.apache.cassandra.exceptions.InvalidRequestException;
 /** A term parsed from a CQL statement. */
 public class Term
 {
+private static final Logger logger = LoggerFactory.getLogger(Term.class);
+
 public enum Type
 {
 STRING, INTEGER, UUID, FLOAT, BOOLEAN, HEX, QMARK;
@@ -60,6 +65,9 @@ public class Term
 public final int 

[3/3] git commit: Remove deprecated strings-as-blob for trunk

2013-02-04 Thread slebresne
Updated Branches:
  refs/heads/trunk f56f08c9e - 2dd226875


Remove deprecated strings-as-blob for trunk


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/2dd22687
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/2dd22687
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/2dd22687

Branch: refs/heads/trunk
Commit: 2dd226875282ada1e99e3e0d0bb384da26488185
Parents: 8724834
Author: Sylvain Lebresne sylv...@datastax.com
Authored: Mon Feb 4 10:49:26 2013 +0100
Committer: Sylvain Lebresne sylv...@datastax.com
Committed: Mon Feb 4 10:49:26 2013 +0100

--
 src/java/org/apache/cassandra/cql3/Term.java |   22 -
 1 files changed, 0 insertions(+), 22 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/2dd22687/src/java/org/apache/cassandra/cql3/Term.java
--
diff --git a/src/java/org/apache/cassandra/cql3/Term.java 
b/src/java/org/apache/cassandra/cql3/Term.java
index fb797d5..b3c312e 100644
--- a/src/java/org/apache/cassandra/cql3/Term.java
+++ b/src/java/org/apache/cassandra/cql3/Term.java
@@ -22,9 +22,6 @@ import java.util.Collections;
 import java.util.List;
 import java.util.Set;
 
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
 import org.apache.cassandra.db.marshal.AbstractType;
 import org.apache.cassandra.db.marshal.BytesType;
 import org.apache.cassandra.db.marshal.MarshalException;
@@ -33,8 +30,6 @@ import 
org.apache.cassandra.exceptions.InvalidRequestException;
 /** A term parsed from a CQL statement. */
 public class Term
 {
-private static final Logger logger = LoggerFactory.getLogger(Term.class);
-
 public enum Type
 {
 STRING, INTEGER, UUID, FLOAT, BOOLEAN, HEX, QMARK;
@@ -65,9 +60,6 @@ public class Term
 public final int bindIndex;
 public final boolean isToken;
 
-// For transition post-5198, see below
-private static volatile boolean stringAsBlobWarningLogged = false;
-
 // This is a hack for the timeuuid functions (minTimeuuid, maxTimeuuid, 
now) because instead of handling them as
 // true function we let the TimeUUID.fromString() method handle it. We 
should probably clean that up someday
 private final boolean skipTypeValidation;
@@ -176,20 +168,6 @@ public class Term
 
 if (!supported.contains(type))
 {
-// Blobs should now be inputed as hexadecimal constants. However, 
to allow people to upgrade, we still allow
-// blob-as-strings, even though it is deprecated (see #5198).
-if (type == Type.STRING  validator instanceof BytesType)
-{
-if (!stringAsBlobWarningLogged)
-{
-stringAsBlobWarningLogged = true;
-logger.warn(Inputing CLQ3 blobs as strings (like %s = 
'%s') is now deprecated and will be removed in a future version. 
-  + You should convert client code to use a blob 
constant (%s = %s) instead (see http://cassandra.apache.org/doc/cql3/CQL.html 
changelog section for more info).,
-  identifier, text, identifier, 0x + text);
-}
-return;
-}
-
 // TODO: Ideallly we'd keep the declared CQL3 type of columns and 
use that in the following message, instead of the AbstracType class name.
 throw new InvalidRequestException(String.format(Invalid %s 
constant for %s of type %s, type, identifier, validator.asCQL3Type()));
 }



[jira] [Commented] (CASSANDRA-5198) Fix CQL3 loose type validation of constants

2013-02-04 Thread Sylvain Lebresne (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570091#comment-13570091
 ] 

Sylvain Lebresne commented on CASSANDRA-5198:
-

Agreed. I've re-allowed strings-as-blobs in commit 
b251e7aec03273ac14eeae79bee13422068d508b while (hopefully) making it clear it 
is deprecated (in particular it logs a warning (only once to avoid flooding) if 
you use a string as blob).

 Fix CQL3 loose type validation of constants 
 

 Key: CASSANDRA-5198
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5198
 Project: Cassandra
  Issue Type: Bug
Affects Versions: 1.2.1
Reporter: Edward Capriolo
Assignee: Sylvain Lebresne
Priority: Minor
 Fix For: 1.2.2

 Attachments: 0001-Respect-CQL3-constant-types.txt, 
 0002-Improve-printing-of-type-in-error-message.txt, 
 0003-Respect-partitioner-type-for-Token-function.txt


 This works as it should.
 {noformat}
 cqlsh:movies select * from users where token (username)  token('') ;
  username  | created_date | email | firstname | lastname | password
 ---+--+---+---+--+--
 bsmith | null |  null |   bob |smith | null
  scapriolo | null |  null |stacey | capriolo | null
  ecapriolo | null |  null |edward | capriolo | null
 cqlsh:movies select * from users where token (username)  token('bsmith') ;
  username  | created_date | email | firstname | lastname | password
 ---+--+---+---+--+--
  scapriolo | null |  null |stacey | capriolo | null
  ecapriolo | null |  null |edward | capriolo | null
 cqlsh:movies select * from users where token (username)  token('scapriolo') 
 ;
  username  | created_date | email | firstname | lastname | password
 ---+--+---+---+--+--
  ecapriolo | null |  null |edward | capriolo | null
 {noformat}
 But look what happens when you supply numbers into the token function.
 {noformat}
 qlsh:movies select * from users where token (username)  token(0) ;
  username  | created_date | email | firstname | lastname | password
 ---+--+---+---+--+--
  ecapriolo | null |  null |edward | capriolo | null
 cqlsh:movies select * from users where token (username)  token(1134314) ;
  username  | created_date | email | firstname | lastname | password
 ---+--+---+---+--+--
 bsmith | null |  null |   bob |smith | null
  scapriolo | null |  null |stacey | capriolo | null
  ecapriolo | null |  null |edward | capriolo | null
 cqlsh:movies select * from users where token (username)  token(113431431) ;
  username  | created_date | email | firstname | lastname | password
 ---+--+---+---+--+--
  scapriolo | null |  null |stacey | capriolo | null
  ecapriolo | null |  null |edward | capriolo | null
 cqlsh:movies select * from users where token (username)  token(1134) ;
  username  | created_date | email | firstname | lastname | password
 ---+--+---+---+--+--
  ecapriolo | null |  null |edward | capriolo | null
 cqlsh:movies select * from users where token (username)  token(1134434) ;
  username  | created_date | email | firstname | lastname | password
 ---+--+---+---+--+--
  scapriolo | null |  null |stacey | capriolo | null
 {noformat}
 This does not make sense to me. The token function is apparently converting 
 integers to strings leading to seemingly unpredictable results. 
 However I find this syntax odd, I feel like I should be able to say 
 'token(username)  0 and token(username)  10' because from a thrift side I 
 can page tokens or I can page keys. In this case, I guess, I am only able to 
 page keys because the token is not returned to the user.
 Is token 0 = ''? How do I arrive at the minimal token for and int column. 
 Should the token() function at least be smart enough to reject integers for 
 string columns?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (CASSANDRA-5198) Fix CQL3 loose type validation of constants

2013-02-04 Thread Sylvain Lebresne (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-5198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sylvain Lebresne resolved CASSANDRA-5198.
-

Resolution: Fixed

 Fix CQL3 loose type validation of constants 
 

 Key: CASSANDRA-5198
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5198
 Project: Cassandra
  Issue Type: Bug
Affects Versions: 1.2.1
Reporter: Edward Capriolo
Assignee: Sylvain Lebresne
Priority: Minor
 Fix For: 1.2.2

 Attachments: 0001-Respect-CQL3-constant-types.txt, 
 0002-Improve-printing-of-type-in-error-message.txt, 
 0003-Respect-partitioner-type-for-Token-function.txt


 This works as it should.
 {noformat}
 cqlsh:movies select * from users where token (username)  token('') ;
  username  | created_date | email | firstname | lastname | password
 ---+--+---+---+--+--
 bsmith | null |  null |   bob |smith | null
  scapriolo | null |  null |stacey | capriolo | null
  ecapriolo | null |  null |edward | capriolo | null
 cqlsh:movies select * from users where token (username)  token('bsmith') ;
  username  | created_date | email | firstname | lastname | password
 ---+--+---+---+--+--
  scapriolo | null |  null |stacey | capriolo | null
  ecapriolo | null |  null |edward | capriolo | null
 cqlsh:movies select * from users where token (username)  token('scapriolo') 
 ;
  username  | created_date | email | firstname | lastname | password
 ---+--+---+---+--+--
  ecapriolo | null |  null |edward | capriolo | null
 {noformat}
 But look what happens when you supply numbers into the token function.
 {noformat}
 qlsh:movies select * from users where token (username)  token(0) ;
  username  | created_date | email | firstname | lastname | password
 ---+--+---+---+--+--
  ecapriolo | null |  null |edward | capriolo | null
 cqlsh:movies select * from users where token (username)  token(1134314) ;
  username  | created_date | email | firstname | lastname | password
 ---+--+---+---+--+--
 bsmith | null |  null |   bob |smith | null
  scapriolo | null |  null |stacey | capriolo | null
  ecapriolo | null |  null |edward | capriolo | null
 cqlsh:movies select * from users where token (username)  token(113431431) ;
  username  | created_date | email | firstname | lastname | password
 ---+--+---+---+--+--
  scapriolo | null |  null |stacey | capriolo | null
  ecapriolo | null |  null |edward | capriolo | null
 cqlsh:movies select * from users where token (username)  token(1134) ;
  username  | created_date | email | firstname | lastname | password
 ---+--+---+---+--+--
  ecapriolo | null |  null |edward | capriolo | null
 cqlsh:movies select * from users where token (username)  token(1134434) ;
  username  | created_date | email | firstname | lastname | password
 ---+--+---+---+--+--
  scapriolo | null |  null |stacey | capriolo | null
 {noformat}
 This does not make sense to me. The token function is apparently converting 
 integers to strings leading to seemingly unpredictable results. 
 However I find this syntax odd, I feel like I should be able to say 
 'token(username)  0 and token(username)  10' because from a thrift side I 
 can page tokens or I can page keys. In this case, I guess, I am only able to 
 page keys because the token is not returned to the user.
 Is token 0 = ''? How do I arrive at the minimal token for and int column. 
 Should the token() function at least be smart enough to reject integers for 
 string columns?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[Cassandra Wiki] Trivial Update of Justin74X by Justin74X

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The Justin74X page has been changed by Justin74X:
http://wiki.apache.org/cassandra/Justin74X

New page:
Hey guys !! My name is ROSANNA COOK. This march i will be 38.BR
My school's name is The Foggy Boarding School situated in Saint Petersburg. I 
work as a Wireless Operator. My hobby is Candle Making. My daddy name is Peter  
and he is a Falconer. My mummy is a Customs Officer.BR
BR
My site [[http://www.fairchanelstore.com|chanel bags]]


[Cassandra Wiki] Trivial Update of GloriaBap by GloriaBap

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The GloriaBap page has been changed by GloriaBap:
http://wiki.apache.org/cassandra/GloriaBap

New page:
Yo guys !! The name is JOSIE ROSE. I am turning 51. I want to study at The Rare 
Boarding School which has a branch in Pembroke Pines.BR
I am working as Gopher. My hobby is Shopping. My papa name is Ryan and he is a 
Anesthesiologist. My momy is a Optician.BR
BR
my blog :: [[http://www.fairchanelstore.com|chanel handbags]]


[Cassandra Wiki] Trivial Update of DrewBarri by DrewBarri

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The DrewBarri page has been changed by DrewBarri:
http://wiki.apache.org/cassandra/DrewBarri

New page:
Hi !! I am MANA GARZA. This march i will be 46. I study at The Serious 
Finishing School of Highest Education which has a branch in Odessa.BR
One day i would want to do Spelunking. My daddy name is Boyd  and he is a 
Zoologist. My momy is a Cabinet-maker.BR
BR
Feel free to visit my web blog [[http://www.chanelstorehandbags.com|chanel 
replica]]


[Cassandra Wiki] Trivial Update of Josephine by Josephine

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The Josephine page has been changed by Josephine:
http://wiki.apache.org/cassandra/Josephine

New page:
Nothing to write about me at all.BR
Feels good to be a part of apache.org.BR
I just hope Im useful in one way .BR
BR
Here is my web blog; [[HTTP://www.Zlewozmywaki.Info.pl/|click through the up 
coming webpage]]


[jira] [Commented] (CASSANDRA-1311) Triggers

2013-02-04 Thread Jonathan Ellis (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-1311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570115#comment-13570115
 ] 

Jonathan Ellis commented on CASSANDRA-1311:
---

Some good background on classloaders:

- http://zeroturnaround.com/labs/reloading-objects-classes-classloaders/
- http://zeroturnaround.com/labs/rjc201/

 Triggers
 

 Key: CASSANDRA-1311
 URL: https://issues.apache.org/jira/browse/CASSANDRA-1311
 Project: Cassandra
  Issue Type: New Feature
Reporter: Maxim Grinev
Assignee: Vijay
 Fix For: 2.0

 Attachments: HOWTO-PatchAndRunTriggerExample.txt, 
 HOWTO-PatchAndRunTriggerExample-update1.txt, ImplementationDetails.pdf, 
 ImplementationDetails-update1.pdf, trunk-967053.txt, 
 trunk-984391-update1.txt, trunk-984391-update2.txt


 Asynchronous triggers is a basic mechanism to implement various use cases of 
 asynchronous execution of application code at database side. For example to 
 support indexes and materialized views, online analytics, push-based data 
 propagation.
 Please find the motivation, triggers description and list of applications:
 http://maxgrinev.com/2010/07/23/extending-cassandra-with-asynchronous-triggers/
 An example of using triggers for indexing:
 http://maxgrinev.com/2010/07/23/managing-indexes-in-cassandra-using-async-triggers/
 Implementation details are attached.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[Cassandra Wiki] Trivial Update of SkyePritc by SkyePritc

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The SkyePritc page has been changed by SkyePritc:
http://wiki.apache.org/cassandra/SkyePritc

New page:
Hey fellas !! I am MEGGAN WORKMAN. I am 58. I want to study at The Fascinating 
Institute of Dizzy Education in New York City.BR
I am self employed as a Clarinettist. My hobby is Rock Collecting. My father 
name is Kieth  and he is a Medic. My mother is a Window-dresser.BR
BR
Here is my web-site [[http://www.shoesashlen.com|red sole shoes]]


[Cassandra Wiki] Trivial Update of louis_vuitton_outlet_store_S5A3 by RheaBarke

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The louis_vuitton_outlet_store_S5A3 page has been changed by RheaBarke:
http://wiki.apache.org/cassandra/louis_vuitton_outlet_store_S5A3

New page:
You can 
find[[http://www.fairchanelbagsstore.com|http://www.fairchanelbagsstore.com]] 
press coverage of the United States connected with United states ex- deputy 
admin [[http://www.fairchanelbagsstore.com|chanel outlet]]from point out 
Armitage seems to have informed Japan's NHK telly 
[[http://www.fairchanelbagsstore.com|chanel bags]]appointment at July this past 
year, for example his particular 3 North 
american[[http://www.fairchanelbagsstore.com|chanel bags]] former people in 
politics plus[[http://www.aftonbags.com|http://www.aftonbags.com]] scholars to 
arrive at Cina and additionally Japan[[http://www.aftonbags.com|louis vuitton 
outlet]] in the Diaoyu Isles problem. Do you know of just about 
any[[http://www.aftonbags.com|cheap louis vuitton]] comment on this kind 
of?BR
Hong Lei said, the content[[http://www.aftonbags.com|lv handbags]] belonging to 
the reports were wrong. China's position within the Diaoyu Hawaiian islands 
issue frequent, distinct. Asian managers need continuously to help you regions 
like the United States website visitor focuses on, Diaoyu Group of islands 
happen to be China's built in place, for thousands of years, regulation is in 
line with. This is exactly everyone can get rid of. The Usa must adhere to 
record, reverence the facts on the subject of China's territorial sovereignty, 
don't dispatch an incorrect sales message.BR
BR
http://www.vagamundos.de/index.php?option=com_easygbItemid=85limit=30gsa=690BR
http://www.51zyu.com/Shownews.asp?id=236BR
http://wikibello.cl/Louis_vuitton_belt_b1o4BR
https://moviesbyte.com/groups/cheap-louis-vuitton-j6k5/


[Cassandra Wiki] Trivial Update of RheaBarke by RheaBarke

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The RheaBarke page has been changed by RheaBarke:
http://wiki.apache.org/cassandra/RheaBarke

New page:
Hey fellas !! The name is MIRNA CALDWELL. I belong to Cathedral City.BR
This winter iam going to be 50. I study at The Polite Prep School in Lubbock. I 
am working as Waiter. I also like to Hummels. My papa name is Jon and he is a 
Construction worker. My momy is a Minister.BR
BR
Stop by my web blog: [[http://www.fairchanelbagsstore.com|chanel bag]]


[Cassandra Wiki] Trivial Update of SkyePritc by SkyePritc

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The SkyePritc page has been changed by SkyePritc:
http://wiki.apache.org/cassandra/SkyePritc?action=diffrev1=1rev2=2

- Hey fellas !! I am MEGGAN WORKMAN. I am 58. I want to study at The 
Fascinating Institute of Dizzy Education in New York City.BR
- I am self employed as a Clarinettist. My hobby is Rock Collecting. My father 
name is Kieth  and he is a Medic. My mother is a Window-dresser.BR
+ Yo guys !! The name is NICHOLE MARQUEZ. My age is 49.BR
+ I want to study at The Full Institute which has a branch in Cleveland. I am 
working as Archivist. One day i would want to do arcade games. My daddy name is 
Paul  and he is a Diver. My mummy is a Monk.BR
  BR
- Here is my web-site [[http://www.shoesashlen.com|red sole shoes]]
+ My site ... [[http://www.shoesashlen.com|christian louboutin replica]]
  


[jira] [Created] (CASSANDRA-5218) Log explosion when another cluster node is down and remaining node is overloaded.

2013-02-04 Thread Sergey Olefir (JIRA)
Sergey Olefir created CASSANDRA-5218:


 Summary: Log explosion when another cluster node is down and 
remaining node is overloaded.
 Key: CASSANDRA-5218
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5218
 Project: Cassandra
  Issue Type: Bug
Affects Versions: 1.1.7
Reporter: Sergey Olefir


I have Cassandra 1.1.7 cluster with 4 nodes in 2 datacenters (2+2). Replication 
is configured as DC1:2,DC2:2 (i.e. every node holds the entire data). 

I am load-testing counter increments at the rate of about 10k per second. All 
writes are directed to two nodes in DC1 (DC2 nodes are basically backup). In 
total there's 100 separate clients executing 1-2 batch updates per second. 

We wanted to test what happens if one node goes down, so we brought one node 
down in DC1 (i.e. the node that was handling half of the incoming writes). 

This led to a complete explosion of logs on the remaining alive node in DC1. 

There are hundreds of megabytes of logs within an hour all basically saying the 
same thing: 
ERROR [ReplicateOnWriteStage:5653390] 2013-01-22 12:44:33,611 
AbstractCassandraDaemon.java (line 135) Exception in thread 
Thread[ReplicateOnWriteStage:5653390,5,main] 
java.lang.RuntimeException: java.util.concurrent.TimeoutException 
at 
org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1275)
 
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
at java.lang.Thread.run(Thread.java:662) 
Caused by: java.util.concurrent.TimeoutException 
at 
org.apache.cassandra.service.StorageProxy.sendToHintedEndpoints(StorageProxy.java:311)
 
at 
org.apache.cassandra.service.StorageProxy$7$1.runMayThrow(StorageProxy.java:585)
 
at 
org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1271)
 
... 3 more 


The logs are completely swamped with this and are thus unusable. It may also 
negatively impact the node performance.


According to Aaron Morton:
{quote}The error is the coordinator node protecting it's self. 

Basically it cannot handle the volume of local writes + the writes for HH.  The 
number of in flight hints is greater than…

private static volatile int maxHintsInProgress = 1024 * 
Runtime.getRuntime().availableProcessors();{quote}
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/node-down-log-explosion-tp7584932p7584957.html


I think there are two issues here:
(a) the same exception occurring for the same reason doesn't need to be spammed 
into log many times per second;
(b) exception message ought to be more clear about cause -- i.e. in this case 
some message about overload or load shedding might be appropriate.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[Cassandra Wiki] Trivial Update of SandySeel by SandySeel

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The SandySeel page has been changed by SandySeel:
http://wiki.apache.org/cassandra/SandySeel

New page:
Wassp People !! I am AUDREY TORRES. Soon i will turn 20.BR
I want to study at The Easily Institute of Deep Children in Savannah. My hobby 
is Crafts. My father name is Brian  and he is a Gondolier. My mummy is a 
Guide.BR
BR
Here is my website - [[http://www.chanelstorehandbags.com|chanel handbags]]


[Cassandra Wiki] Trivial Update of BettyMors by BettyMors

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The BettyMors page has been changed by BettyMors:
http://wiki.apache.org/cassandra/BettyMors

New page:
Wassp People !! I am RACQUEL KOCH. I reside in Chichester.BR
I am turning 59. I might join The Frosty School which has a branch in 
Waterbury.BR
BR
My homepage ... [[http://discount-louis-vuitton.blinkweb.com|louis vuitton 
wallet]]


[Cassandra Wiki] Trivial Update of RegenaBla by RegenaBla

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The RegenaBla page has been changed by RegenaBla:
http://wiki.apache.org/cassandra/RegenaBla

New page:
Hello !! My name is LESLIE MCINTOSH. I am staying at Peoria.BR
I have a job as Economist. One day i would want to do Rockets. My dad name is 
Boyd  and he is a General. My mom is a Cosmetologist.BR
BR
Look at my page; [[http://www.aldorabag.com|chanel purse]]


[Cassandra Wiki] Trivial Update of CharissaC by CharissaC

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The CharissaC page has been changed by CharissaC:
http://wiki.apache.org/cassandra/CharissaC

New page:
Hello !! I am ALISIA WHITE. I belong to Myrtle Beach. My age is 58.BR
I am taking admission in The Proud Academy of Flabbergasted Education which has 
a branch in Ann Arbor. I have a job as Photographer. I also like to Composing 
Music. My father name is 2nd LT James  and he is a Music director. My mummy is 
a Bishop.BR
BR
Here is my page; [[http://www.fairchanelbagsstore.com|chanel outletz]]


[Cassandra Wiki] Trivial Update of UlrichPro by UlrichPro

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The UlrichPro page has been changed by UlrichPro:
http://wiki.apache.org/cassandra/UlrichPro

New page:
I have applied for distance learning at The Exciting Military School of Odd 
Education situated in Hartford.BR
I like to do Bungee Jumping. My dad name is Randy and he is a Lyricist. My momy 
is a Optician.BR
BR
My webpage; [[http://www.dressesonit.com|cheap wedding dresses]]


[Cassandra Wiki] Trivial Update of SkyePritc by SkyePritc

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The SkyePritc page has been changed by SkyePritc:
http://wiki.apache.org/cassandra/SkyePritc?action=diffrev1=2rev2=3

- Yo guys !! The name is NICHOLE MARQUEZ. My age is 49.BR
- I want to study at The Full Institute which has a branch in Cleveland. I am 
working as Archivist. One day i would want to do arcade games. My daddy name is 
Paul  and he is a Diver. My mummy is a Monk.BR
+ Hey guys !! The name is BERNIECE BOWERS. I am turning 31.BR
+ I might take night schooling in The Giant Military School of Kind Education 
located in Atlantic City. I want to become a Cook. I like to do Scrapbooking. 
My father name is Burke  and he is a Race driver. My mummy is a Farmer.BR
  BR
- My site ... [[http://www.shoesashlen.com|christian louboutin replica]]
+ Feel free to surf to my site ... [[http://www.fairchanelstore.com|chanel 
wallet]]
  


[Cassandra Wiki] Trivial Update of BoydY72 by BoydY72

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The BoydY72 page has been changed by BoydY72:
http://wiki.apache.org/cassandra/BoydY72

New page:
Hey guys !! The name is ROSSIE HAWKINS. I am 50.BR
I study at The Light-Hearted Military School located in Augusta. I also like to 
Spending time with family/kids. My father name is Russell and he is a Spy. My 
momy is a Conferencier.BR
BR
Here is my site: [[http://www.replica-chanelbagsol.com|chanel purse]]


[jira] [Commented] (CASSANDRA-5038) LZ4Compressor

2013-02-04 Thread T Jake Luciani (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570333#comment-13570333
 ] 

T Jake Luciani commented on CASSANDRA-5038:
---

I've been using his latest patch and have been intending to commit this.  Would 
you be able to [~jbellis] I can't at the moment. +1

 LZ4Compressor
 -

 Key: CASSANDRA-5038
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5038
 Project: Cassandra
  Issue Type: New Feature
  Components: Core
Reporter: T Jake Luciani
Priority: Minor
 Fix For: 1.2.2

 Attachments: CASSANDRA-5038.patch, CASSANDRA-5038.patch, 
 LZ4Compressor.java, lz4-java.jar


 LZ4 is a new compression algo that's ~2x faster than Snappy.
 [~jpountz] has written a nice java port which includes a misc.Unsafe version 
 that performs = than our java snappy version.
 Details at http://blog.jpountz.net/post/28092106032/wow-lz4-is-fast
 The nice thing is this should work with java7 and be more portable.
 We can also fallback the pure java impl

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[Cassandra Wiki] Trivial Update of Leif8655 by Leif8655

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The Leif8655 page has been changed by Leif8655:
http://wiki.apache.org/cassandra/Leif8655

New page:
Hi !! My name is NUMBERS WILEY. I am 23. I go to night school at The Marvelous 
Academy built at Charleston.BR
I am working as Clown. One day i would want to do Snorkeling. My father name is 
Erik  and he is a Operator. My mom is a Alchemist.BR
BR
My blog post - [[http://www.shoesashlen.com|christian louboutin replica]]


[jira] [Created] (CASSANDRA-5219) get_indexed_keys

2013-02-04 Thread Srdjan Mitrovic (JIRA)
Srdjan Mitrovic created CASSANDRA-5219:
--

 Summary: get_indexed_keys
 Key: CASSANDRA-5219
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5219
 Project: Cassandra
  Issue Type: Improvement
Reporter: Srdjan Mitrovic


We would like to get the list of keys for some indexed value by using only one 
disk seek per node.
Unfortunately get_indexed_slices would also read CF where keys can be in many 
different places so it would take many disk seeks just to get the list of keys.

Something like get_indexed_keys(keyRange) would be very beneficial to us.

Much better idea is to use existing 
listKeySlice get_range_slices(ColumnParent column_parent, SlicePredicate 
predicate, KeyRange range, ConsistencyLevel consistency_level) without breaking 
any compatibility. 

If SlicePredicate has empty list of columns and KeyRange has an IndexExpression 
then only index should be fetched to return the desired keys without touching 
indexed CF. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CASSANDRA-5179) Hinted handoff sends over 1000 rows for one column change

2013-02-04 Thread Cyril Scetbon (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570349#comment-13570349
 ] 

Cyril Scetbon commented on CASSANDRA-5179:
--

It's written that it's fixed in 1.2.2
Do you know if a bugfix corrected it ? 

 Hinted handoff sends over 1000 rows for one column change
 -

 Key: CASSANDRA-5179
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5179
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Affects Versions: 1.2.0
 Environment: Windows 7
 Java 1.6u38
Reporter: Antti Koivisto
 Fix For: 1.2.2

 Attachments: cassandra_receiver.log, cassandra_sender.log


 We have a small test environment with two datacenters (DC1 and DC2) running 
 on Windows 7 laptops.
 Both datacenters have one node. We use network topology strategy to replicate 
 all data to both datacenters.
 We started with empty db. 
 1. Created a keyspace with strategy options [DC1:1, DC2:1]
 2. Added one row to a column family with CLI to DC1. Change was replicated to 
 DC2.
 3. Disconnected network cable from DC2.
 4. Gossiper noticed, that other DC is dead.
 5. Added another row to DC1.
 6. Reconnected cable on DC2.
 7. DC1 started hinted handoff for DC2.
 8. Hinted handoff is finished with message: Finished hinted handoff of 1969 
 rows to endpoint DC2 ip
 We repeated test with same results on Linux cluster with Cassandra 1.2.0. 
 On Cassandra 1.1.5 Linux cluster, only one row was sent to endpoint. 
 Finished hinted handoff of 1 rows to endpoint DC2 ip

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CASSANDRA-4464) expose 2I CFs to the rest of nodetool

2013-02-04 Thread Brandon Williams (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-4464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570358#comment-13570358
 ] 

Brandon Williams commented on CASSANDRA-4464:
-

Jason, can you rebase?

 expose 2I CFs to the rest of nodetool
 -

 Key: CASSANDRA-4464
 URL: https://issues.apache.org/jira/browse/CASSANDRA-4464
 Project: Cassandra
  Issue Type: New Feature
  Components: Tools
Reporter: Jonathan Ellis
Assignee: Jason Brown
Priority: Minor
 Fix For: 1.2.2

 Attachments: 4464.txt, 4464-v1.patch


 This was begun in CASSANDRA-4063.  We should extend it to scrub as well, and 
 probably compact since any sane way to do it for scrub should give the other 
 for free.
 Not sure how easy these will be since they go through CompactionManager via 
 StorageProxy.  I think getValidColumnFamilies could be updated to check for 
 index CFs with dot notation.
 (Other operations like flush or snapshot don't make sense for 2I CFs in 
 isolation of their parent.)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CASSANDRA-5179) Hinted handoff sends over 1000 rows for one column change

2013-02-04 Thread Jonathan Ellis (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570361#comment-13570361
 ] 

Jonathan Ellis commented on CASSANDRA-5179:
---

Fix-for is target fix version.  The issue is not fixed until resolved.

 Hinted handoff sends over 1000 rows for one column change
 -

 Key: CASSANDRA-5179
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5179
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Affects Versions: 1.2.0
 Environment: Windows 7
 Java 1.6u38
Reporter: Antti Koivisto
 Fix For: 1.2.2

 Attachments: cassandra_receiver.log, cassandra_sender.log


 We have a small test environment with two datacenters (DC1 and DC2) running 
 on Windows 7 laptops.
 Both datacenters have one node. We use network topology strategy to replicate 
 all data to both datacenters.
 We started with empty db. 
 1. Created a keyspace with strategy options [DC1:1, DC2:1]
 2. Added one row to a column family with CLI to DC1. Change was replicated to 
 DC2.
 3. Disconnected network cable from DC2.
 4. Gossiper noticed, that other DC is dead.
 5. Added another row to DC1.
 6. Reconnected cable on DC2.
 7. DC1 started hinted handoff for DC2.
 8. Hinted handoff is finished with message: Finished hinted handoff of 1969 
 rows to endpoint DC2 ip
 We repeated test with same results on Linux cluster with Cassandra 1.2.0. 
 On Cassandra 1.1.5 Linux cluster, only one row was sent to endpoint. 
 Finished hinted handoff of 1 rows to endpoint DC2 ip

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CASSANDRA-5038) LZ4Compressor

2013-02-04 Thread Jonathan Ellis (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570363#comment-13570363
 ] 

Jonathan Ellis commented on CASSANDRA-5038:
---

I'm a bit behind here...  Do we just need to commit the patch and jar?  What 
about the comments about maven and JNI issues?

 LZ4Compressor
 -

 Key: CASSANDRA-5038
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5038
 Project: Cassandra
  Issue Type: New Feature
  Components: Core
Reporter: T Jake Luciani
Priority: Minor
 Fix For: 1.2.2

 Attachments: CASSANDRA-5038.patch, CASSANDRA-5038.patch, 
 LZ4Compressor.java, lz4-java.jar


 LZ4 is a new compression algo that's ~2x faster than Snappy.
 [~jpountz] has written a nice java port which includes a misc.Unsafe version 
 that performs = than our java snappy version.
 Details at http://blog.jpountz.net/post/28092106032/wow-lz4-is-fast
 The nice thing is this should work with java7 and be more portable.
 We can also fallback the pure java impl

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CASSANDRA-5179) Hinted handoff sends over 1000 rows for one column change

2013-02-04 Thread Cyril Scetbon (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570364#comment-13570364
 ] 

Cyril Scetbon commented on CASSANDRA-5179:
--

Ok thanks for this information …

 Hinted handoff sends over 1000 rows for one column change
 -

 Key: CASSANDRA-5179
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5179
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Affects Versions: 1.2.0
 Environment: Windows 7
 Java 1.6u38
Reporter: Antti Koivisto
 Fix For: 1.2.2

 Attachments: cassandra_receiver.log, cassandra_sender.log


 We have a small test environment with two datacenters (DC1 and DC2) running 
 on Windows 7 laptops.
 Both datacenters have one node. We use network topology strategy to replicate 
 all data to both datacenters.
 We started with empty db. 
 1. Created a keyspace with strategy options [DC1:1, DC2:1]
 2. Added one row to a column family with CLI to DC1. Change was replicated to 
 DC2.
 3. Disconnected network cable from DC2.
 4. Gossiper noticed, that other DC is dead.
 5. Added another row to DC1.
 6. Reconnected cable on DC2.
 7. DC1 started hinted handoff for DC2.
 8. Hinted handoff is finished with message: Finished hinted handoff of 1969 
 rows to endpoint DC2 ip
 We repeated test with same results on Linux cluster with Cassandra 1.2.0. 
 On Cassandra 1.1.5 Linux cluster, only one row was sent to endpoint. 
 Finished hinted handoff of 1 rows to endpoint DC2 ip

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[Cassandra Wiki] Trivial Update of DemiOei by DemiOei

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The DemiOei page has been changed by DemiOei:
http://wiki.apache.org/cassandra/DemiOei

New page:
Wassp People !! The name is JANNETTE PETTY. Soon i will turn 21.BR
I am taking admission in The Exciting School which has a branch in Corpus 
Christi. I have a job as Author. I also like to Insects. My papa name is John  
and he is a Pastor. My mummy is a Environmental scientist.BR
BR
Feel free to surf to my web page [[http://www.chanel-ol-store.com|chanel purse]]


[Cassandra Wiki] Trivial Update of Dane06Z by Dane06Z

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The Dane06Z page has been changed by Dane06Z:
http://wiki.apache.org/cassandra/Dane06Z?action=diffrev1=2rev2=3

- Hey guys !! The name is ADRIANNA HEBERT. Soon i will turn 24.BR
- I and my sister go to The Tested Prep School of Immediately Education built 
at Inverness. One day i would want to do Calendars. My dad name is Josh and he 
is a Actuary. My mother is a Astronomer.BR
+ Hello !! The name is SELMA CHRISTIAN. I am 35. I might join The Tough 
Institute located in Murrieta.BR
+ One day i would want to do Wine. My daddy name is Douglas and he is a 
Internist. My mother is a Falconer.BR
  BR
- Also visit my page - [[http://www.chanelstorehandbags.com|chanel handbags]]
+ Also visit my web-site: [[http://www.chanelstorehandbags.com|chanel bag]]
  


[Cassandra Wiki] Trivial Update of BoydY72 by BoydY72

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The BoydY72 page has been changed by BoydY72:
http://wiki.apache.org/cassandra/BoydY72?action=diffrev1=1rev2=2

- Hey guys !! The name is ROSSIE HAWKINS. I am 50.BR
- I study at The Light-Hearted Military School located in Augusta. I also like 
to Spending time with family/kids. My father name is Russell and he is a Spy. 
My momy is a Conferencier.BR
+ Howdy !! The name is HENRIETTE ROMAN. This summer iam going to be 32.BR
+ I might join The Unconditional Boarding School of Unlimited Children built at 
Houma. My hobby is Rafting/Canoeing. My daddy name is Russell and he is a 
Comedian. My mummy is a Valet.BR
  BR
- Here is my site: [[http://www.replica-chanelbagsol.com|chanel purse]]
+ my site; [[http://www.chanelstorehandbags.com|chanel handbags]]
  


[2/3] git commit: make local copies of compaction thresholds so they can't be changed out from under us mid-method patch by jbellis for CASSANDRA-5214

2013-02-04 Thread jbellis
make local copies of compaction thresholds so they can't be changed out from 
under us mid-method
patch by jbellis for CASSANDRA-5214


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/82de0ec7
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/82de0ec7
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/82de0ec7

Branch: refs/heads/trunk
Commit: 82de0ec75689d84ee6a4fa2d9a960f3326e5387a
Parents: b251e7a
Author: Jonathan Ellis jbel...@apache.org
Authored: Mon Feb 4 17:50:34 2013 +0100
Committer: Jonathan Ellis jbel...@apache.org
Committed: Mon Feb 4 17:50:34 2013 +0100

--
 .../compaction/SizeTieredCompactionStrategy.java   |   10 +++---
 1 files changed, 7 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/82de0ec7/src/java/org/apache/cassandra/db/compaction/SizeTieredCompactionStrategy.java
--
diff --git 
a/src/java/org/apache/cassandra/db/compaction/SizeTieredCompactionStrategy.java 
b/src/java/org/apache/cassandra/db/compaction/SizeTieredCompactionStrategy.java
index 64ed744..5e01733 100644
--- 
a/src/java/org/apache/cassandra/db/compaction/SizeTieredCompactionStrategy.java
+++ 
b/src/java/org/apache/cassandra/db/compaction/SizeTieredCompactionStrategy.java
@@ -60,7 +60,10 @@ public class SizeTieredCompactionStrategy extends 
AbstractCompactionStrategy
 
 public synchronized AbstractCompactionTask getNextBackgroundTask(final int 
gcBefore)
 {
-if (cfs.isCompactionDisabled())
+// make local copies so they can't be changed out from under us 
mid-method
+int minThreshold = cfs.getMinimumCompactionThreshold();
+int maxThreshold = cfs.getMaximumCompactionThreshold();
+if (minThreshold == 0 || maxThreshold == 0)
 {
 logger.debug(Compaction is currently disabled.);
 return null;
@@ -74,7 +77,7 @@ public class SizeTieredCompactionStrategy extends 
AbstractCompactionStrategy
 ListListSSTableReader prunedBuckets = new 
ArrayListListSSTableReader();
 for (ListSSTableReader bucket : buckets)
 {
-if (bucket.size()  cfs.getMinimumCompactionThreshold())
+if (bucket.size()  minThreshold)
 continue;
 
 Collections.sort(bucket, new ComparatorSSTableReader()
@@ -84,7 +87,8 @@ public class SizeTieredCompactionStrategy extends 
AbstractCompactionStrategy
 return o1.descriptor.generation - o2.descriptor.generation;
 }
 });
-prunedBuckets.add(bucket.subList(0, Math.min(bucket.size(), 
cfs.getMaximumCompactionThreshold(;
+ListSSTableReader prunedBucket = bucket.subList(0, 
Math.min(bucket.size(), maxThreshold));
+prunedBuckets.add(prunedBucket);
 }
 
 if (prunedBuckets.isEmpty())



[1/3] git commit: make local copies of compaction thresholds so they can't be changed out from under us mid-method patch by jbellis for CASSANDRA-5214

2013-02-04 Thread jbellis
make local copies of compaction thresholds so they can't be changed out from 
under us mid-method
patch by jbellis for CASSANDRA-5214


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/82de0ec7
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/82de0ec7
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/82de0ec7

Branch: refs/heads/cassandra-1.2
Commit: 82de0ec75689d84ee6a4fa2d9a960f3326e5387a
Parents: b251e7a
Author: Jonathan Ellis jbel...@apache.org
Authored: Mon Feb 4 17:50:34 2013 +0100
Committer: Jonathan Ellis jbel...@apache.org
Committed: Mon Feb 4 17:50:34 2013 +0100

--
 .../compaction/SizeTieredCompactionStrategy.java   |   10 +++---
 1 files changed, 7 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/82de0ec7/src/java/org/apache/cassandra/db/compaction/SizeTieredCompactionStrategy.java
--
diff --git 
a/src/java/org/apache/cassandra/db/compaction/SizeTieredCompactionStrategy.java 
b/src/java/org/apache/cassandra/db/compaction/SizeTieredCompactionStrategy.java
index 64ed744..5e01733 100644
--- 
a/src/java/org/apache/cassandra/db/compaction/SizeTieredCompactionStrategy.java
+++ 
b/src/java/org/apache/cassandra/db/compaction/SizeTieredCompactionStrategy.java
@@ -60,7 +60,10 @@ public class SizeTieredCompactionStrategy extends 
AbstractCompactionStrategy
 
 public synchronized AbstractCompactionTask getNextBackgroundTask(final int 
gcBefore)
 {
-if (cfs.isCompactionDisabled())
+// make local copies so they can't be changed out from under us 
mid-method
+int minThreshold = cfs.getMinimumCompactionThreshold();
+int maxThreshold = cfs.getMaximumCompactionThreshold();
+if (minThreshold == 0 || maxThreshold == 0)
 {
 logger.debug(Compaction is currently disabled.);
 return null;
@@ -74,7 +77,7 @@ public class SizeTieredCompactionStrategy extends 
AbstractCompactionStrategy
 ListListSSTableReader prunedBuckets = new 
ArrayListListSSTableReader();
 for (ListSSTableReader bucket : buckets)
 {
-if (bucket.size()  cfs.getMinimumCompactionThreshold())
+if (bucket.size()  minThreshold)
 continue;
 
 Collections.sort(bucket, new ComparatorSSTableReader()
@@ -84,7 +87,8 @@ public class SizeTieredCompactionStrategy extends 
AbstractCompactionStrategy
 return o1.descriptor.generation - o2.descriptor.generation;
 }
 });
-prunedBuckets.add(bucket.subList(0, Math.min(bucket.size(), 
cfs.getMaximumCompactionThreshold(;
+ListSSTableReader prunedBucket = bucket.subList(0, 
Math.min(bucket.size(), maxThreshold));
+prunedBuckets.add(prunedBucket);
 }
 
 if (prunedBuckets.isEmpty())



[3/3] git commit: Merge branch 'cassandra-1.2' into trunk

2013-02-04 Thread jbellis
Updated Branches:
  refs/heads/cassandra-1.2 b251e7aec - 82de0ec75
  refs/heads/trunk 2dd226875 - 6d364f4a3


Merge branch 'cassandra-1.2' into trunk


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/6d364f4a
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/6d364f4a
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/6d364f4a

Branch: refs/heads/trunk
Commit: 6d364f4a324fd31f530bb1e91a9c16452ddff581
Parents: 2dd2268 82de0ec
Author: Jonathan Ellis jbel...@apache.org
Authored: Mon Feb 4 17:50:43 2013 +0100
Committer: Jonathan Ellis jbel...@apache.org
Committed: Mon Feb 4 17:50:43 2013 +0100

--
 .../compaction/SizeTieredCompactionStrategy.java   |   10 +++---
 1 files changed, 7 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/6d364f4a/src/java/org/apache/cassandra/db/compaction/SizeTieredCompactionStrategy.java
--



[jira] [Resolved] (CASSANDRA-5214) AE in DataTracker.markCompacting

2013-02-04 Thread Jonathan Ellis (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-5214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jonathan Ellis resolved CASSANDRA-5214.
---

Resolution: Fixed
  Assignee: Jonathan Ellis  (was: Yuki Morishita)

should be fixed in 82de0ec75689d84ee6a4fa2d9a960f3326e5387a.  (CliTest no 
longer throws.)

 AE in DataTracker.markCompacting
 

 Key: CASSANDRA-5214
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5214
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Reporter: Brandon Williams
Assignee: Jonathan Ellis
 Fix For: 1.2.2


 On 1.2 branch:
 {noformat}
  INFO [main] 2013-02-01 05:50:07,709 CassandraDaemon.java (line 103) Logging 
 initialized
  INFO [main] 2013-02-01 05:50:07,730 CassandraDaemon.java (line 125) JVM 
 vendor/version: Java HotSpot(TM) 64-Bit Server VM/1.6.0_26
  INFO [main] 2013-02-01 05:50:07,731 CassandraDaemon.java (line 126) Heap 
 size: 1046937600/1046937600
  INFO [main] 2013-02-01 05:50:07,731 CassandraDaemon.java (line 127) 
 Classpath: 
 /tmp/dtest-4ju3_j/test/node1/conf:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/build/classes/main:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/build/classes/thrift:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/antlr-3.2.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/avro-1.4.0-fixes.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/avro-1.4.0-sources-fixes.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/commons-cli-1.1.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/commons-codec-1.2.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/commons-lang-2.6.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/compress-lzf-0.8.4.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/concurrentlinkedhashmap-lru-1.3.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/guava-13.0.1.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/high-scale-lib-1.1.2.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/jackson-core-asl-1.9.2.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/jackson-mapper-asl-1.9.2.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/jamm-0.2.5.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/jline-1.0.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/json-simple-1.1.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/libthrift-0.7.0.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/log4j-1.2.16.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/metrics-core-2.0.3.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/netty-3.5.9.Final.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/servlet-api-2.5-20081211.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/slf4j-api-1.7.2.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/slf4j-log4j12-1.7.2.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/snakeyaml-1.6.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/snappy-java-1.0.4.1.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/snaptree-0.1.jar:/var/lib/buildbot/slaves/slave/cassandra-1_2/build/lib/jamm-0.2.5.jar
  INFO [main] 2013-02-01 05:50:07,733 CLibrary.java (line 61) JNA not found. 
 Native methods will be disabled.
  INFO [main] 2013-02-01 05:50:07,748 DatabaseDescriptor.java (line 131) 
 Loading settings from file:/tmp/dtest-4ju3_j/test/node1/conf/cassandra.yaml
  INFO [main] 2013-02-01 05:50:08,168 DatabaseDescriptor.java (line 190) 
 DiskAccessMode 'auto' determined to be mmap, indexAccessMode is mmap
  INFO [main] 2013-02-01 05:50:08,168 DatabaseDescriptor.java (line 204) 
 disk_failure_policy is stop
  INFO [main] 2013-02-01 05:50:08,174 DatabaseDescriptor.java (line 265) 
 Global memtable threshold is enabled at 332MB
  INFO [main] 2013-02-01 05:50:08,911 CacheService.java (line 111) 
 Initializing key cache with capacity of 49 MBs.
  INFO [main] 2013-02-01 05:50:08,923 CacheService.java (line 140) Scheduling 
 key cache save to each 14400 seconds (going to save all keys).
  INFO [main] 2013-02-01 05:50:08,924 CacheService.java (line 154) 
 Initializing row cache with capacity of 0 MBs and provider 
 org.apache.cassandra.cache.SerializingCacheProvider
  INFO [main] 2013-02-01 05:50:08,931 CacheService.java (line 166) Scheduling 
 row cache save to each 0 seconds (going to save all keys).
  INFO [main] 2013-02-01 05:50:09,438 DatabaseDescriptor.java (line 542) 
 Couldn't detect any schema definitions in local storage.
  INFO [main] 2013-02-01 05:50:09,440 DatabaseDescriptor.java (line 545) Found 
 table data in data directories. Consider using the CLI to define your schema.
  INFO [CompactionExecutor:1] 2013-02-01 05:50:09,579 ColumnFamilyStore.java 
 (line 678) Enqueuing flush of 

[jira] [Commented] (CASSANDRA-5038) LZ4Compressor

2013-02-04 Thread Adrien Grand (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570382#comment-13570382
 ] 

Adrien Grand commented on CASSANDRA-5038:
-

The Maven/JNI issue is that the JAR deployed to Maven central doesn't contain 
JNI bindings to the C impl, so the fastest available impl will be the Java one 
based on sun.misc.Unsafe, which should already be as fast as snappy-java. I'm 
working on deploying a JAR packaged with JNI bindings to Maven Central but it 
might take some time, so I think we could commit this patch as-is. When I 
manage to deploy the JNI bindings to Maven Central, all we will need to do is 
to upgrade the JAR packaged with Cassandra. What do you think?

 LZ4Compressor
 -

 Key: CASSANDRA-5038
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5038
 Project: Cassandra
  Issue Type: New Feature
  Components: Core
Reporter: T Jake Luciani
Priority: Minor
 Fix For: 1.2.2

 Attachments: CASSANDRA-5038.patch, CASSANDRA-5038.patch, 
 LZ4Compressor.java, lz4-java.jar


 LZ4 is a new compression algo that's ~2x faster than Snappy.
 [~jpountz] has written a nice java port which includes a misc.Unsafe version 
 that performs = than our java snappy version.
 Details at http://blog.jpountz.net/post/28092106032/wow-lz4-is-fast
 The nice thing is this should work with java7 and be more portable.
 We can also fallback the pure java impl

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (CASSANDRA-5196) IllegalStateException thrown when running new installation with old data directories

2013-02-04 Thread Aleksey Yeschenko (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-5196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aleksey Yeschenko resolved CASSANDRA-5196.
--

Resolution: Cannot Reproduce

Pretty sure this particular issue was caused by not having enough permissions 
to create the directories. Please reopen if that's not the case and you can 
reproduce.

 IllegalStateException thrown when running new installation with old data 
 directories
 

 Key: CASSANDRA-5196
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5196
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Affects Versions: 1.2.1
 Environment: CentOS 5.5
Reporter: Robbie Strickland
Assignee: Aleksey Yeschenko
Priority: Minor

 If you install 1.2.1 when there are existing data directories, the scrub 
 operation fails, throwing this exception:
 ERROR [main] 2013-01-29 15:05:06,564 FileUtils.java (line 373) Stopping the 
 gossiper and the RPC server
 ERROR [main] 2013-01-29 15:05:06,564 CassandraDaemon.java (line 387) 
 Exception encountered during startup
 java.lang.IllegalStateException: No configured daemon
   at 
 org.apache.cassandra.service.StorageService.stopRPCServer(StorageService.java:314)
   at 
 org.apache.cassandra.io.util.FileUtils.handleFSError(FileUtils.java:375)
   at org.apache.cassandra.db.Directories.init(Directories.java:113)
   at org.apache.cassandra.db.Directories.create(Directories.java:91)
   at 
 org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:403)
   at 
 org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:174)
   at 
 org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:370)
   at 
 org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:413)
 This condition should produce a more reasonable exception.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[Cassandra Wiki] Trivial Update of GabrieleR by GabrieleR

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The GabrieleR page has been changed by GabrieleR:
http://wiki.apache.org/cassandra/GabrieleR

New page:
Howdy !! The name is LAUNA GILLIAM. My age is 48.BR
BR
My parents want me to join The Shiny Preparatory situated in Sebastian. I am 
self employed as a Law enforcement agent. I like to do Home Automation. My 
father name is Jed  and he is a Wood-cutter. My mother is a Stock-breeder.BR
BR
Check out my blog :: [[http://www.unitedchem.com/beatbydre.aspx|beats by dr dre 
cheap]]


[Cassandra Wiki] Trivial Update of AnjaChest by AnjaChest

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The AnjaChest page has been changed by AnjaChest:
http://wiki.apache.org/cassandra/AnjaChest

New page:
Yo guys !! I am THAO CALDWELL. Soon i will turn 26.BR
I study at The Over-Whelmed Institute situated in Joliet. I am self employed as 
a Assayer. I am a fan of Volunteer. My papa name is Edwin  and he is a 
Occupational Therapist. My mother is a Jockey.BR
BR
Here is my page [[http://www.fairchanelstore.com|chanel purse]]


[Cassandra Wiki] Trivial Update of DrewBarri by DrewBarri

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The DrewBarri page has been changed by DrewBarri:
http://wiki.apache.org/cassandra/DrewBarri?action=diffrev1=1rev2=2

- Hi !! I am MANA GARZA. This march i will be 46. I study at The Serious 
Finishing School of Highest Education which has a branch in Odessa.BR
- One day i would want to do Spelunking. My daddy name is Boyd  and he is a 
Zoologist. My momy is a Cabinet-maker.BR
+ Wassp People !! The name is ELIZABETH KELLER. I am 21.BR
+ I have applied for distance learning at The Huge School of Sturdy Children 
which has a branch in Clearwater. I like to do R/C Cars. My papa name is Edward 
 and he is a Model. My mother is a Cameraman.BR
  BR
- Feel free to visit my web blog [[http://www.chanelstorehandbags.com|chanel 
replica]]
+ my web site ... [[http://www.chanelstorehandbags.com|chanel outletz]]
  


[Cassandra Wiki] Trivial Update of AllenGalv by AllenGalv

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The AllenGalv page has been changed by AllenGalv:
http://wiki.apache.org/cassandra/AllenGalv

New page:
Hi !! I am GRETCHEN FERRELL. I am staying at Fayetteville.BR
I have a job as Importer. I like Grip Strength. My daddy name is Stephen and he 
is a Police officer. My mother is a Astrophysicist.BR
BR
Also visit my weblog - [[http://www.aldorabag.com|chanel bag]]


[2/2] git commit: Merge branch 'cassandra-1.2' into trunk

2013-02-04 Thread brandonwilliams
Updated Branches:
  refs/heads/trunk 6d364f4a3 - 58db3ce98


Merge branch 'cassandra-1.2' into trunk


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/58db3ce9
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/58db3ce9
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/58db3ce9

Branch: refs/heads/trunk
Commit: 58db3ce98847a9c5c3118095694cd4f4a15a47f1
Parents: 6d364f4 b1274b8
Author: Brandon Williams brandonwilli...@apache.org
Authored: Mon Feb 4 13:06:54 2013 -0600
Committer: Brandon Williams brandonwilli...@apache.org
Committed: Mon Feb 4 13:06:54 2013 -0600

--
 CHANGES.txt|1 +
 src/java/org/apache/cassandra/gms/Gossiper.java|6 +-
 .../apache/cassandra/service/StorageService.java   |3 +++
 3 files changed, 9 insertions(+), 1 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/58db3ce9/CHANGES.txt
--
diff --cc CHANGES.txt
index 7e782c5,e0e8079..94d8be4
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@@ -14,8 -7,8 +14,9 @@@
   * configure populate_io_cache_on_flush per-CF (CASSANDRA-4694)
   * allow configuration of internode socket buffer (CASSANDRA-3378)
   * Make sstable directory picking blacklist-aware again (CASSANDRA-5193)
+  * Correctly expire gossip states for edge cases (CASSANDRA-5216)
  
 +
  1.2.1
   * stream undelivered hints on decommission (CASSANDRA-5128)
   * GossipingPropertyFileSnitch loads saved dc/rack info if needed 
(CASSANDRA-5133)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/58db3ce9/src/java/org/apache/cassandra/gms/Gossiper.java
--

http://git-wip-us.apache.org/repos/asf/cassandra/blob/58db3ce9/src/java/org/apache/cassandra/service/StorageService.java
--



[1/2] git commit: Correctly expire gossip states for edge cases. Patch by yangwei, reviewed by brandonwilliams for CASSANDRA-5216

2013-02-04 Thread brandonwilliams
Correctly expire gossip states for edge cases.
Patch by yangwei, reviewed by brandonwilliams for CASSANDRA-5216


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/b1274b8c
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/b1274b8c
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/b1274b8c

Branch: refs/heads/trunk
Commit: b1274b8c2a9eb6b504afac8f17a42889746b7d00
Parents: b251e7a
Author: Brandon Williams brandonwilli...@apache.org
Authored: Mon Feb 4 13:04:58 2013 -0600
Committer: Brandon Williams brandonwilli...@apache.org
Committed: Mon Feb 4 13:06:40 2013 -0600

--
 CHANGES.txt|1 +
 src/java/org/apache/cassandra/gms/Gossiper.java|6 +-
 .../apache/cassandra/service/StorageService.java   |3 +++
 3 files changed, 9 insertions(+), 1 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/b1274b8c/CHANGES.txt
--
diff --git a/CHANGES.txt b/CHANGES.txt
index 6b3a705..e0e8079 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -7,6 +7,7 @@
  * configure populate_io_cache_on_flush per-CF (CASSANDRA-4694)
  * allow configuration of internode socket buffer (CASSANDRA-3378)
  * Make sstable directory picking blacklist-aware again (CASSANDRA-5193)
+ * Correctly expire gossip states for edge cases (CASSANDRA-5216)
 
 1.2.1
  * stream undelivered hints on decommission (CASSANDRA-5128)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/b1274b8c/src/java/org/apache/cassandra/gms/Gossiper.java
--
diff --git a/src/java/org/apache/cassandra/gms/Gossiper.java 
b/src/java/org/apache/cassandra/gms/Gossiper.java
index 9ee2f61..c9d0d51 100644
--- a/src/java/org/apache/cassandra/gms/Gossiper.java
+++ b/src/java/org/apache/cassandra/gms/Gossiper.java
@@ -234,6 +234,8 @@ public class Gossiper implements 
IFailureDetectionEventListener, GossiperMBean
 {
 markDead(endpoint, epState);
 }
+else
+epState.markDead();
 }
 
 /**
@@ -389,8 +391,10 @@ public class Gossiper implements 
IFailureDetectionEventListener, GossiperMBean
 EndpointState epState = endpointStateMap.get(endpoint);
 epState.updateTimestamp(); // make sure we don't evict it too soon
 epState.getHeartBeatState().forceNewerGenerationUnsafe();
-epState.addApplicationState(ApplicationState.STATUS, 
StorageService.instance.valueFactory.removedNonlocal(hostId, 
computeExpireTime()));
+long expireTime = computeExpireTime();
+epState.addApplicationState(ApplicationState.STATUS, 
StorageService.instance.valueFactory.removedNonlocal(hostId, expireTime));
 logger.info(Completing removal of  + endpoint);
+addExpireTimeForEndpoint(endpoint, expireTime);
 endpointStateMap.put(endpoint, epState);
 // ensure at least one gossip round occurs before returning
 try

http://git-wip-us.apache.org/repos/asf/cassandra/blob/b1274b8c/src/java/org/apache/cassandra/service/StorageService.java
--
diff --git a/src/java/org/apache/cassandra/service/StorageService.java 
b/src/java/org/apache/cassandra/service/StorageService.java
index 979b68e..34b2f12 100644
--- a/src/java/org/apache/cassandra/service/StorageService.java
+++ b/src/java/org/apache/cassandra/service/StorageService.java
@@ -1554,7 +1554,10 @@ public class StorageService extends 
NotificationBroadcasterSupport implements IE
 }
 }
 else // now that the gossiper has told us about this nonexistent 
member, notify the gossiper to remove it
+{
+addExpireTimeIfFound(endpoint, extractExpireTime(pieces, 
MessagingService.instance().getVersion(endpoint)));
 removeEndpoint(endpoint);
+}
 }
 
 private void excise(CollectionToken tokens, InetAddress endpoint)



[1/3] git commit: Correctly expire gossip states for edge cases. Patch by yangwei, reviewed by brandonwilliams for CASSANDRA-5216

2013-02-04 Thread brandonwilliams
Correctly expire gossip states for edge cases.
Patch by yangwei, reviewed by brandonwilliams for CASSANDRA-5216


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/75d0f7a3
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/75d0f7a3
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/75d0f7a3

Branch: refs/heads/cassandra-1.2
Commit: 75d0f7a3fa864031b6214cc8fcd619966b96e0a6
Parents: 82de0ec
Author: Brandon Williams brandonwilli...@apache.org
Authored: Mon Feb 4 13:04:58 2013 -0600
Committer: Brandon Williams brandonwilli...@apache.org
Committed: Mon Feb 4 13:07:13 2013 -0600

--
 CHANGES.txt|1 +
 src/java/org/apache/cassandra/gms/Gossiper.java|6 +-
 .../apache/cassandra/service/StorageService.java   |3 +++
 3 files changed, 9 insertions(+), 1 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/75d0f7a3/CHANGES.txt
--
diff --git a/CHANGES.txt b/CHANGES.txt
index 6b3a705..e0e8079 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -7,6 +7,7 @@
  * configure populate_io_cache_on_flush per-CF (CASSANDRA-4694)
  * allow configuration of internode socket buffer (CASSANDRA-3378)
  * Make sstable directory picking blacklist-aware again (CASSANDRA-5193)
+ * Correctly expire gossip states for edge cases (CASSANDRA-5216)
 
 1.2.1
  * stream undelivered hints on decommission (CASSANDRA-5128)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/75d0f7a3/src/java/org/apache/cassandra/gms/Gossiper.java
--
diff --git a/src/java/org/apache/cassandra/gms/Gossiper.java 
b/src/java/org/apache/cassandra/gms/Gossiper.java
index 9ee2f61..c9d0d51 100644
--- a/src/java/org/apache/cassandra/gms/Gossiper.java
+++ b/src/java/org/apache/cassandra/gms/Gossiper.java
@@ -234,6 +234,8 @@ public class Gossiper implements 
IFailureDetectionEventListener, GossiperMBean
 {
 markDead(endpoint, epState);
 }
+else
+epState.markDead();
 }
 
 /**
@@ -389,8 +391,10 @@ public class Gossiper implements 
IFailureDetectionEventListener, GossiperMBean
 EndpointState epState = endpointStateMap.get(endpoint);
 epState.updateTimestamp(); // make sure we don't evict it too soon
 epState.getHeartBeatState().forceNewerGenerationUnsafe();
-epState.addApplicationState(ApplicationState.STATUS, 
StorageService.instance.valueFactory.removedNonlocal(hostId, 
computeExpireTime()));
+long expireTime = computeExpireTime();
+epState.addApplicationState(ApplicationState.STATUS, 
StorageService.instance.valueFactory.removedNonlocal(hostId, expireTime));
 logger.info(Completing removal of  + endpoint);
+addExpireTimeForEndpoint(endpoint, expireTime);
 endpointStateMap.put(endpoint, epState);
 // ensure at least one gossip round occurs before returning
 try

http://git-wip-us.apache.org/repos/asf/cassandra/blob/75d0f7a3/src/java/org/apache/cassandra/service/StorageService.java
--
diff --git a/src/java/org/apache/cassandra/service/StorageService.java 
b/src/java/org/apache/cassandra/service/StorageService.java
index 979b68e..34b2f12 100644
--- a/src/java/org/apache/cassandra/service/StorageService.java
+++ b/src/java/org/apache/cassandra/service/StorageService.java
@@ -1554,7 +1554,10 @@ public class StorageService extends 
NotificationBroadcasterSupport implements IE
 }
 }
 else // now that the gossiper has told us about this nonexistent 
member, notify the gossiper to remove it
+{
+addExpireTimeIfFound(endpoint, extractExpireTime(pieces, 
MessagingService.instance().getVersion(endpoint)));
 removeEndpoint(endpoint);
+}
 }
 
 private void excise(CollectionToken tokens, InetAddress endpoint)



[3/3] git commit: Merge branch 'cassandra-1.2' into trunk

2013-02-04 Thread brandonwilliams
Updated Branches:
  refs/heads/cassandra-1.2 82de0ec75 - 75d0f7a3f
  refs/heads/trunk 58db3ce98 - d216b0d28


Merge branch 'cassandra-1.2' into trunk

Conflicts:
CHANGES.txt


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/d216b0d2
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/d216b0d2
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/d216b0d2

Branch: refs/heads/trunk
Commit: d216b0d28b82efc42608fc249a6d212152271c14
Parents: 58db3ce 75d0f7a
Author: Brandon Williams brandonwilli...@apache.org
Authored: Mon Feb 4 13:07:38 2013 -0600
Committer: Brandon Williams brandonwilli...@apache.org
Committed: Mon Feb 4 13:07:38 2013 -0600

--
 CHANGES.txt |1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/d216b0d2/CHANGES.txt
--



[2/3] git commit: Correctly expire gossip states for edge cases. Patch by yangwei, reviewed by brandonwilliams for CASSANDRA-5216

2013-02-04 Thread brandonwilliams
Correctly expire gossip states for edge cases.
Patch by yangwei, reviewed by brandonwilliams for CASSANDRA-5216


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/75d0f7a3
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/75d0f7a3
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/75d0f7a3

Branch: refs/heads/trunk
Commit: 75d0f7a3fa864031b6214cc8fcd619966b96e0a6
Parents: 82de0ec
Author: Brandon Williams brandonwilli...@apache.org
Authored: Mon Feb 4 13:04:58 2013 -0600
Committer: Brandon Williams brandonwilli...@apache.org
Committed: Mon Feb 4 13:07:13 2013 -0600

--
 CHANGES.txt|1 +
 src/java/org/apache/cassandra/gms/Gossiper.java|6 +-
 .../apache/cassandra/service/StorageService.java   |3 +++
 3 files changed, 9 insertions(+), 1 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/75d0f7a3/CHANGES.txt
--
diff --git a/CHANGES.txt b/CHANGES.txt
index 6b3a705..e0e8079 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -7,6 +7,7 @@
  * configure populate_io_cache_on_flush per-CF (CASSANDRA-4694)
  * allow configuration of internode socket buffer (CASSANDRA-3378)
  * Make sstable directory picking blacklist-aware again (CASSANDRA-5193)
+ * Correctly expire gossip states for edge cases (CASSANDRA-5216)
 
 1.2.1
  * stream undelivered hints on decommission (CASSANDRA-5128)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/75d0f7a3/src/java/org/apache/cassandra/gms/Gossiper.java
--
diff --git a/src/java/org/apache/cassandra/gms/Gossiper.java 
b/src/java/org/apache/cassandra/gms/Gossiper.java
index 9ee2f61..c9d0d51 100644
--- a/src/java/org/apache/cassandra/gms/Gossiper.java
+++ b/src/java/org/apache/cassandra/gms/Gossiper.java
@@ -234,6 +234,8 @@ public class Gossiper implements 
IFailureDetectionEventListener, GossiperMBean
 {
 markDead(endpoint, epState);
 }
+else
+epState.markDead();
 }
 
 /**
@@ -389,8 +391,10 @@ public class Gossiper implements 
IFailureDetectionEventListener, GossiperMBean
 EndpointState epState = endpointStateMap.get(endpoint);
 epState.updateTimestamp(); // make sure we don't evict it too soon
 epState.getHeartBeatState().forceNewerGenerationUnsafe();
-epState.addApplicationState(ApplicationState.STATUS, 
StorageService.instance.valueFactory.removedNonlocal(hostId, 
computeExpireTime()));
+long expireTime = computeExpireTime();
+epState.addApplicationState(ApplicationState.STATUS, 
StorageService.instance.valueFactory.removedNonlocal(hostId, expireTime));
 logger.info(Completing removal of  + endpoint);
+addExpireTimeForEndpoint(endpoint, expireTime);
 endpointStateMap.put(endpoint, epState);
 // ensure at least one gossip round occurs before returning
 try

http://git-wip-us.apache.org/repos/asf/cassandra/blob/75d0f7a3/src/java/org/apache/cassandra/service/StorageService.java
--
diff --git a/src/java/org/apache/cassandra/service/StorageService.java 
b/src/java/org/apache/cassandra/service/StorageService.java
index 979b68e..34b2f12 100644
--- a/src/java/org/apache/cassandra/service/StorageService.java
+++ b/src/java/org/apache/cassandra/service/StorageService.java
@@ -1554,7 +1554,10 @@ public class StorageService extends 
NotificationBroadcasterSupport implements IE
 }
 }
 else // now that the gossiper has told us about this nonexistent 
member, notify the gossiper to remove it
+{
+addExpireTimeIfFound(endpoint, extractExpireTime(pieces, 
MessagingService.instance().getVersion(endpoint)));
 removeEndpoint(endpoint);
+}
 }
 
 private void excise(CollectionToken tokens, InetAddress endpoint)



[jira] [Commented] (CASSANDRA-5199) Avoid serializing to byte[] on commitlog append

2013-02-04 Thread Yuki Morishita (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570513#comment-13570513
 ] 

Yuki Morishita commented on CASSANDRA-5199:
---

+1 for both.
nit: you need the license header to new files in 2.0.

 Avoid serializing to byte[] on commitlog append
 ---

 Key: CASSANDRA-5199
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5199
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Reporter: Jonathan Ellis
Assignee: Jonathan Ellis
Priority: Minor
 Fix For: 2.0

 Attachments: 5199-1.2.txt, 5199-2.0.txt


 We used to avoid re-serializing RowMutations by caching the byte[] that we 
 read off the wire.  We don't do that anymore since we fixed MessagingService 
 to not create intermediate byte[].  So we should serialize the mutation 
 directly to the commitlog.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (CASSANDRA-5216) fix bug on decommission and removeNode

2013-02-04 Thread Brandon Williams (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-5216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brandon Williams updated CASSANDRA-5216:


Assignee: yangwei
  Labels: gossip  (was: )

 fix bug on decommission and removeNode
 --

 Key: CASSANDRA-5216
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5216
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Affects Versions: 1.2.1
Reporter: yangwei
Assignee: yangwei
  Labels: gossip
 Fix For: 1.2.1

 Attachments: 0001-fix-isAlive-bug-on-decommission.patch, 
 0002-fix-expireTime-bug-on-removeNode.patch, 
 0003-fix-expireTime-bug-on-handleStateRemoving-after-rebo.patch


 1. If one node decommissioned, the epState.isAlive is always true since it is 
 DEAD_STATES in convict(). 0001 patch fixes that.
 2. If we removeNode B on A,  we should put expireTime of B in 
 expireTimeEndpointMap of A, otherwise the epState of B will never be removed 
 from gossip entirely. 0002 patch fixes that.
 3. After removeNode B, C reboots and receives epState of B. Since B is not in 
 the tokenMetadata, C just wipes away B without recording B's expireTime. In 
 this case, B will be always in gossip. 0003 patch fixes that.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (CASSANDRA-5216) fix bug on decommission and removeNode

2013-02-04 Thread Brandon Williams (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-5216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brandon Williams resolved CASSANDRA-5216.
-

Resolution: Fixed

Good work, thanks.  Committed.

 fix bug on decommission and removeNode
 --

 Key: CASSANDRA-5216
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5216
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Affects Versions: 1.2.1
Reporter: yangwei
Assignee: yangwei
  Labels: gossip
 Fix For: 1.2.1

 Attachments: 0001-fix-isAlive-bug-on-decommission.patch, 
 0002-fix-expireTime-bug-on-removeNode.patch, 
 0003-fix-expireTime-bug-on-handleStateRemoving-after-rebo.patch


 1. If one node decommissioned, the epState.isAlive is always true since it is 
 DEAD_STATES in convict(). 0001 patch fixes that.
 2. If we removeNode B on A,  we should put expireTime of B in 
 expireTimeEndpointMap of A, otherwise the epState of B will never be removed 
 from gossip entirely. 0002 patch fixes that.
 3. After removeNode B, C reboots and receives epState of B. Since B is not in 
 the tokenMetadata, C just wipes away B without recording B's expireTime. In 
 this case, B will be always in gossip. 0003 patch fixes that.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (CASSANDRA-5216) fix bug on decommission and removeNode

2013-02-04 Thread Brandon Williams (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-5216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brandon Williams updated CASSANDRA-5216:


Fix Version/s: (was: 1.2.1)
   1.2.2

 fix bug on decommission and removeNode
 --

 Key: CASSANDRA-5216
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5216
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Affects Versions: 1.2.1
Reporter: yangwei
Assignee: yangwei
  Labels: gossip
 Fix For: 1.2.2

 Attachments: 0001-fix-isAlive-bug-on-decommission.patch, 
 0002-fix-expireTime-bug-on-removeNode.patch, 
 0003-fix-expireTime-bug-on-handleStateRemoving-after-rebo.patch


 1. If one node decommissioned, the epState.isAlive is always true since it is 
 DEAD_STATES in convict(). 0001 patch fixes that.
 2. If we removeNode B on A,  we should put expireTime of B in 
 expireTimeEndpointMap of A, otherwise the epState of B will never be removed 
 from gossip entirely. 0002 patch fixes that.
 3. After removeNode B, C reboots and receives epState of B. Since B is not in 
 the tokenMetadata, C just wipes away B without recording B's expireTime. In 
 this case, B will be always in gossip. 0003 patch fixes that.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[Cassandra Wiki] Trivial Update of FeliciaCa by FeliciaCa

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The FeliciaCa page has been changed by FeliciaCa:
http://wiki.apache.org/cassandra/FeliciaCa

New page:
Yo bros !! I am ABBIE CLEMENTS. I reside in Lakeland. My age is 37.BR
BR
I am taking admission in The Colorful Academy situated in St. Louis. I am 
working as Tuner. I like to do Volunteer. My dad name is Penn  and he is a 
Sexologist. My momy is a Manual Therapist.BR
BR
Here is my weblog: [[http://www.aftonbags.com|louis vuitton wallet]]


[jira] [Resolved] (CASSANDRA-3564) flush before shutdown so restart is faster

2013-02-04 Thread Brandon Williams (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-3564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brandon Williams resolved CASSANDRA-3564.
-

Resolution: Later

Given that no one has ever asked for this behavior, I think I'm in favor of not 
doing this until someone needs/wants it.

 flush before shutdown so restart is faster
 --

 Key: CASSANDRA-3564
 URL: https://issues.apache.org/jira/browse/CASSANDRA-3564
 Project: Cassandra
  Issue Type: New Feature
  Components: Packaging
Reporter: Jonathan Ellis
Assignee: Brandon Williams
Priority: Minor
 Fix For: 2.0

 Attachments: 3564.patch, 3564.patch


 Cassandra handles flush in its shutdown hook for durable_writes=false CFs 
 (otherwise we're *guaranteed* to lose data) but leaves it up to the operator 
 otherwise.  I'd rather leave it that way to offer these semantics:
 - cassandra stop = shutdown nicely [explicit flush, then kill -int]
 - kill -INT = shutdown faster but don't lose any updates [current behavior]
 - kill -KILL = lose most recent writes unless durable_writes=true and batch 
 commits are on [also current behavior]
 But if it's not reasonable to use nodetool from the init script then I guess 
 we can just make the shutdown hook flush everything.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (CASSANDRA-3564) flush before shutdown so restart is faster

2013-02-04 Thread Brandon Williams (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-3564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brandon Williams updated CASSANDRA-3564:


Fix Version/s: (was: 2.0)

 flush before shutdown so restart is faster
 --

 Key: CASSANDRA-3564
 URL: https://issues.apache.org/jira/browse/CASSANDRA-3564
 Project: Cassandra
  Issue Type: New Feature
  Components: Packaging
Reporter: Jonathan Ellis
Assignee: Brandon Williams
Priority: Minor
 Attachments: 3564.patch, 3564.patch


 Cassandra handles flush in its shutdown hook for durable_writes=false CFs 
 (otherwise we're *guaranteed* to lose data) but leaves it up to the operator 
 otherwise.  I'd rather leave it that way to offer these semantics:
 - cassandra stop = shutdown nicely [explicit flush, then kill -int]
 - kill -INT = shutdown faster but don't lose any updates [current behavior]
 - kill -KILL = lose most recent writes unless durable_writes=true and batch 
 commits are on [also current behavior]
 But if it's not reasonable to use nodetool from the init script then I guess 
 we can just make the shutdown hook flush everything.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[Cassandra Wiki] Trivial Update of Dane06Z by Dane06Z

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The Dane06Z page has been changed by Dane06Z:
http://wiki.apache.org/cassandra/Dane06Z?action=diffrev1=3rev2=4

- Hello !! The name is SELMA CHRISTIAN. I am 35. I might join The Tough 
Institute located in Murrieta.BR
- One day i would want to do Wine. My daddy name is Douglas and he is a 
Internist. My mother is a Falconer.BR
+ Hey !! The name is DELIA LLOYD. This winter iam going to be 32.BR
+ I go to night school at The Direct Institute which has a branch in Lake 
Charles. I am a fan of Leather Crafting. My daddy name is Charles and he is a 
Soldier. My mom is a Nanny.BR
  BR
- Also visit my web-site: [[http://www.chanelstorehandbags.com|chanel bag]]
+ Feel free to visit my web site - [[http://www.replica-chanelbagsol.com|chanel 
bag]]
  


[jira] [Commented] (CASSANDRA-4687) Exception: DecoratedKey(xxx, yyy) != DecoratedKey(zzz, kkk)

2013-02-04 Thread Ron Siemens (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-4687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570586#comment-13570586
 ] 

Ron Siemens commented on CASSANDRA-4687:


I am getting this error every few hours.  I am using Titan 0.2.0 and Cassandra 
1.1.6 on a single node.  Titan creates the keyspace, so whatever defaults it is 
using.  It happens when I am loading data into the graph, it is doing many 
small batches of work in a single thread, using Titan's graph.stopTransaction() 
for each batch.  It doesn't always happen, but has happened daily after a 
couple hours usage.  I am testing so I drop the keyspace and recreate it quite 
a bit.  My running cassandra is in this state right now.  Once it gets in this 
state, it doesn't clear up, until I shut down and restart.

 Exception: DecoratedKey(xxx, yyy) != DecoratedKey(zzz, kkk)
 ---

 Key: CASSANDRA-4687
 URL: https://issues.apache.org/jira/browse/CASSANDRA-4687
 Project: Cassandra
  Issue Type: Bug
  Components: Core
 Environment: CentOS 6.3 64-bit, Oracle JRE 1.6.0.33 64-bit, single 
 node cluster
Reporter: Leonid Shalupov
Assignee: Pavel Yaskevich
 Fix For: 1.2.2

 Attachments: 4687-debugging.txt


 Under heavy write load sometimes cassandra fails with assertion error.
 git bisect leads to commit 295aedb278e7a495213241b66bc46d763fd4ce66.
 works fine if global key/row caches disabled in code.
 {quote}
 java.lang.AssertionError: DecoratedKey(xxx, yyy) != DecoratedKey(zzz, kkk) in 
 /var/lib/cassandra/data/...-he-1-Data.db
   at 
 org.apache.cassandra.db.columniterator.SSTableSliceIterator.init(SSTableSliceIterator.java:60)
   at 
 org.apache.cassandra.db.filter.SliceQueryFilter.getSSTableColumnIterator(SliceQueryFilter.java:67)
   at 
 org.apache.cassandra.db.filter.QueryFilter.getSSTableColumnIterator(QueryFilter.java:79)
   at 
 org.apache.cassandra.db.CollationController.collectAllData(CollationController.java:256)
   at 
 org.apache.cassandra.db.CollationController.getTopLevelColumns(CollationController.java:64)
   at 
 org.apache.cassandra.db.ColumnFamilyStore.getTopLevelColumns(ColumnFamilyStore.java:1345)
   at 
 org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1207)
   at 
 org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1142)
   at org.apache.cassandra.db.Table.getRow(Table.java:378)
   at 
 org.apache.cassandra.db.SliceFromReadCommand.getRow(SliceFromReadCommand.java:69)
   at 
 org.apache.cassandra.service.StorageProxy$LocalReadRunnable.runMayThrow(StorageProxy.java:819)
   at 
 org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1253)
   at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
   at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
   at java.lang.Thread.run(Thread.java:662)
 {quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CASSANDRA-4687) Exception: DecoratedKey(xxx, yyy) != DecoratedKey(zzz, kkk)

2013-02-04 Thread Yuki Morishita (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-4687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570611#comment-13570611
 ] 

Yuki Morishita commented on CASSANDRA-4687:
---

If you are creating and dropping the same CF often, you are hitting 
CASSANDRA-5202.
I _think_ there are some other cases that cause this, but I don't have a clue 
yet.

 Exception: DecoratedKey(xxx, yyy) != DecoratedKey(zzz, kkk)
 ---

 Key: CASSANDRA-4687
 URL: https://issues.apache.org/jira/browse/CASSANDRA-4687
 Project: Cassandra
  Issue Type: Bug
  Components: Core
 Environment: CentOS 6.3 64-bit, Oracle JRE 1.6.0.33 64-bit, single 
 node cluster
Reporter: Leonid Shalupov
Assignee: Pavel Yaskevich
 Fix For: 1.2.2

 Attachments: 4687-debugging.txt


 Under heavy write load sometimes cassandra fails with assertion error.
 git bisect leads to commit 295aedb278e7a495213241b66bc46d763fd4ce66.
 works fine if global key/row caches disabled in code.
 {quote}
 java.lang.AssertionError: DecoratedKey(xxx, yyy) != DecoratedKey(zzz, kkk) in 
 /var/lib/cassandra/data/...-he-1-Data.db
   at 
 org.apache.cassandra.db.columniterator.SSTableSliceIterator.init(SSTableSliceIterator.java:60)
   at 
 org.apache.cassandra.db.filter.SliceQueryFilter.getSSTableColumnIterator(SliceQueryFilter.java:67)
   at 
 org.apache.cassandra.db.filter.QueryFilter.getSSTableColumnIterator(QueryFilter.java:79)
   at 
 org.apache.cassandra.db.CollationController.collectAllData(CollationController.java:256)
   at 
 org.apache.cassandra.db.CollationController.getTopLevelColumns(CollationController.java:64)
   at 
 org.apache.cassandra.db.ColumnFamilyStore.getTopLevelColumns(ColumnFamilyStore.java:1345)
   at 
 org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1207)
   at 
 org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1142)
   at org.apache.cassandra.db.Table.getRow(Table.java:378)
   at 
 org.apache.cassandra.db.SliceFromReadCommand.getRow(SliceFromReadCommand.java:69)
   at 
 org.apache.cassandra.service.StorageProxy$LocalReadRunnable.runMayThrow(StorageProxy.java:819)
   at 
 org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1253)
   at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
   at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
   at java.lang.Thread.run(Thread.java:662)
 {quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[Cassandra Wiki] Trivial Update of SkyePritc by SkyePritc

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The SkyePritc page has been changed by SkyePritc:
http://wiki.apache.org/cassandra/SkyePritc?action=diffrev1=3rev2=4

- Hey guys !! The name is BERNIECE BOWERS. I am turning 31.BR
- I might take night schooling in The Giant Military School of Kind Education 
located in Atlantic City. I want to become a Cook. I like to do Scrapbooking. 
My father name is Burke  and he is a Race driver. My mummy is a Farmer.BR
+ Hey fellas !! The name is KISHA STONE. I am turning 32.BR
+ My school's name is The Young Finishing School of Impish Education which has 
a branch in Newburgh. I am self employed as a Marksman. I like to do Pinball 
Machines. My papa name is Edward  and he is a Principal. My momy is a 
Ethologist.BR
  BR
- Feel free to surf to my site ... [[http://www.fairchanelstore.com|chanel 
wallet]]
+ Also visit my blog :: [[http://www.fairchanelstore.com|chanel bag]]
  


[jira] [Resolved] (CASSANDRA-4774) IndexOutOfBoundsException in org.apache.cassandra.gms.Gossiper.sendGossip

2013-02-04 Thread Brandon Williams (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-4774?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brandon Williams resolved CASSANDRA-4774.
-

Resolution: Cannot Reproduce

 IndexOutOfBoundsException in org.apache.cassandra.gms.Gossiper.sendGossip
 -

 Key: CASSANDRA-4774
 URL: https://issues.apache.org/jira/browse/CASSANDRA-4774
 Project: Cassandra
  Issue Type: Bug
Affects Versions: 1.0.0
 Environment: Saw this when looking through some logs in version 1.0.0 
 system was under a lot of load.
Reporter: Benjamin Coverston
Assignee: Brandon Williams
Priority: Minor

 ERROR [GossipTasks:1] 2012-10-06 10:47:48,390 Gossiper.java (line 169) Gossip 
 error
 java.lang.IndexOutOfBoundsException: Index: 13, Size: 5
   at java.util.ArrayList.RangeCheck(ArrayList.java:547)
   at java.util.ArrayList.get(ArrayList.java:322)
   at org.apache.cassandra.gms.Gossiper.sendGossip(Gossiper.java:541)
   at 
 org.apache.cassandra.gms.Gossiper.doGossipToUnreachableMember(Gossiper.java:575)
   at org.apache.cassandra.gms.Gossiper.access$300(Gossiper.java:59)
   at org.apache.cassandra.gms.Gossiper$GossipTask.run(Gossiper.java:141)
   at 
 org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor$UncomplainingRunnable.run(DebuggableScheduledThreadPoolExecutor.java:79)
   at 
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
   at 
 java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
   at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
   at 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
   at 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
   at 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
   at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
   at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
   at java.lang.Thread.run(Thread.java:662)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CASSANDRA-4687) Exception: DecoratedKey(xxx, yyy) != DecoratedKey(zzz, kkk)

2013-02-04 Thread Ron Siemens (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-4687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570656#comment-13570656
 ] 

Ron Siemens commented on CASSANDRA-4687:


I'll manually invalidate the caches when dropping the keyspace - will report 
back if it still occurs - thanks.

 Exception: DecoratedKey(xxx, yyy) != DecoratedKey(zzz, kkk)
 ---

 Key: CASSANDRA-4687
 URL: https://issues.apache.org/jira/browse/CASSANDRA-4687
 Project: Cassandra
  Issue Type: Bug
  Components: Core
 Environment: CentOS 6.3 64-bit, Oracle JRE 1.6.0.33 64-bit, single 
 node cluster
Reporter: Leonid Shalupov
Assignee: Pavel Yaskevich
 Fix For: 1.2.2

 Attachments: 4687-debugging.txt


 Under heavy write load sometimes cassandra fails with assertion error.
 git bisect leads to commit 295aedb278e7a495213241b66bc46d763fd4ce66.
 works fine if global key/row caches disabled in code.
 {quote}
 java.lang.AssertionError: DecoratedKey(xxx, yyy) != DecoratedKey(zzz, kkk) in 
 /var/lib/cassandra/data/...-he-1-Data.db
   at 
 org.apache.cassandra.db.columniterator.SSTableSliceIterator.init(SSTableSliceIterator.java:60)
   at 
 org.apache.cassandra.db.filter.SliceQueryFilter.getSSTableColumnIterator(SliceQueryFilter.java:67)
   at 
 org.apache.cassandra.db.filter.QueryFilter.getSSTableColumnIterator(QueryFilter.java:79)
   at 
 org.apache.cassandra.db.CollationController.collectAllData(CollationController.java:256)
   at 
 org.apache.cassandra.db.CollationController.getTopLevelColumns(CollationController.java:64)
   at 
 org.apache.cassandra.db.ColumnFamilyStore.getTopLevelColumns(ColumnFamilyStore.java:1345)
   at 
 org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1207)
   at 
 org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1142)
   at org.apache.cassandra.db.Table.getRow(Table.java:378)
   at 
 org.apache.cassandra.db.SliceFromReadCommand.getRow(SliceFromReadCommand.java:69)
   at 
 org.apache.cassandra.service.StorageProxy$LocalReadRunnable.runMayThrow(StorageProxy.java:819)
   at 
 org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1253)
   at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
   at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
   at java.lang.Thread.run(Thread.java:662)
 {quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CASSANDRA-4687) Exception: DecoratedKey(xxx, yyy) != DecoratedKey(zzz, kkk)

2013-02-04 Thread Pavel Yaskevich (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-4687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570661#comment-13570661
 ] 

Pavel Yaskevich commented on CASSANDRA-4687:


If it does work with invalidated key cache or with caches turned off, that 
means it could be a concurrency problem in cache implementation...

 Exception: DecoratedKey(xxx, yyy) != DecoratedKey(zzz, kkk)
 ---

 Key: CASSANDRA-4687
 URL: https://issues.apache.org/jira/browse/CASSANDRA-4687
 Project: Cassandra
  Issue Type: Bug
  Components: Core
 Environment: CentOS 6.3 64-bit, Oracle JRE 1.6.0.33 64-bit, single 
 node cluster
Reporter: Leonid Shalupov
Assignee: Pavel Yaskevich
 Fix For: 1.2.2

 Attachments: 4687-debugging.txt


 Under heavy write load sometimes cassandra fails with assertion error.
 git bisect leads to commit 295aedb278e7a495213241b66bc46d763fd4ce66.
 works fine if global key/row caches disabled in code.
 {quote}
 java.lang.AssertionError: DecoratedKey(xxx, yyy) != DecoratedKey(zzz, kkk) in 
 /var/lib/cassandra/data/...-he-1-Data.db
   at 
 org.apache.cassandra.db.columniterator.SSTableSliceIterator.init(SSTableSliceIterator.java:60)
   at 
 org.apache.cassandra.db.filter.SliceQueryFilter.getSSTableColumnIterator(SliceQueryFilter.java:67)
   at 
 org.apache.cassandra.db.filter.QueryFilter.getSSTableColumnIterator(QueryFilter.java:79)
   at 
 org.apache.cassandra.db.CollationController.collectAllData(CollationController.java:256)
   at 
 org.apache.cassandra.db.CollationController.getTopLevelColumns(CollationController.java:64)
   at 
 org.apache.cassandra.db.ColumnFamilyStore.getTopLevelColumns(ColumnFamilyStore.java:1345)
   at 
 org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1207)
   at 
 org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1142)
   at org.apache.cassandra.db.Table.getRow(Table.java:378)
   at 
 org.apache.cassandra.db.SliceFromReadCommand.getRow(SliceFromReadCommand.java:69)
   at 
 org.apache.cassandra.service.StorageProxy$LocalReadRunnable.runMayThrow(StorageProxy.java:819)
   at 
 org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1253)
   at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
   at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
   at java.lang.Thread.run(Thread.java:662)
 {quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[Cassandra Wiki] Trivial Update of AnjaChest by AnjaChest

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The AnjaChest page has been changed by AnjaChest:
http://wiki.apache.org/cassandra/AnjaChest?action=diffrev1=2rev2=3

- Wassp People !! My name is CHANTELLE BARRETT. This summer iam going to be 
29.BR
- My school's name is The Helpful Institute of Spotted People built at 
Honolulu. I have a job as Merchant. I also like to Walking. My daddy name is 
Walter  and he is a Secretary General. My mummy is a Gardener.BR
+ Hello !! I am LONI PATRICK. This winter iam going to be 24.BR
+ I have applied for distance learning at The Dreary Academy which has a branch 
in Rancho Cucamonga. I have a job as Construction worker. One day i would want 
to do Bonsai. My dad name is John  and he is a Politician. My momy is a 
Cowboy.BR
  BR
- my web page; [[http://www.shoesashlen.com|red sole shoes]]
+ Also visit my web blog - [[http://www.shoesashlen.com|louboutin shoes]]
  


[Cassandra Wiki] Trivial Update of JuliannCo by JuliannCo

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The JuliannCo page has been changed by JuliannCo:
http://wiki.apache.org/cassandra/JuliannCo

New page:
Hey !! The name is KENDA MEDINA. My father name is James  and he is a Technical 
engineer.BR
My momy is a Secretary General.BR
BR
my web-site :: [[http://dutifulphone.webs.com|beats audio]]


[Cassandra Wiki] Trivial Update of cheap_dre_beats_z2U5 by JuliannCo

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The cheap_dre_beats_z2U5 page has been changed by JuliannCo:
http://wiki.apache.org/cassandra/cheap_dre_beats_z2U5

New page:
Unpleasant present progenitor likely universe, persons can along with. 
[[http://dutifulphone.webs.com|http://dutifulphone.webs.com]] The departed body 
system in restored, in the event that placed into the factors for the town of 
new york. His own perform definitely will repeatedly burst several kingdom, 
heal typically the great advantages are not too much out there.BR
BR
Xiao Chen seized the chance instruct regarding the malefic undead fingers Wang 
Rujin with when.BR
BR
 Wicked queen was eight hundred years are not into 
[[http://dutifulphone.webs.com|cheap beats by dre]] that teaching, who do not 
understand him or her these days for you to autumn, the particular helping 
without thoughts as well as misery was in fact perhaps 
[[http://dutifulphone.webs.com|cheap monster beats]] by no means come home, he 
had placed down all of the. Half inchBR
BR
The other some skeletal system from the demon to make sure you molt, it can be 
wicked coach your progenitor in the system Yitui, at this time when the 
coaching side branch connected with Imam place state whatever additionally are 
not able to [[http://dutifulphone.webs.com|cheap dr dre beats]] will continue 
to wear down. Several molt mainly because San Po enshrined in your 
portrait.BR
BR
Be aware of the satanic force and also Xiao Chendi romantic relationship, pass 
on within Zhang to educate this relationship aided by the healthy adjust, 
eventhough hang out is undoubtedly resistant in order to desires as well as 
interests. However it is not only on individuals.


[Cassandra Wiki] Trivial Update of Anhavokqz by Anhavokqz

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The Anhavokqz page has been changed by Anhavokqz:
http://wiki.apache.org/cassandra/Anhavokqz

New page:
I am turning 55. I and my sister go to The Professional Preparatory located in 
Lakeland.BR
I am self employed as a King. My hobby is Model airplanes. My daddy name is 
Neil  and he is a Wine Connoisseur. My mummy is a Educationalist.BR
BR
My web-site: [[http://discountlouisvuittonrespectonline.webs.com|louis vuitton 
neverfull]]


[jira] [Created] (CASSANDRA-5220) Repair improvements when using vnodes

2013-02-04 Thread Brandon Williams (JIRA)
Brandon Williams created CASSANDRA-5220:
---

 Summary: Repair improvements when using vnodes
 Key: CASSANDRA-5220
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5220
 Project: Cassandra
  Issue Type: Improvement
  Components: Core
Affects Versions: 1.2.0 beta 1
Reporter: Brandon Williams
Assignee: Yuki Morishita
 Fix For: 1.2.2


Currently when using vnodes, repair takes much longer to complete than without 
them.  This appears at least in part because it's using a session per range and 
processing them sequentially.  This generates a lot of log spam with vnodes, 
and while being gentler and lighter on hard disk deployments, ssd-based 
deployments would often prefer that repair be as fast as possible.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[Cassandra Wiki] Trivial Update of Dane06Z by Dane06Z

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The Dane06Z page has been changed by Dane06Z:
http://wiki.apache.org/cassandra/Dane06Z?action=diffrev1=4rev2=5

- Hey !! The name is DELIA LLOYD. This winter iam going to be 32.BR
- I go to night school at The Direct Institute which has a branch in Lake 
Charles. I am a fan of Leather Crafting. My daddy name is Charles and he is a 
Soldier. My mom is a Nanny.BR
+ Hey fellas !! I am HILDE GUTIERREZ. My age is 40. I go to night school at The 
Mammoth Finishing School built at Huntington.BR
+ My hobby is Smoking Pipes. My daddy name is Alan  and he is a Market 
Gardener. My mother is a Sales Person.BR
  BR
- Feel free to visit my web site - [[http://www.replica-chanelbagsol.com|chanel 
bag]]
+ Visit my website - [[http://www.replica-chanelbagsol.com|chanel bag]]
  


[Cassandra Wiki] Trivial Update of AntonioBu by AntonioBu

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The AntonioBu page has been changed by AntonioBu:
http://wiki.apache.org/cassandra/AntonioBu

New page:
Howdy !! I am JANINA AYALA. This jan i will be 50. I might take night schooling 
in The Bumpy School located in Port Saint Lucie.BRI work as a Executor. I 
like to do Building Dollhouses. My papa name is Edwin and he is a 
Documentalist. My momy is a Deputy.BRBRAlso visit my blog post: 
[[http://www.cleanscreenxcel.com/cheapmonsterbeatsbydre.html|monster beats 
headphones]]


[jira] [Commented] (CASSANDRA-5067) Allow basic yaml properties to be specified via JVM parameters

2013-02-04 Thread Brandon Williams (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570748#comment-13570748
 ] 

Brandon Williams commented on CASSANDRA-5067:
-

If people want to configure things this way, I'd be ok with that, but it's not 
simple to do.  For every property we allow overriding, we're going to have to 
explicitly define it.  Every time we add a new property, we'll have to think 
about whether it needs an override as well, and probably forget to add it and 
have to do it later.  There's no way for us to provide a generic namespace to 
override system properties, since even if we scanned through them all and 
filtered by prefix we wouldn't know how to cast them to the different values 
needed, not to mention in some cases like data_file_directories we'd have to 
use CSV or something to represent an array.  So there is a lot of technical 
debt to be incurred by doing this, even though it seems simple on the surface.

The only way to really do this would be to have another yaml file which could 
override the first, and merge them at startup.  But then we end up with 2x the 
files and you'd still ultimately be writing the 'override file' 
programmatically, so I don't see much point in going that route, either.

 Allow basic yaml properties to be specified via JVM parameters
 --

 Key: CASSANDRA-5067
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5067
 Project: Cassandra
  Issue Type: Improvement
Reporter: Ahmed Bashir
Priority: Trivial
  Labels: ponies

 In the case of large clusters, each node operates with a cassandra.yaml that 
 is nearly identical to every other node with the exception of some basic 
 properties:
 listen_address
 rpc_address 
 initial_token
 data_file_directories
 etc
 If it was possible to specific these as JVM parameters, we wouldn't have to 
 prepare a customized cassandra.yaml for each node but rather share a single 
 cassandra.yaml file.  This is increasingly important when the number of nodes 
 being managed gets very large. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[Cassandra Wiki] Trivial Update of JuliannCo by JuliannCo

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The JuliannCo page has been changed by JuliannCo:
http://wiki.apache.org/cassandra/JuliannCo?action=diffrev1=1rev2=2

- Hey !! The name is KENDA MEDINA. My father name is James  and he is a 
Technical engineer.BR
- My momy is a Secretary General.BR
+ Yo guys !! I am MICKIE CONNER. My father name is Nils  and he is a 
Bricklayer.BR
+ My mom is a Ethologist.BR
  BR
- my web-site :: [[http://dutifulphone.webs.com|beats audio]]
+ My weblog; [[http://dutifulphone.webs.com|monster beats by dre]]
  


[jira] [Commented] (CASSANDRA-5220) Repair improvements when using vnodes

2013-02-04 Thread Yuki Morishita (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570751#comment-13570751
 ] 

Yuki Morishita commented on CASSANDRA-5220:
---

The reason the repair is done almost sequentially is to synchronize merkle tree 
creation across the nodes(CASSANDRA-2816). If we could form the groups of nodes 
that do not overlap for several ranges, we would be able to parallelize 
create/validate merkle tree.

 Repair improvements when using vnodes
 -

 Key: CASSANDRA-5220
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5220
 Project: Cassandra
  Issue Type: Improvement
  Components: Core
Affects Versions: 1.2.0 beta 1
Reporter: Brandon Williams
Assignee: Yuki Morishita
 Fix For: 1.2.2


 Currently when using vnodes, repair takes much longer to complete than 
 without them.  This appears at least in part because it's using a session per 
 range and processing them sequentially.  This generates a lot of log spam 
 with vnodes, and while being gentler and lighter on hard disk deployments, 
 ssd-based deployments would often prefer that repair be as fast as possible.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Comment Edited] (CASSANDRA-5220) Repair improvements when using vnodes

2013-02-04 Thread Yuki Morishita (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570751#comment-13570751
 ] 

Yuki Morishita edited comment on CASSANDRA-5220 at 2/4/13 11:53 PM:


The reason the repair is done almost sequentially is to synchronize merkle tree 
creation across the nodes(CASSANDRA-2816). If we could form the groups of nodes 
that do not overlap for several ranges, we would be able to parallelize 
create/validate merkle tree across those groups.

  was (Author: yukim):
The reason the repair is done almost sequentially is to synchronize merkle 
tree creation across the nodes(CASSANDRA-2816). If we could form the groups of 
nodes that do not overlap for several ranges, we would be able to parallelize 
create/validate merkle tree.
  
 Repair improvements when using vnodes
 -

 Key: CASSANDRA-5220
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5220
 Project: Cassandra
  Issue Type: Improvement
  Components: Core
Affects Versions: 1.2.0 beta 1
Reporter: Brandon Williams
Assignee: Yuki Morishita
 Fix For: 1.2.2


 Currently when using vnodes, repair takes much longer to complete than 
 without them.  This appears at least in part because it's using a session per 
 range and processing them sequentially.  This generates a lot of log spam 
 with vnodes, and while being gentler and lighter on hard disk deployments, 
 ssd-based deployments would often prefer that repair be as fast as possible.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[Cassandra Wiki] Trivial Update of MollyLore by MollyLore

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The MollyLore page has been changed by MollyLore:
http://wiki.apache.org/cassandra/MollyLore

New page:
I have a house in San Diego. Soon i will turn 45. I am taking admission in The 
Grand Preparatory of Quality Children situated in Boise.BR
I am self employed as a Masseur. I like to do Football. My dad name is Penn  
and he is a Lyricist. My mom is a Physiognomist.BR
BR
Here is my homepage; [[http://www.justbeatsphone.com|monster beats headphones]]


[Cassandra Wiki] Trivial Update of AnjaChest by AnjaChest

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The AnjaChest page has been changed by AnjaChest:
http://wiki.apache.org/cassandra/AnjaChest?action=diffrev1=3rev2=4

+ Hey !! I am TEISHA BISHOP. Soon i will turn 60. My school's name is The Mimic 
Prep School in Grand Rapids. I am self employed as a Consul. My hobby is 
Currency. My father name is Ian  and he is a Agricultural and food scientist. 
My mummy is a Philosopher.BR
- Hello !! I am LONI PATRICK. This winter iam going to be 24.BR
- I have applied for distance learning at The Dreary Academy which has a branch 
in Rancho Cucamonga. I have a job as Construction worker. One day i would want 
to do Bonsai. My dad name is John  and he is a Politician. My momy is a 
Cowboy.BR
  BR
- Also visit my web blog - [[http://www.shoesashlen.com|louboutin shoes]]
+ my website; [[http://www.shoesashlen.com|christian louboutin replica]]
  


[Cassandra Wiki] Trivial Update of AnjaChest by AnjaChest

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The AnjaChest page has been changed by AnjaChest:
http://wiki.apache.org/cassandra/AnjaChest?action=diffrev1=4rev2=5

- Hey !! I am TEISHA BISHOP. Soon i will turn 60. My school's name is The Mimic 
Prep School in Grand Rapids. I am self employed as a Consul. My hobby is 
Currency. My father name is Ian  and he is a Agricultural and food scientist. 
My mummy is a Philosopher.BR
+ Hello !! I am MICKI BRADLEY. Soon i will turn 38. I go to night school at The 
Polite Academy of Popular People which has a branch in Naples.BR
  BR
+ I have a job as Custodian. I like to do Digital Photography. My father name 
is James  and he is a Blacksmith. My momy is a Butcher.BR
+ BR
- my website; [[http://www.shoesashlen.com|christian louboutin replica]]
+ Visit my homepage ... [[http://www.shoesashlen.com|christian louboutin sale]]
  


[Cassandra Wiki] Trivial Update of AllenGalv by AllenGalv

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The AllenGalv page has been changed by AllenGalv:
http://wiki.apache.org/cassandra/AllenGalv?action=diffrev1=1rev2=2

- Hi !! I am GRETCHEN FERRELL. I am staying at Fayetteville.BR
- I have a job as Importer. I like Grip Strength. My daddy name is Stephen and 
he is a Police officer. My mother is a Astrophysicist.BR
+ Hello !! The name is ARLYNE BROWNING. I reside in Inverness.BR
+ I want to become a Verger. One day i would want to do Fountain Pens. My papa 
name is Douglas and he is a Environmental scientist. My mummy is a 
Coroner.BR
  BR
- Also visit my weblog - [[http://www.aldorabag.com|chanel bag]]
+ Look at my blog post ... [[http://www.aldorabag.com|chanel replica]]
  


[Cassandra Wiki] Trivial Update of AutumnShe by AutumnShe

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The AutumnShe page has been changed by AutumnShe:
http://wiki.apache.org/cassandra/AutumnShe

New page:
Hi !! I am REBBECA HAMILTON. I live in South Lyon.BR
BR
I am turning 43. One day i would want to do R/C Helicopters. My father name is 
Rhett and he is a Bureaucrat. My momy is a Cabinet-maker.BR
BR
my blog ... [[http://www.dressesonit.com|cheap wedding dresses]]


[jira] [Commented] (CASSANDRA-5067) Allow basic yaml properties to be specified via JVM parameters

2013-02-04 Thread Ahmed Bashir (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570862#comment-13570862
 ] 

Ahmed Bashir commented on CASSANDRA-5067:
-

DatabaseDescriptor.java has a static init block where loadYaml() is called.  We 
could follow that with loadOverrides() to see if any of the fields in 
Config.java have overrides.  Everything in Config can be overridden, just like 
everything in Config can be loaded from a yaml file.  There's no need to reason 
about whether new fields can be overridden or not, just like we don't have to 
think about whether or not they can be specified in the yaml file.

To my knowledge, there's nothing in the yaml file that can't be specified on 
the command line in some canonical form (numbers, strings, lists, etc)

Additional more files is a nonstarter IMO


 Allow basic yaml properties to be specified via JVM parameters
 --

 Key: CASSANDRA-5067
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5067
 Project: Cassandra
  Issue Type: Improvement
Reporter: Ahmed Bashir
Priority: Trivial
  Labels: ponies

 In the case of large clusters, each node operates with a cassandra.yaml that 
 is nearly identical to every other node with the exception of some basic 
 properties:
 listen_address
 rpc_address 
 initial_token
 data_file_directories
 etc
 If it was possible to specific these as JVM parameters, we wouldn't have to 
 prepare a customized cassandra.yaml for each node but rather share a single 
 cassandra.yaml file.  This is increasingly important when the number of nodes 
 being managed gets very large. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Comment Edited] (CASSANDRA-5067) Allow basic yaml properties to be specified via JVM parameters

2013-02-04 Thread Ahmed Bashir (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570862#comment-13570862
 ] 

Ahmed Bashir edited comment on CASSANDRA-5067 at 2/5/13 1:59 AM:
-

DatabaseDescriptor.java has a static init block where loadYaml() is called.  We 
could follow that with loadOverrides() to see if any of the fields in 
Config.java have overrides.  Everything in Config can be overridden, just like 
everything in Config can be loaded from a yaml file.  There's no need to reason 
about whether new fields can be overridden or not, just like we don't have to 
think about whether or not they can be specified in the yaml file.

To my knowledge, there's nothing in the yaml file that can't be specified on 
the command line in some canonical form (numbers, strings, lists, etc)

Introducing more (yaml) files is a nonstarter IMO


  was (Author: abashir):
DatabaseDescriptor.java has a static init block where loadYaml() is called. 
 We could follow that with loadOverrides() to see if any of the fields in 
Config.java have overrides.  Everything in Config can be overridden, just like 
everything in Config can be loaded from a yaml file.  There's no need to reason 
about whether new fields can be overridden or not, just like we don't have to 
think about whether or not they can be specified in the yaml file.

To my knowledge, there's nothing in the yaml file that can't be specified on 
the command line in some canonical form (numbers, strings, lists, etc)

Additional more files is a nonstarter IMO

  
 Allow basic yaml properties to be specified via JVM parameters
 --

 Key: CASSANDRA-5067
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5067
 Project: Cassandra
  Issue Type: Improvement
Reporter: Ahmed Bashir
Priority: Trivial
  Labels: ponies

 In the case of large clusters, each node operates with a cassandra.yaml that 
 is nearly identical to every other node with the exception of some basic 
 properties:
 listen_address
 rpc_address 
 initial_token
 data_file_directories
 etc
 If it was possible to specific these as JVM parameters, we wouldn't have to 
 prepare a customized cassandra.yaml for each node but rather share a single 
 cassandra.yaml file.  This is increasingly important when the number of nodes 
 being managed gets very large. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[Cassandra Wiki] Trivial Update of MollyLore by MollyLore

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The MollyLore page has been changed by MollyLore:
http://wiki.apache.org/cassandra/MollyLore?action=diffrev1=1rev2=3

+ I am staying at Davidson County. I am turning 20. My school's name is The 
Frozen Boarding School of Reduced People located in Arvada. I have a job as 
Lawyer. I am a fan of Learning An Instrument. My father name is Randall  and he 
is a Poetrist. My momy is a Speech Therapist.BR
- I have a house in San Diego. Soon i will turn 45. I am taking admission in 
The Grand Preparatory of Quality Children situated in Boise.BR
- I am self employed as a Masseur. I like to do Football. My dad name is Penn  
and he is a Lyricist. My mom is a Physiognomist.BR
  BR
- Here is my homepage; [[http://www.justbeatsphone.com|monster beats 
headphones]]
+ Here is my web site ... [[http://www.justbeatsphone.com|dr dre headphones 
review]]
  


[Cassandra Wiki] Trivial Update of AutumnShe by AutumnShe

2013-02-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Cassandra Wiki for 
change notification.

The AutumnShe page has been changed by AutumnShe:
http://wiki.apache.org/cassandra/AutumnShe?action=diffrev1=1rev2=3

- Hi !! I am REBBECA HAMILTON. I live in South Lyon.BR
+ Hi !! I am KATI RAMSEY. I am from Richland. My age is 31.BR
+ I like to do Baking. My father name is Brian and he is a Financial analyst. 
My mummy is a Bailiff.BR
  BR
- I am turning 43. One day i would want to do R/C Helicopters. My father name 
is Rhett and he is a Bureaucrat. My momy is a Cabinet-maker.BR
- BR
- my blog ... [[http://www.dressesonit.com|cheap wedding dresses]]
+ Feel free to surf to my weblog; [[http://www.dressesonit.com|cheap wedding 
dresses]]
  


[jira] [Commented] (CASSANDRA-5196) IllegalStateException thrown when running new installation with old data directories

2013-02-04 Thread Haifeng Wang (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570914#comment-13570914
 ] 

Haifeng Wang commented on CASSANDRA-5196:
-

Issue reproduced on my machine.
Environment:
Redhat Linux, Cassandra 1.2.1 unzipped to a NFS mounted folder 
(/mnt/storage/cassandra). 
Create data/commitlog folder manually in the NFS folder(mkdir -p 
/mnt/storage/cassandra/data, mkdir -p /mnt/storage/cassandra/commitlog).
config file updated.
Start Cassandra, bin/cassandra -f, same error found.
{quote}
 INFO 22:15:06,283 Found table data in data directories. Consider using the CLI 
to define your schema.
ERROR 22:15:06,495 Stopping the gossiper and the RPC server
ERROR 22:15:06,505 Exception in thread Thread[OptionalTasks:1,5,main]
java.lang.IllegalStateException: No configured daemon
at 
org.apache.cassandra.service.StorageService.stopRPCServer(StorageService.java:314)
at 
org.apache.cassandra.io.util.FileUtils.handleFSError(FileUtils.java:375)
at org.apache.cassandra.db.Directories.init(Directories.java:113)
at org.apache.cassandra.db.Directories.create(Directories.java:91)
at 
org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:379)
at 
org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:364)
at org.apache.cassandra.db.Table.initCf(Table.java:337)
at org.apache.cassandra.db.Table.init(Table.java:280)
at org.apache.cassandra.db.Table.open(Table.java:110)
at org.apache.cassandra.db.Table.open(Table.java:88)
at org.apache.cassandra.db.Table$1.apply(Table.java:82)
at org.apache.cassandra.db.Table$1.apply(Table.java:79)
at com.google.common.collect.Iterators$9.transform(Iterators.java:893)
at 
com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
at 
org.apache.cassandra.db.ColumnFamilyStore.all(ColumnFamilyStore.java:1664)
at 
org.apache.cassandra.db.MeteredFlusher.countFlushingBytes(MeteredFlusher.java:114)
at org.apache.cassandra.db.MeteredFlusher.run(MeteredFlusher.java:41)
at 
org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor$UncomplainingRunnable.run(DebuggableScheduledThreadPoolExecutor.java:75)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at 
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
 INFO 22:15:06,560 No commitlog files found; skipping replay
{quote}

Remove above folders and restart Cannandra, issue resolved.

 IllegalStateException thrown when running new installation with old data 
 directories
 

 Key: CASSANDRA-5196
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5196
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Affects Versions: 1.2.1
 Environment: CentOS 5.5
Reporter: Robbie Strickland
Assignee: Aleksey Yeschenko
Priority: Minor

 If you install 1.2.1 when there are existing data directories, the scrub 
 operation fails, throwing this exception:
 ERROR [main] 2013-01-29 15:05:06,564 FileUtils.java (line 373) Stopping the 
 gossiper and the RPC server
 ERROR [main] 2013-01-29 15:05:06,564 CassandraDaemon.java (line 387) 
 Exception encountered during startup
 java.lang.IllegalStateException: No configured daemon
   at 
 org.apache.cassandra.service.StorageService.stopRPCServer(StorageService.java:314)
   at 
 org.apache.cassandra.io.util.FileUtils.handleFSError(FileUtils.java:375)
   at org.apache.cassandra.db.Directories.init(Directories.java:113)
   at org.apache.cassandra.db.Directories.create(Directories.java:91)
   at 
 org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:403)
   at 
 org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:174)
   at 
 org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:370)
   at 
 org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:413)
 This condition should produce a more reasonable exception.

--
This message 

[jira] [Commented] (CASSANDRA-5196) IllegalStateException thrown when running new installation with old data directories

2013-02-04 Thread Aleksey Yeschenko (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570919#comment-13570919
 ] 

Aleksey Yeschenko commented on CASSANDRA-5196:
--

What OS user was used when you created the /mnt/storage/cassandra/data 
directory? Did you use sudo? Did you run bin/cassandra -f as the same user? 

 IllegalStateException thrown when running new installation with old data 
 directories
 

 Key: CASSANDRA-5196
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5196
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Affects Versions: 1.2.1
 Environment: CentOS 5.5
Reporter: Robbie Strickland
Assignee: Aleksey Yeschenko
Priority: Minor

 If you install 1.2.1 when there are existing data directories, the scrub 
 operation fails, throwing this exception:
 ERROR [main] 2013-01-29 15:05:06,564 FileUtils.java (line 373) Stopping the 
 gossiper and the RPC server
 ERROR [main] 2013-01-29 15:05:06,564 CassandraDaemon.java (line 387) 
 Exception encountered during startup
 java.lang.IllegalStateException: No configured daemon
   at 
 org.apache.cassandra.service.StorageService.stopRPCServer(StorageService.java:314)
   at 
 org.apache.cassandra.io.util.FileUtils.handleFSError(FileUtils.java:375)
   at org.apache.cassandra.db.Directories.init(Directories.java:113)
   at org.apache.cassandra.db.Directories.create(Directories.java:91)
   at 
 org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:403)
   at 
 org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:174)
   at 
 org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:370)
   at 
 org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:413)
 This condition should produce a more reasonable exception.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CASSANDRA-5196) IllegalStateException thrown when running new installation with old data directories

2013-02-04 Thread Haifeng Wang (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570922#comment-13570922
 ] 

Haifeng Wang commented on CASSANDRA-5196:
-

RHEL 6.2, 64bit.
All operations were done by root user.

 IllegalStateException thrown when running new installation with old data 
 directories
 

 Key: CASSANDRA-5196
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5196
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Affects Versions: 1.2.1
 Environment: CentOS 5.5
Reporter: Robbie Strickland
Assignee: Aleksey Yeschenko
Priority: Minor

 If you install 1.2.1 when there are existing data directories, the scrub 
 operation fails, throwing this exception:
 ERROR [main] 2013-01-29 15:05:06,564 FileUtils.java (line 373) Stopping the 
 gossiper and the RPC server
 ERROR [main] 2013-01-29 15:05:06,564 CassandraDaemon.java (line 387) 
 Exception encountered during startup
 java.lang.IllegalStateException: No configured daemon
   at 
 org.apache.cassandra.service.StorageService.stopRPCServer(StorageService.java:314)
   at 
 org.apache.cassandra.io.util.FileUtils.handleFSError(FileUtils.java:375)
   at org.apache.cassandra.db.Directories.init(Directories.java:113)
   at org.apache.cassandra.db.Directories.create(Directories.java:91)
   at 
 org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:403)
   at 
 org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:174)
   at 
 org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:370)
   at 
 org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:413)
 This condition should produce a more reasonable exception.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Comment Edited] (CASSANDRA-5196) IllegalStateException thrown when running new installation with old data directories

2013-02-04 Thread Haifeng Wang (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570922#comment-13570922
 ] 

Haifeng Wang edited comment on CASSANDRA-5196 at 2/5/13 3:44 AM:
-

RHEL 6.2, 64bit.
All operations were done by root user.
/mnt/storage/cassandra not removed. data and commitlog folders removed.
{quote}

drwxr-xr-x 4 root root  4096 Feb  4 22:18 cassandra
{quote}

  was (Author: haifeng):
RHEL 6.2, 64bit.
All operations were done by root user.
  
 IllegalStateException thrown when running new installation with old data 
 directories
 

 Key: CASSANDRA-5196
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5196
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Affects Versions: 1.2.1
 Environment: CentOS 5.5
Reporter: Robbie Strickland
Assignee: Aleksey Yeschenko
Priority: Minor

 If you install 1.2.1 when there are existing data directories, the scrub 
 operation fails, throwing this exception:
 ERROR [main] 2013-01-29 15:05:06,564 FileUtils.java (line 373) Stopping the 
 gossiper and the RPC server
 ERROR [main] 2013-01-29 15:05:06,564 CassandraDaemon.java (line 387) 
 Exception encountered during startup
 java.lang.IllegalStateException: No configured daemon
   at 
 org.apache.cassandra.service.StorageService.stopRPCServer(StorageService.java:314)
   at 
 org.apache.cassandra.io.util.FileUtils.handleFSError(FileUtils.java:375)
   at org.apache.cassandra.db.Directories.init(Directories.java:113)
   at org.apache.cassandra.db.Directories.create(Directories.java:91)
   at 
 org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:403)
   at 
 org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:174)
   at 
 org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:370)
   at 
 org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:413)
 This condition should produce a more reasonable exception.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CASSANDRA-5196) IllegalStateException thrown when running new installation with old data directories

2013-02-04 Thread Aleksey Yeschenko (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13571027#comment-13571027
 ] 

Aleksey Yeschenko commented on CASSANDRA-5196:
--

For some reason Java fails to create the directories. Or at least 
directory.mkdirs() call returns false. Unfortunately Java's file api won't give 
you any details, other than it thinks it failed - I don't see what we can do 
about those cases.

I'd like you to try one other thing, though.

remove /mnt/storage/cassandra/data

Start Cassandra (if I'm reading you comment right - it should start fine).

Stop Cassandra. Remove /mnt/storage/cassandra/data/* - all the sstable 
directories inside data, but NOT /mnt/storage/cassandra/data/ itself. Then 
start Cassandra again ant tell me if it works all right or fails as if you 
created it manually. Thanks. 

 IllegalStateException thrown when running new installation with old data 
 directories
 

 Key: CASSANDRA-5196
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5196
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Affects Versions: 1.2.1
 Environment: CentOS 5.5
Reporter: Robbie Strickland
Assignee: Aleksey Yeschenko
Priority: Minor

 If you install 1.2.1 when there are existing data directories, the scrub 
 operation fails, throwing this exception:
 ERROR [main] 2013-01-29 15:05:06,564 FileUtils.java (line 373) Stopping the 
 gossiper and the RPC server
 ERROR [main] 2013-01-29 15:05:06,564 CassandraDaemon.java (line 387) 
 Exception encountered during startup
 java.lang.IllegalStateException: No configured daemon
   at 
 org.apache.cassandra.service.StorageService.stopRPCServer(StorageService.java:314)
   at 
 org.apache.cassandra.io.util.FileUtils.handleFSError(FileUtils.java:375)
   at org.apache.cassandra.db.Directories.init(Directories.java:113)
   at org.apache.cassandra.db.Directories.create(Directories.java:91)
   at 
 org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:403)
   at 
 org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:174)
   at 
 org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:370)
   at 
 org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:413)
 This condition should produce a more reasonable exception.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CASSANDRA-5196) IllegalStateException thrown when running new installation with old data directories

2013-02-04 Thread Haifeng Wang (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13571084#comment-13571084
 ] 

Haifeng Wang commented on CASSANDRA-5196:
-

The workaround is do not create the folder data manually. Let Cassandra 
create it. Then start Cassandra. If create the data folder manually, will get 
the error.
All these operations are about the first time to run Cassandra. 

 IllegalStateException thrown when running new installation with old data 
 directories
 

 Key: CASSANDRA-5196
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5196
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Affects Versions: 1.2.1
 Environment: CentOS 5.5
Reporter: Robbie Strickland
Assignee: Aleksey Yeschenko
Priority: Minor

 If you install 1.2.1 when there are existing data directories, the scrub 
 operation fails, throwing this exception:
 ERROR [main] 2013-01-29 15:05:06,564 FileUtils.java (line 373) Stopping the 
 gossiper and the RPC server
 ERROR [main] 2013-01-29 15:05:06,564 CassandraDaemon.java (line 387) 
 Exception encountered during startup
 java.lang.IllegalStateException: No configured daemon
   at 
 org.apache.cassandra.service.StorageService.stopRPCServer(StorageService.java:314)
   at 
 org.apache.cassandra.io.util.FileUtils.handleFSError(FileUtils.java:375)
   at org.apache.cassandra.db.Directories.init(Directories.java:113)
   at org.apache.cassandra.db.Directories.create(Directories.java:91)
   at 
 org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:403)
   at 
 org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:174)
   at 
 org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:370)
   at 
 org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:413)
 This condition should produce a more reasonable exception.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Comment Edited] (CASSANDRA-5196) IllegalStateException thrown when running new installation with old data directories

2013-02-04 Thread Haifeng Wang (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13571084#comment-13571084
 ] 

Haifeng Wang edited comment on CASSANDRA-5196 at 2/5/13 6:29 AM:
-

The workaround is do not create the folder data manually. Let Cassandra 
create it. Then start Cassandra. If create the data folder manually, will get 
the error.
All these operations are about the first time to run Cassandra. 
{quote}
Stop Cassandra. Remove /mnt/storage/cassandra/data/* - all the sstable 
directories inside data, but NOT /mnt/storage/cassandra/data/ itself. Then 
start Cassandra again ant tell me if it works all right or fails as if you 
created it manually. Thanks.
{quote}
Run Cassandra successfully, then stop it, remove 
/mnt/storage/cassandra/data/* and run Cassandra again, the Cassandra started 
without error.

  was (Author: haifeng):
The workaround is do not create the folder data manually. Let Cassandra 
create it. Then start Cassandra. If create the data folder manually, will get 
the error.
All these operations are about the first time to run Cassandra. 
  
 IllegalStateException thrown when running new installation with old data 
 directories
 

 Key: CASSANDRA-5196
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5196
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Affects Versions: 1.2.1
 Environment: CentOS 5.5
Reporter: Robbie Strickland
Assignee: Aleksey Yeschenko
Priority: Minor

 If you install 1.2.1 when there are existing data directories, the scrub 
 operation fails, throwing this exception:
 ERROR [main] 2013-01-29 15:05:06,564 FileUtils.java (line 373) Stopping the 
 gossiper and the RPC server
 ERROR [main] 2013-01-29 15:05:06,564 CassandraDaemon.java (line 387) 
 Exception encountered during startup
 java.lang.IllegalStateException: No configured daemon
   at 
 org.apache.cassandra.service.StorageService.stopRPCServer(StorageService.java:314)
   at 
 org.apache.cassandra.io.util.FileUtils.handleFSError(FileUtils.java:375)
   at org.apache.cassandra.db.Directories.init(Directories.java:113)
   at org.apache.cassandra.db.Directories.create(Directories.java:91)
   at 
 org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:403)
   at 
 org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:174)
   at 
 org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:370)
   at 
 org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:413)
 This condition should produce a more reasonable exception.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Comment Edited] (CASSANDRA-5196) IllegalStateException thrown when running new installation with old data directories

2013-02-04 Thread Haifeng Wang (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13570914#comment-13570914
 ] 

Haifeng Wang edited comment on CASSANDRA-5196 at 2/5/13 6:33 AM:
-

Issue reproduced on my machine.
Environment:
Redhat Linux, Cassandra 1.2.1 unzipped to a NFS mounted folder 
(/mnt/storage/cassandra). 
Create data/commitlog folder manually in the NFS folder(mkdir -p 
/mnt/storage/cassandra/data, mkdir -p /mnt/storage/cassandra/commitlog).
config file updated.
Start Cassandra, bin/cassandra -f, same error found.
{quote}
 INFO 22:15:06,283 Found table data in data directories. Consider using the CLI 
to define your schema.
ERROR 22:15:06,495 Stopping the gossiper and the RPC server
ERROR 22:15:06,505 Exception in thread Thread[OptionalTasks:1,5,main]
java.lang.IllegalStateException: No configured daemon
at 
org.apache.cassandra.service.StorageService.stopRPCServer(StorageService.java:314)
at 
org.apache.cassandra.io.util.FileUtils.handleFSError(FileUtils.java:375)
at org.apache.cassandra.db.Directories.init(Directories.java:113)
at org.apache.cassandra.db.Directories.create(Directories.java:91)
at 
org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:379)
at 
org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:364)
at org.apache.cassandra.db.Table.initCf(Table.java:337)
at org.apache.cassandra.db.Table.init(Table.java:280)
at org.apache.cassandra.db.Table.open(Table.java:110)
at org.apache.cassandra.db.Table.open(Table.java:88)
at org.apache.cassandra.db.Table$1.apply(Table.java:82)
at org.apache.cassandra.db.Table$1.apply(Table.java:79)
at com.google.common.collect.Iterators$9.transform(Iterators.java:893)
at 
com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
at 
org.apache.cassandra.db.ColumnFamilyStore.all(ColumnFamilyStore.java:1664)
at 
org.apache.cassandra.db.MeteredFlusher.countFlushingBytes(MeteredFlusher.java:114)
at org.apache.cassandra.db.MeteredFlusher.run(MeteredFlusher.java:41)
at 
org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor$UncomplainingRunnable.run(DebuggableScheduledThreadPoolExecutor.java:75)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at 
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
 INFO 22:15:06,560 No commitlog files found; skipping replay
{quote}

Remove above folders(data/commitlog) and restart Cannandra, issue resolved.

  was (Author: haifeng):
Issue reproduced on my machine.
Environment:
Redhat Linux, Cassandra 1.2.1 unzipped to a NFS mounted folder 
(/mnt/storage/cassandra). 
Create data/commitlog folder manually in the NFS folder(mkdir -p 
/mnt/storage/cassandra/data, mkdir -p /mnt/storage/cassandra/commitlog).
config file updated.
Start Cassandra, bin/cassandra -f, same error found.
{quote}
 INFO 22:15:06,283 Found table data in data directories. Consider using the CLI 
to define your schema.
ERROR 22:15:06,495 Stopping the gossiper and the RPC server
ERROR 22:15:06,505 Exception in thread Thread[OptionalTasks:1,5,main]
java.lang.IllegalStateException: No configured daemon
at 
org.apache.cassandra.service.StorageService.stopRPCServer(StorageService.java:314)
at 
org.apache.cassandra.io.util.FileUtils.handleFSError(FileUtils.java:375)
at org.apache.cassandra.db.Directories.init(Directories.java:113)
at org.apache.cassandra.db.Directories.create(Directories.java:91)
at 
org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:379)
at 
org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:364)
at org.apache.cassandra.db.Table.initCf(Table.java:337)
at org.apache.cassandra.db.Table.init(Table.java:280)
at org.apache.cassandra.db.Table.open(Table.java:110)
at org.apache.cassandra.db.Table.open(Table.java:88)
at org.apache.cassandra.db.Table$1.apply(Table.java:82)
at org.apache.cassandra.db.Table$1.apply(Table.java:79)
at 

[jira] [Comment Edited] (CASSANDRA-5196) IllegalStateException thrown when running new installation with old data directories

2013-02-04 Thread Haifeng Wang (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-5196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13571084#comment-13571084
 ] 

Haifeng Wang edited comment on CASSANDRA-5196 at 2/5/13 6:39 AM:
-

{quote}
Stop Cassandra. Remove /mnt/storage/cassandra/data/* - all the sstable 
directories inside data, but NOT /mnt/storage/cassandra/data/ itself. Then 
start Cassandra again ant tell me if it works all right or fails as if you 
created it manually. Thanks.
{quote}
Run Cassandra successfully, then stop it, remove 
/mnt/storage/cassandra/data/* and run Cassandra again, the Cassandra started 
without error.

Then I did following test, no error found.
Remove all folders/files under /mnt/storage/cassandra/, create data folder 
manually, start Cassandra. 



  was (Author: haifeng):
The workaround is do not create the folder data manually. Let Cassandra 
create it. Then start Cassandra. If create the data folder manually, will get 
the error.
All these operations are about the first time to run Cassandra. 
{quote}
Stop Cassandra. Remove /mnt/storage/cassandra/data/* - all the sstable 
directories inside data, but NOT /mnt/storage/cassandra/data/ itself. Then 
start Cassandra again ant tell me if it works all right or fails as if you 
created it manually. Thanks.
{quote}
Run Cassandra successfully, then stop it, remove 
/mnt/storage/cassandra/data/* and run Cassandra again, the Cassandra started 
without error.
  
 IllegalStateException thrown when running new installation with old data 
 directories
 

 Key: CASSANDRA-5196
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5196
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Affects Versions: 1.2.1
 Environment: CentOS 5.5
Reporter: Robbie Strickland
Assignee: Aleksey Yeschenko
Priority: Minor

 If you install 1.2.1 when there are existing data directories, the scrub 
 operation fails, throwing this exception:
 ERROR [main] 2013-01-29 15:05:06,564 FileUtils.java (line 373) Stopping the 
 gossiper and the RPC server
 ERROR [main] 2013-01-29 15:05:06,564 CassandraDaemon.java (line 387) 
 Exception encountered during startup
 java.lang.IllegalStateException: No configured daemon
   at 
 org.apache.cassandra.service.StorageService.stopRPCServer(StorageService.java:314)
   at 
 org.apache.cassandra.io.util.FileUtils.handleFSError(FileUtils.java:375)
   at org.apache.cassandra.db.Directories.init(Directories.java:113)
   at org.apache.cassandra.db.Directories.create(Directories.java:91)
   at 
 org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:403)
   at 
 org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:174)
   at 
 org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:370)
   at 
 org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:413)
 This condition should produce a more reasonable exception.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Created] (CASSANDRA-5221) NPE while upgrading from 1.1 to 1.2

2013-02-04 Thread Vijay (JIRA)
Vijay created CASSANDRA-5221:


 Summary: NPE while upgrading from 1.1 to 1.2
 Key: CASSANDRA-5221
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5221
 Project: Cassandra
  Issue Type: Bug
Affects Versions: 1.2.1
Reporter: Vijay


ERROR 00:29:25,208 Exception encountered during startup
java.lang.NullPointerException
at 
org.apache.cassandra.db.SystemTable.upgradeSystemData(SystemTable.java:161)
at 
org.apache.cassandra.db.SystemTable.finishStartup(SystemTable.java:107)
at 
org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:276)
at 
org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:370)
at 
org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:413)
java.lang.NullPointerException
at 
org.apache.cassandra.db.SystemTable.upgradeSystemData(SystemTable.java:161)
at 
org.apache.cassandra.db.SystemTable.finishStartup(SystemTable.java:107)
at 
org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:276)
at 
org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:370)
at 
org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:413)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira