Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Induce perf regression
Browse files Browse the repository at this point in the history
  • Loading branch information
sudiksha27 committed Aug 27, 2020
1 parent 7dfb6be commit 9c6413e
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ public DialogueAdaptingConjureTimelockService(ConjureTimelockServiceBlocking dia
@Override
public ConjureStartTransactionsResponse startTransactions(AuthHeader authHeader, String namespace,
ConjureStartTransactionsRequest request) {
try {
Thread.sleep(500);
} catch (InterruptedException e) {
// no op
}
return executeInstrumented(() -> dialogueDelegate.startTransactions(authHeader, namespace, request),
() -> conjureTimelockServiceBlockingMetrics.startTransactions().time(),
() -> conjureTimelockServiceBlockingMetrics.startTransactionErrors());
Expand All @@ -64,6 +69,11 @@ public ConjureGetFreshTimestampsResponse getFreshTimestamps(AuthHeader authHeade

@Override
public LeaderTime leaderTime(AuthHeader authHeader, String namespace) {
try {
Thread.sleep(200);
} catch (InterruptedException e) {
// no op
}
return executeInstrumented(() -> dialogueDelegate.leaderTime(authHeader, namespace),
() -> conjureTimelockServiceBlockingMetrics.leaderTime().time(),
() -> conjureTimelockServiceBlockingMetrics.leaderTimeErrors());
Expand Down

0 comments on commit 9c6413e

Please sign in to comment.