kipshi commented on code in PR #3572:
URL: https://github.com/apache/incubator-inlong/pull/3572#discussion_r845667418
##########
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/core/impl/AgentServiceImpl.java:
##########
@@ -175,6 +174,15 @@ public TaskResult getTaskResult(TaskRequest request) {
List<StreamSourceEntity> needIssuedList =
sourceMapper.selectByStatusAndIp(statusList, agentIp, uuid);
entityList.addAll(needIssuedList);
+ List<StreamSourceEntity> fileEntityList =
sourceMapper.selectByStatusAndType(needAddStatusList,
+ Lists.newArrayList(SourceType.FILE.getType()), TASK_FETCH_SIZE
* 2);
+ for (StreamSourceEntity fileEntity : fileEntityList) {
+ FileSourceDTO fileSourceDTO =
FileSourceDTO.getFromJson(fileEntity.getExtParams());
+ if (agentIp.equals(fileSourceDTO.getIp())) {
Review Comment:
1 agentIp is empty if not fetched by agent
2 selectByType is useful sooner or later
--
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]