dcapwell commented on a change in pull request #1180:
URL: https://github.com/apache/cassandra/pull/1180#discussion_r702138546



##########
File path: src/java/org/apache/cassandra/db/ReadCommand.java
##########
@@ -632,6 +654,84 @@ private void maybeDelayForTesting()
         }
     }
 
+    private UnfilteredPartitionIterator 
withQuerySizeTracking(UnfilteredPartitionIterator iterator)
+    {
+        if (!trackWarnings || 
SchemaConstants.isSystemKeyspace(metadata().keyspace)) // exclude internal 
keyspaces
+            return iterator;
+        final long warnThresholdBytes = 
DatabaseDescriptor.getLocalReadTooLargeWarningThresholdKb() * 1024;
+        final long abortThresholdBytes = 
DatabaseDescriptor.getLocalReadTooLargeAbortThresholdKb() * 1024;
+        if (warnThresholdBytes == 0 && abortThresholdBytes == 0)
+            return iterator;
+        class QuerySizeTracking extends Transformation<UnfilteredRowIterator>
+        {
+            private DecoratedKey currentKey;

Review comment:
       original patch I tried being fancy then released this is the straw which 
broke the camels back; may not be the problematic key...  so removed... will 
clean up




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to