wu-sheng commented on a change in pull request #8716:
URL: https://github.com/apache/skywalking/pull/8716#discussion_r830806855



##########
File path: 
oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/profiling/ebpf/EBPFProfilingQueryService.java
##########
@@ -83,7 +97,17 @@ private EBPFProfilingAnalyzer getProfilingAnalyzer() {
     }
 
     public List<EBPFProfilingSchedule> queryEBPFProfilingSchedules(String 
taskId, Duration duration) throws IOException {
-        return getScheduleDAO().querySchedules(taskId, 
duration.getStartTimeBucket(), duration.getEndTimeBucket());
+        final List<EBPFProfilingSchedule> schedules = 
getScheduleDAO().querySchedules(taskId, duration.getStartTimeBucket(), 
duration.getEndTimeBucket());
+        if (CollectionUtils.isNotEmpty(schedules)) {
+            schedules.forEach(p -> {
+                try {
+                    
p.setProcess(getMetadataQueryDAO().getProcess(p.getProcessId()));

Review comment:
       Please implement multiple get. I am not sure whether process ID is the 
row ID of the process entity?




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