You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by GitBox <gi...@apache.org> on 2020/09/11 21:16:43 UTC

[GitHub] [cassandra] maedhroz commented on a change in pull request #750: CASSANDRA-15164 log unusual EstimatedHistogram serializations and deserializations

maedhroz commented on a change in pull request #750:
URL: https://github.com/apache/cassandra/pull/750#discussion_r487294576



##########
File path: src/java/org/apache/cassandra/utils/EstimatedHistogram.java
##########
@@ -390,7 +407,15 @@ public EstimatedHistogram deserialize(DataInputPlus in) throws IOException
                 offsets[i == 0 ? 0 : i - 1] = in.readLong();
                 buckets[i] = in.readLong();
             }
-            return new EstimatedHistogram(offsets, buckets);
+            EstimatedHistogram histogram = new EstimatedHistogram(offsets, buckets);
+
+            if (histogram.isOverflowed())
+            {
+                logger.warn("Deserialized a histogram with {} values greater than the maximum of {}.",
+                            histogram.overflowCount(), histogram.getLargestBucketOffset());

Review comment:
       I think we should have at least some context for what SSTable a reader is actually being built for to go along with this message.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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