You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "abjfh30 (via GitHub)" <gi...@apache.org> on 2026/07/14 08:44:23 UTC
Re: [PR] [FLINK-38783][runtime] Improved TieredStorageResourceRegistry Thread-Safety/Concurrency [flink]
abjfh30 commented on code in PR #27459:
URL: https://github.com/apache/flink/pull/27459#discussion_r3577349592
##########
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/hybrid/tiered/storage/TieredStorageResourceRegistry.java:
##########
@@ -20,19 +20,19 @@
import org.apache.flink.runtime.io.network.partition.hybrid.tiered.common.TieredStorageDataIdentifier;
-import java.util.ArrayList;
-import java.util.HashMap;
import java.util.List;
-import java.util.Map;
+import java.util.concurrent.ConcurrentHashMap;
+import java.util.concurrent.CopyOnWriteArrayList;
/**
* A registry that maintains local or remote resources that correspond to a certain set of data in
* the Tiered Storage.
*/
public class TieredStorageResourceRegistry {
- private final Map<TieredStorageDataIdentifier, List<TieredStorageResource>>
- registeredResources = new HashMap<>();
+ private final ConcurrentHashMap<
+ TieredStorageDataIdentifier, CopyOnWriteArrayList<TieredStorageResource>>
Review Comment:
LGMT
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org