You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/03/02 13:07:31 UTC

[GitHub] [incubator-inlong] EMsnap commented on a change in pull request #2835: [INLONG-2821][Manager] Change the status of the source after receiving the task snapshot

EMsnap commented on a change in pull request #2835:
URL: https://github.com/apache/incubator-inlong/pull/2835#discussion_r817671729



##########
File path: inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/source/SourceSnapshotOperation.java
##########
@@ -104,13 +163,33 @@ public void close() {
         this.isClose = true;
     }
 
+    /**
+     * Get all tasks in a temporary state, and set up an ip-id-status map,
+     * the temporary state is greater than or equal to 200.
+     *
+     * @see org.apache.inlong.manager.common.enums.SourceState
+     */
+    private ConcurrentHashMap<String, ConcurrentHashMap<Integer, Integer>> getTaskIpAndStatusMap() {
+        ConcurrentHashMap<String, ConcurrentHashMap<Integer, Integer>> ipTaskMap = new ConcurrentHashMap<>();

Review comment:
       better to have default capacity




-- 
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: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org