This is an automated email from the ASF dual-hosted git repository.
nathanma pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/amoro.git
The following commit(s) were added to refs/heads/master by this push:
new 3dece7d3f [Hotfix] Fix wrong usage of transient in
HighAvailabilityContainer (#2817)
3dece7d3f is described below
commit 3dece7d3fab37b8942af6917a8cd19d000e3f01a
Author: Paul Lin <[email protected]>
AuthorDate: Thu May 9 00:44:03 2024 +0800
[Hotfix] Fix wrong usage of transient in HighAvailabilityContainer (#2817)
Fix wrong usage of transient in HighAvailabilityContainer
---
.../main/java/org/apache/amoro/server/HighAvailabilityContainer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/amoro-ams/amoro-ams-server/src/main/java/org/apache/amoro/server/HighAvailabilityContainer.java
b/amoro-ams/amoro-ams-server/src/main/java/org/apache/amoro/server/HighAvailabilityContainer.java
index 12cdc46b5..922f0d1e1 100644
---
a/amoro-ams/amoro-ams-server/src/main/java/org/apache/amoro/server/HighAvailabilityContainer.java
+++
b/amoro-ams/amoro-ams-server/src/main/java/org/apache/amoro/server/HighAvailabilityContainer.java
@@ -46,7 +46,7 @@ public class HighAvailabilityContainer implements
LeaderLatchListener {
private final String optimizingServiceMasterPath;
private final AmsServerInfo tableServiceServerInfo;
private final AmsServerInfo optimizingServiceServerInfo;
- private transient CountDownLatch followerLath;
+ private volatile CountDownLatch followerLath;
public HighAvailabilityContainer(Configurations serviceConfig) throws
Exception {
if (serviceConfig.getBoolean(ArcticManagementConf.HA_ENABLE)) {