summaryrefslogtreecommitdiffstats
path: root/messagebus
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2021-01-27 08:53:21 +0100
committerGitHub <noreply@github.com>2021-01-27 08:53:21 +0100
commitd7359f7c72ff06889af594431baf4075e2b4da78 (patch)
treee915ef0fab20774984afbf355158016bcdcb3004 /messagebus
parentfb99ec84858f2c68fcc0d22bc182c0aad3c0cb83 (diff)
Revert "Jonmv/document protocol super config"
Diffstat (limited to 'messagebus')
-rw-r--r--messagebus/src/main/java/com/yahoo/messagebus/test/SimpleMessage.java2
-rw-r--r--messagebus/src/test/java/com/yahoo/messagebus/DynamicThrottlePolicyTest.java5
2 files changed, 4 insertions, 3 deletions
diff --git a/messagebus/src/main/java/com/yahoo/messagebus/test/SimpleMessage.java b/messagebus/src/main/java/com/yahoo/messagebus/test/SimpleMessage.java
index f87bcdbe1bb..0e77d94497e 100644
--- a/messagebus/src/main/java/com/yahoo/messagebus/test/SimpleMessage.java
+++ b/messagebus/src/main/java/com/yahoo/messagebus/test/SimpleMessage.java
@@ -5,7 +5,7 @@ import com.yahoo.messagebus.Message;
import com.yahoo.text.Utf8String;
/**
- * @author havardpe
+ * @author <a href="mailto:havardpe@yahoo-inc.com">Haavard Pettersen</a>
*/
public class SimpleMessage extends Message {
diff --git a/messagebus/src/test/java/com/yahoo/messagebus/DynamicThrottlePolicyTest.java b/messagebus/src/test/java/com/yahoo/messagebus/DynamicThrottlePolicyTest.java
index 63747803e75..7f48edfd48c 100644
--- a/messagebus/src/test/java/com/yahoo/messagebus/DynamicThrottlePolicyTest.java
+++ b/messagebus/src/test/java/com/yahoo/messagebus/DynamicThrottlePolicyTest.java
@@ -101,7 +101,7 @@ public class DynamicThrottlePolicyTest {
CustomTimer timer = new CustomTimer();
DynamicThrottlePolicy policy = new DynamicThrottlePolicy(timer);
int scaleFactor = (int) Math.pow(10, i);
- long operations = 3_000L * scaleFactor;
+ long operations = 3_000 * scaleFactor;
int workPerSuccess = 6;
int numberOfWorkers = 1;
int maximumTasksPerWorker = 100000;
@@ -124,7 +124,7 @@ public class DynamicThrottlePolicyTest {
CustomTimer timer = new CustomTimer();
DynamicThrottlePolicy policy = new DynamicThrottlePolicy(timer);
int scaleFactor = (int) Math.pow(10, i);
- long operations = 5_000L * scaleFactor;
+ long operations = 5_000 * scaleFactor;
// workPerSuccess determines the latency of the simulated server, which again determines the impact of the
// synthetic attractors of the algorithm, around latencies which give (close to) integer log10(1 / latency).
// With a value of 5, the impact is that the algorithm is pushed upwards slightly above 10k window size,
@@ -319,6 +319,7 @@ public class DynamicThrottlePolicyTest {
.collect(toUnmodifiableList());
}
+ /** Performs a tick, and returns whether work was done. */
void tick() {
for (int i = 0; i < numberOfWorkers; i++)
tick(i);