-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ledger-api-bench-tool: Fix flaky
MetricsCollectorSpec
(#11750)
* Renamed MetricReporter to MetricFormatter * Make MetricsCollector communicate via messages only, not by logging * Logging reports from MetricManger * Cancel periodic report request when stream is done * Removed debug sleep * Fix error when defining reporting period less than one second * Fixed flaky MetricsCollectorSpec test CHANGELOG_BEGIN CHANGELOG_END
- Loading branch information
Showing
10 changed files
with
383 additions
and
283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...er-api-bench-tool/src/main/scala/com/daml/ledger/api/benchtool/metrics/StreamResult.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package com.daml.ledger.api.benchtool.metrics | ||
|
||
sealed trait StreamResult extends Product with Serializable | ||
|
||
object StreamResult { | ||
final case object Ok extends StreamResult | ||
final case object ObjectivesViolated extends StreamResult | ||
} |
Oops, something went wrong.