You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by GitBox <gi...@apache.org> on 2021/03/16 09:37:54 UTC

[GitHub] [cassandra] jacek-lewandowski commented on a change in pull request #930: CASSANDRA-16522: Fix flaky ClientRequestSizeMetricsTest

jacek-lewandowski commented on a change in pull request #930:
URL: https://github.com/apache/cassandra/pull/930#discussion_r595001948



##########
File path: test/unit/org/apache/cassandra/Util.java
##########
@@ -819,4 +820,38 @@ public static void setUpgradeFromVersion(String version)
                                                    VersionedValue.unsafeMakeVersionedValue(version, v + 1));
         Gossiper.instance.expireUpgradeFromVersion();
     }
+
+    public interface ThrowingRunnable
+    {
+        void run() throws Throwable;
+    }
+
+    @SuppressWarnings("ConstantConditions")
+    public static void retry(ThrowingRunnable runnable, Predicate<Throwable> canRetry, int maxRetries, long delay) throws Throwable

Review comment:
       It is perfectly applicable...




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org