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/02/25 10:44:24 UTC

[GitHub] [incubator-inlong] ciscozhou commented on a change in pull request #2724: [INLONG-2723][Manager]fix manager will thread exception while starting #2723 bug

ciscozhou commented on a change in pull request #2724:
URL: https://github.com/apache/incubator-inlong/pull/2724#discussion_r814664815



##########
File path: inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/core/impl/AbstractService.java
##########
@@ -102,7 +102,9 @@ public  void run() {
                         }
                         count++;
                     }
-                    batchInsertEntities(entryList);
+                    if (entryList.size() > 0) {

Review comment:
       Its recommanded use `CollectionUtils.isNotEmpty` to check whether a collection is empty or not.




-- 
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