Merge branch 'cassandra-5.0' into trunk

This commit is contained in:
Paulo Motta 2025-08-29 14:01:10 -04:00
commit 06f7f5e265
3 changed files with 10 additions and 0 deletions

View File

@ -1,4 +1,5 @@
5.1
* Expose StorageService.dropPreparedStatements via JMX (CASSANDRA-20870)
* Expose Metric for Prepared Statement Cache Size (in bytes) (CASSANDRA-20864)
* Add support for BEGIN TRANSACTION to allow mutations that touch multiple partitions (CASSANDRA-20857)
* AutoRepair: Safeguard Full repair against disk protection(CASSANDRA-20045)

View File

@ -2756,6 +2756,12 @@ public class StorageService extends NotificationBroadcasterSupport implements IE
return statements;
}
@Override
public void dropPreparedStatements(boolean memoryOnly)
{
QueryProcessor.instance.clearPreparedStatements(memoryOnly);
}
public void forceKeyspaceCompaction(boolean splitOutput, String keyspaceName, String... tableNames) throws IOException, ExecutionException, InterruptedException
{
for (ColumnFamilyStore cfStore : getValidColumnFamilies(true, false, keyspaceName, tableNames))

View File

@ -1375,6 +1375,9 @@ public interface StorageServiceMBean extends NotificationEmitter
void setPaxosRepairRaceWait(boolean paxosRepairCoordinatorWait);
boolean getPaxosRepairRaceWait();
public void dropPreparedStatements(boolean memoryOnly);
// Comma delimited list of "nodeId=dc:rack" or "endpoint=dc:rack"
void alterTopology(String updates);
/** Gets the names of all tables for the given keyspace */