You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ma...@apache.org on 2023/06/15 06:33:28 UTC
[flink] 02/03: [hotfix][test] Adds final keyword to fields in Testing implementation
This is an automated email from the ASF dual-hosted git repository.
mapohl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
commit 968e864fe0bc0cdc4dc0ad9d6654c484a343cf05
Author: Matthias Pohl <ma...@aiven.io>
AuthorDate: Mon Jun 12 13:59:48 2023 +0200
[hotfix][test] Adds final keyword to fields in Testing implementation
Signed-off-by: Matthias Pohl <ma...@aiven.io>
---
.../runtime/highavailability/TestingHighAvailabilityServices.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/highavailability/TestingHighAvailabilityServices.java b/flink-runtime/src/test/java/org/apache/flink/runtime/highavailability/TestingHighAvailabilityServices.java
index 75503f53217..943635073ae 100644
--- a/flink-runtime/src/test/java/org/apache/flink/runtime/highavailability/TestingHighAvailabilityServices.java
+++ b/flink-runtime/src/test/java/org/apache/flink/runtime/highavailability/TestingHighAvailabilityServices.java
@@ -52,10 +52,10 @@ public class TestingHighAvailabilityServices implements HighAvailabilityServices
private volatile Function<JobID, LeaderElectionService> jobMasterLeaderElectionServiceFunction =
ignored -> null;
- private ConcurrentHashMap<JobID, LeaderRetrievalService> jobMasterLeaderRetrievers =
+ private final ConcurrentHashMap<JobID, LeaderRetrievalService> jobMasterLeaderRetrievers =
new ConcurrentHashMap<>();
- private ConcurrentHashMap<JobID, LeaderElectionService> jobManagerLeaderElectionServices =
+ private final ConcurrentHashMap<JobID, LeaderElectionService> jobManagerLeaderElectionServices =
new ConcurrentHashMap<>();
private volatile LeaderElectionService resourceManagerLeaderElectionService;