Skip to content

Commit

Permalink
Fix ServerStatusService.statusWatchers concurrent modification. (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
weixiang1862 authored Dec 20, 2024
1 parent e0d6411 commit 6d262cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/en/changes/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
* BanyanDB: Speed up OAP booting while initializing BanyanDB.
* BanyanDB: Support `@EnableSort` on the column to enable sorting for `IndexRule` and set the default to false.
* Support `Get Effective TTL Configurations` API.
* Fix `ServerStatusService.statusWatchers` concurrent modification.

#### UI

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

package org.apache.skywalking.oap.server.core.status;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import org.apache.skywalking.oap.server.core.CoreModuleConfig;
Expand All @@ -46,7 +46,7 @@ public class ServerStatusService implements Service {
@Getter
private ClusterStatus clusterStatus = new ClusterStatus();

private List<ServerStatusWatcher> statusWatchers = new ArrayList<>();
private List<ServerStatusWatcher> statusWatchers = new CopyOnWriteArrayList<>();

private List<ApplicationConfiguration.ModuleConfiguration> configurations;

Expand Down

0 comments on commit 6d262cc

Please sign in to comment.