junyan-ling opened a new pull request, #756:
URL: https://github.com/apache/yunikorn-k8shim/pull/756

   ### What is this PR for?
   lots of WARN messages when publishing events due to task not found
   ```
   2023-11-30T16:11:07.057-0800    WARN    shim.context    
   cache/context.go:1048   task event is not published because task is not 
found   
   {"appID": "1be9d9ac-4d77-4944-86e9-9d8eba13eb6d", 
   "taskID": "job2-qb", 
   "event": "type:REQUEST  objectID:\"1be9d9ac-4d77-4944-86e9-9d8eba13eb6d\"  
message:\"Application job2-qb does not fit into root.b queue (request resoure 
map[nvidia.com/gpu:1 pods:1 vcore:1000], headroom 
map[ephemeral-storage:1079956586496 hugepages-1Gi:0 hugepages-2Mi:0 
hugepages-32Mi:0 hugepages-64Ki:0 memory:10000000000 nvidia.com/gpu:0 pods:320 
vcore:2000])\"  timestampNano:1701389466504995000  referenceID:\"job2-qb\"  
resource:{resources:{key:\"nvidia.com/gpu\"  value:{value:1}}  
resources:{key:\"pods\"  value:{value:1}}  resources:{key:\"vcore\"  
value:{value:1000}}}"}
   ```
   
![image](https://github.com/apache/yunikorn-k8shim/assets/155352474/6fd1b0b1-54d3-4257-bfc9-fb32cb96b4ce)
   
   The correct mapping should be: 
   ```
   appID := record.ReferenceID
   taskID := record.ObjectID
   ```
   
   Thanks for and credit to @yangwwei for finding this out! 
   
   ### What type of PR is it?
   * [x] - Bug Fix
   
   ### What is the Jira issue?
   https://issues.apache.org/jira/browse/YUNIKORN-2301
   
   ### How should this be tested?
   
   ### Screenshots (if appropriate)
   
   ### Questions:
   * [ ] - The licenses files need update.
   * [ ] - There is breaking changes for older versions.
   * [ ] - It needs documentation.
   


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