[ 
https://issues.apache.org/jira/browse/YUNIKORN-1791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17729973#comment-17729973
 ] 

Wilfred Spiegelenburg commented on YUNIKORN-1791:
-------------------------------------------------

Same kind of stack trace in the log before the stripping of the path:
{code:java}
2023-06-07T12:40:35.043+1000    ERROR   objects/preemption.go:517       BUG: 
Didn't find instance type in the nodeInstanceTypeMap       {"nodeId": "node2"}
github.com/apache/yunikorn-core/pkg/scheduler/objects.(*Preemptor).tryNodes
        
/Users/wilfred/Downloads/yunikorn-1.3.0/apache-yunikorn-1.3.0-src/core/pkg/scheduler/objects/preemption.go:517
github.com/apache/yunikorn-core/pkg/scheduler/objects.(*Preemptor).TryPreemption
        
/Users/wilfred/Downloads/yunikorn-1.3.0/apache-yunikorn-1.3.0-src/core/pkg/scheduler/objects/preemption.go:537
github.com/apache/yunikorn-core/pkg/scheduler/objects.(*Application).tryPreemption
        
/Users/wilfred/Downloads/yunikorn-1.3.0/apache-yunikorn-1.3.0-src/core/pkg/scheduler/objects/application.go:1327
github.com/apache/yunikorn-core/pkg/scheduler/objects.(*Application).tryAllocate
        
/Users/wilfred/Downloads/yunikorn-1.3.0/apache-yunikorn-1.3.0-src/core/pkg/scheduler/objects/application.go:1050
github.com/apache/yunikorn-core/pkg/scheduler/objects.TestTryAllocatePreemptNode
        
/Users/wilfred/Downloads/yunikorn-1.3.0/apache-yunikorn-1.3.0-src/core/pkg/scheduler/objects/application_test.go:1874
testing.tRunner /usr/local/go/src/testing/testing.go:1576 {code}

> strip build paths in production code
> ------------------------------------
>
>                 Key: YUNIKORN-1791
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-1791
>             Project: Apache YuniKorn
>          Issue Type: Improvement
>          Components: shim - kubernetes, webapp
>            Reporter: Wilfred Spiegelenburg
>            Assignee: Wilfred Spiegelenburg
>            Priority: Major
>
> The stack traces in the images show the local build paths.
> A simple option can be added to the build command to strip the path back to a 
> simple module reference {{-trimpath}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to