From 54fe3d7ccf7cf1680ea6e798735541b1a1042673 Mon Sep 17 00:00:00 2001 From: Amnon Heiman Date: Sun, 4 Oct 2015 12:49:51 +0300 Subject: [PATCH] ColumnFamilyMetrics: Use schedule for the column family timer The logic of that timer, should be that after some defined time from the previous request a new one will be sent, the actuall rate is meaningless and only cause delyed request to be sent in a higher frequency after the delayed reponse was returned. Signed-off-by: Amnon Heiman --- src/main/java/org/apache/cassandra/db/ColumnFamilyStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/cassandra/db/ColumnFamilyStore.java b/src/main/java/org/apache/cassandra/db/ColumnFamilyStore.java index e1de881..2ee5cfd 100644 --- a/src/main/java/org/apache/cassandra/db/ColumnFamilyStore.java +++ b/src/main/java/org/apache/cassandra/db/ColumnFamilyStore.java @@ -60,7 +60,7 @@ public class ColumnFamilyStore implements ColumnFamilyStoreMBean { public static void register_mbeans() { TimerTask taskToExecute = new CheckRegistration(); - timer.scheduleAtFixedRate(taskToExecute, 100, INTERVAL); + timer.schedule(taskToExecute, 100, INTERVAL); } public ColumnFamilyStore(String type, String keyspace, String name) {