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 2026/10/22 08:53:33 UTC
(cassandra) branch trunk updated: Fix BasicDifferentialCompactionTest on IntelliJ configuration
This is an automated email from the ASF dual-hosted git repository.
bbotella pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra.git
The following commit(s) were added to refs/heads/trunk by this push:
new 5227748d77 Fix BasicDifferentialCompactionTest on IntelliJ configuration
5227748d77 is described below
commit 5227748d77dc0be8ac11ca54e14b7c65ea21c13f
Author: Bernardo Botella <co...@bernardobotella.com>
AuthorDate: Tue Oct 20 15:50:43 2026 +0200
Fix BasicDifferentialCompactionTest on IntelliJ configuration
BasicDifferentialCompactionTest passes under ant but fails 6/6 when run from IntelliJ with the default JUnit run configuration generated by ant generate-idea-files.
patch by Bernardo Botella; reviewed by Dmitry Konstantinov
---
.../apache/cassandra/utils/streamhist/TombstoneHistogram.java | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/java/org/apache/cassandra/utils/streamhist/TombstoneHistogram.java b/src/java/org/apache/cassandra/utils/streamhist/TombstoneHistogram.java
index d464fa9af6..ee0903eb0d 100644
--- a/src/java/org/apache/cassandra/utils/streamhist/TombstoneHistogram.java
+++ b/src/java/org/apache/cassandra/utils/streamhist/TombstoneHistogram.java
@@ -193,4 +193,15 @@ public class TombstoneHistogram
: (int) value;
}
}
+
+ /**
+ * Concatenating TombstoneHistogram prints Object.toString(). That is hashCode()-based on a
+ * plain JVM but identityHashCode-based under the simulator agent (InterceptAgent rewrites Object.toString), which
+ * made the summaries of equal histograms differ when run from the IDE.
+ */
+ @Override
+ public String toString()
+ {
+ return bin.toString();
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org