cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From slebre...@apache.org
Subject git commit: Clearer message for assertion error
Date Tue, 01 Apr 2014 10:09:40 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.0 d8c29a3f7 -> 55fba6ab0


Clearer message for assertion error


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

Branch: refs/heads/cassandra-2.0
Commit: 55fba6ab0b5521711ed5c33a2d8ddadd2edd8906
Parents: d8c29a3
Author: Sylvain Lebresne <sylvain@datastax.com>
Authored: Tue Apr 1 12:09:27 2014 +0200
Committer: Sylvain Lebresne <sylvain@datastax.com>
Committed: Tue Apr 1 12:09:27 2014 +0200

----------------------------------------------------------------------
 src/java/org/apache/cassandra/db/filter/ExtendedFilter.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/55fba6ab/src/java/org/apache/cassandra/db/filter/ExtendedFilter.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/filter/ExtendedFilter.java b/src/java/org/apache/cassandra/db/filter/ExtendedFilter.java
index 5aa1ea9..5c3662b 100644
--- a/src/java/org/apache/cassandra/db/filter/ExtendedFilter.java
+++ b/src/java/org/apache/cassandra/db/filter/ExtendedFilter.java
@@ -255,7 +255,8 @@ public abstract class ExtendedFilter
              * 2) We don't yet allow non-indexed range slice with filters in CQL3 (i.e. this
will never be
              * called by CFS.filter() for composites).
              */
-            assert !(cfs.getComparator() instanceof CompositeType);
+            assert !(cfs.getComparator() instanceof CompositeType) : "Sequential scan with
filters is not supported (if you just created an index, you "
+                                                                     + "need to wait for
the creation to be propagated to all nodes before querying it)";
 
             if (!needsExtraQuery(rowKey.key, data))
                 return null;


Mime
View raw message