Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

RC Patch 1.0.1 #486

Merged
merged 4 commits into from
Jun 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-Drevision=1.0.0
-Drevision=1.0.1
-Dlicense.projectName=Corona-Warn-App
-Dlicense.inceptionYear=2020
-Dlicense.licenseName=apache_v2
1 change: 1 addition & 0 deletions common/persistence/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.13</version>
<scope>runtime</scope>
</dependency>
<dependency>
Expand Down
7 changes: 7 additions & 0 deletions services/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@
<artifactId>snakeyaml</artifactId>
<version>1.26</version>
</dependency>
<dependency>
<!-- https://nvd.nist.gov/vuln/detail/CVE-2020-13692 -->
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.13</version>
<scope>runtime</scope>
</dependency>
</dependencies>

<build>
Expand Down
1 change: 0 additions & 1 deletion services/submission/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
<version>2.26.3</version>
<scope>test</scope>
</dependency>

</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ private void updateFakeDelay(long realRequestDuration) {
}

/**
* Gets the current fake delay. Used for monitoring.
* Gets the current fake delay in seconds. Used for monitoring.
* @return the current fake delay
*/
public Double getFakeDelay() {
return fakeDelay;
public Double getFakeDelayInSeconds() {
return fakeDelay / 1000.;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*/
public class BatchCounter {

private static final String SUBMISSION_CONTROLLER_REQUESTS_COUNTER_NAME = "submissionController.requests";
private static final String SUBMISSION_CONTROLLER_REQUESTS_COUNTER_NAME = "submission_controller.requests";
private static final String SUBMISSION_CONTROLLER_REQUESTS_COUNTER_DESCRIPTION
= "Counts requests to the Submission Controller.";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
@Component
@ConfigurationProperties(prefix = "services.submission.monitoring")
public class SubmissionControllerMonitor {
private static final String SUBMISSION_CONTROLLER_CURRENT_FAKE_DELAY = "submissionController.fakeDelay";
private static final String SUBMISSION_CONTROLLER_CURRENT_FAKE_DELAY = "submission_controller.fake_delay_seconds";

private final MeterRegistry meterRegistry;

Expand Down Expand Up @@ -79,7 +79,7 @@ private void initializeCounters() {
*/
public void initializeGauges(SubmissionController submissionController) {
Gauge.builder(SUBMISSION_CONTROLLER_CURRENT_FAKE_DELAY, submissionController,
__ -> submissionController.getFakeDelay())
__ -> submissionController.getFakeDelayInSeconds())
.description("The time that fake requests are delayed to make them indistinguishable from real requests.")
.register(meterRegistry);
}
Expand Down