mrproliu commented on code in PR #9744:
URL: https://github.com/apache/skywalking/pull/9744#discussion_r990788409
##########
oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/profiling/trace/ProfileTaskMutationService.java:
##########
@@ -140,14 +140,16 @@ private String checkDataSuccess(final String serviceId,
// Each service can monitor up to 1 endpoints during the execution of
tasks
long startTimeBucket =
TimeBucket.getMinuteTimeBucket(monitorStartTime);
- long endTimeBucket = TimeBucket.getMinuteTimeBucket(monitorEndTime);
final List<ProfileTask> alreadyHaveTaskList =
getProfileTaskDAO().getTaskList(
- serviceId, null, startTimeBucket, endTimeBucket, 1);
+ serviceId, null, startTimeBucket, null, null);
Review Comment:
1. If you use the start time to filter, then you may not get any data. For
example, you create a 10 min task at 10:00, then when you create a new task at
10:05, then you cannot get the existing task. Am I right?
2. You should limit the profiling task count.
--
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]