You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by be...@apache.org on 2019/08/09 12:42:49 UTC

[cassandra] branch 15263-debug updated: more debugging

This is an automated email from the ASF dual-hosted git repository.

benedict pushed a commit to branch 15263-debug
in repository https://gitbox.apache.org/repos/asf/cassandra.git


The following commit(s) were added to refs/heads/15263-debug by this push:
     new 6b6f774  more debugging
6b6f774 is described below

commit 6b6f774c526437715bb8fb0b725926d8d4b207e2
Author: Benedict Elliott Smith <be...@apache.org>
AuthorDate: Fri Aug 9 13:42:36 2019 +0100

    more debugging
---
 src/java/org/apache/cassandra/db/ClusteringBound.java | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/src/java/org/apache/cassandra/db/ClusteringBound.java b/src/java/org/apache/cassandra/db/ClusteringBound.java
index c45f7ba..a683423 100644
--- a/src/java/org/apache/cassandra/db/ClusteringBound.java
+++ b/src/java/org/apache/cassandra/db/ClusteringBound.java
@@ -23,6 +23,9 @@ package org.apache.cassandra.db;
 import java.nio.ByteBuffer;
 import java.util.List;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
 import org.apache.cassandra.utils.memory.AbstractAllocator;
 
 /**
@@ -30,6 +33,8 @@ import org.apache.cassandra.utils.memory.AbstractAllocator;
  */
 public class ClusteringBound extends ClusteringBoundOrBoundary
 {
+    private static final Logger logger = LoggerFactory.getLogger(ClusteringBound.class);
+
     /** The smallest start bound, i.e. the one that starts before any row. */
     public static final ClusteringBound BOTTOM = new ClusteringBound(Kind.INCL_START_BOUND, EMPTY_VALUES_ARRAY);
     /** The biggest end bound, i.e. the one that ends after any row. */
@@ -38,6 +43,17 @@ public class ClusteringBound extends ClusteringBoundOrBoundary
     protected ClusteringBound(Kind kind, ByteBuffer[] values)
     {
         super(kind, values);
+        if (kind == Kind.INCL_END_BOUND && values.length == 2 && values[values.length - 1] == null)
+        {
+            try
+            {
+                throw new RuntimeException();
+            }
+            catch (Throwable t)
+            {
+                logger.error("", t);
+            }
+        }
     }
 
     public static ClusteringBound create(Kind kind, ByteBuffer[] values)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org