aloyszhang commented on code in PR #10037:
URL: https://github.com/apache/inlong/pull/10037#discussion_r1573690111


##########
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/core/impl/AuditServiceImpl.java:
##########
@@ -412,25 +413,9 @@ public List<AuditVO> listAll(AuditRequest request) throws 
Exception {
                 }).collect(Collectors.toList());
                 result.add(new AuditVO(auditId, auditName, auditSet, null));
             } else if (AuditQuerySource.CLICKHOUSE == querySource) {
-                try (Connection connection = config.getCkConnection();
-                        PreparedStatement statement = 
getAuditCkStatementGroupByIp(connection,
-                                request.getInlongGroupId(), 
request.getInlongStreamId(), request.getIp(), auditId,
-                                request.getStartDate(), request.getEndDate());
-
-                        ResultSet resultSet = statement.executeQuery()) {
-                    List<AuditInfo> auditSet = new ArrayList<>();
-                    while (resultSet.next()) {
-                        AuditInfo vo = new AuditInfo();
-                        
vo.setInlongGroupId(resultSet.getString("inlong_group_id"));
-                        
vo.setInlongStreamId(resultSet.getString("inlong_stream_id"));
-                        vo.setIp(resultSet.getString("ip"));
-                        vo.setCount(resultSet.getLong("total"));
-                        vo.setDelay(resultSet.getLong("total_delay"));
-                        vo.setSize(resultSet.getLong("total_size"));
-                        auditSet.add(vo);
-                    }
-                    result.add(new AuditVO(auditId, auditName, auditSet, 
null));
-                }
+                AuditRunnable task = new AuditRunnable(request, auditId, 
auditName, result, latch, restTemplate,
+                        auditQueryUrl, null, true);
+                this.executor.execute(task);

Review Comment:
   ```suggestion
                   this.executor.execute( new AuditRunnable(request, auditId, 
auditName, result, latch, restTemplate,
                           auditQueryUrl, null, true));
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to