mrproliu commented on a change in pull request #8716:
URL: https://github.com/apache/skywalking/pull/8716#discussion_r830808571



##########
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:
       Yes, the process id is the row ID in storage. I will update to use 
multiple get.




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