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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]