mrproliu commented on code in PR #13807:
URL: https://github.com/apache/skywalking/pull/13807#discussion_r3055210795


##########
oap-server/server-storage-plugin/storage-elasticsearch-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/elasticsearch/query/PprofTaskLogQueryEsDAO.java:
##########
@@ -48,13 +48,14 @@ public PprofTaskLogQueryEsDAO(ElasticSearchClient client, 
int profileTaskQueryMa
     }
 
     @Override
-    public List<PprofTaskLog> getTaskLogList() throws IOException {
+    public List<PprofTaskLog> getTaskLogList(String taskId) throws IOException 
{
         final String index = 
IndexController.LogicIndicesRegister.getPhysicalTableName(PprofTaskLogRecord.INDEX_NAME);
         final BoolQueryBuilder query = Query.bool();
         if 
(IndexController.LogicIndicesRegister.isMergedTable(PprofTaskLogRecord.INDEX_NAME))
 {
             
query.must(Query.term(IndexController.LogicIndicesRegister.RECORD_TABLE_NAME, 
PprofTaskLogRecord.INDEX_NAME));
         }
-        
+        query.must(Query.term(PprofTaskLogRecord.TASK_ID, taskId));
+

Review Comment:
   fixed.



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