mirror of https://github.com/apache/cassandra
- CursorCompactionAllocationGateTest: extract withMeasurementEnv (the repeated preemptive-open/cursor-enabled save-set-restore boilerplate in every @Test), measureBest (the warmup/measured min-allocation loop), captureLastInputBytes, and dumpAllocationProfile (the JFR recording/dump block shared by the three diagnostic tests). No behavior change. - DifferentialCompactionTester: move the allJson helper (duplicated identically in PartialSetDifferentialCompactionTest and PurgeBoundaryDifferentialCompactionTest) to the shared base class and delete both copies. - RandomDifferentialCompactionTest: extract appendNames/appendEqPredicates/appendPlaceholders for the column-name-list and "name = ?" predicate-list building repeated across insertStmt/pkOnlyInsertStmt/updateStmt/cellDeleteStmt/rangeDeleteStmt/deleteStmt. Verified by rerunning the full differential suite (all 15 test classes). |
||
|---|---|---|
| .. | ||
| anttasks/org/apache/cassandra/anttasks | ||
| bin | ||
| burn/org/apache/cassandra | ||
| conf | ||
| data | ||
| distributed/org/apache/cassandra | ||
| harry/main/org/apache/cassandra | ||
| long/org/apache/cassandra | ||
| memory/org/apache/cassandra/db/compaction | ||
| microbench/org/apache/cassandra/test/microbench | ||
| resources | ||
| simulator | ||
| unit | ||