[
https://issues.apache.org/jira/browse/YUNIKORN-544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17487797#comment-17487797
]
Wilfred Spiegelenburg edited comment on YUNIKORN-544 at 2/6/22, 11:31 PM:
--------------------------------------------------------------------------
If you do not use the replace directives you build with the git based versions
of the dependencies. Changes to anything outside the shim will not be picked
up. When you try to debug a core issue you might thus not see the code you
expect to see.
There has been a change but that is very recent and only applies after
YUNIKORN-971 ([~ccondit] side effect of the plugin changes). When you try to
debug from master there are two changes:
* -name option is not recognised and needs to be removed
* package path must point to the main.go file. That file has moved to
github.com/apache/incubator-yunikorn-k8shim/pkg/cmd/shim
After that I can run a local debug session from the IDE:
!yunikorn – debug 2022-02-07 10-25-10.png|width=470,height=268!
I did not have a K8s cluster up and running when I did this and pointed to an
old invalid kubeconfig so that fail was expected.
was (Author: wifreds):
If you do not use the replace directives you build with the git based versions
of the dependencies. Changes to anything outside the shim will not be picked
up. When you try to debug a core issue you might thus not see the code you
expect to see.
There has been a change but that is very recent and only applies after
YUNIKORN-971 ([~ccondit] side effect of the plugin changes). When you try to
debug from master there are two changes:
* -name option is not recognised and needs to be removed
* package path must point to the main.go file. That file has moved to
github.com/apache/incubator-yunikorn-k8shim/pkg/cmd/shim
After that I can run a local debug session from the IDE:
!yunikorn – debug 2022-02-07 10-25-10.png|width=470,height=268!
> Fix doc about debugging YK locally
> ----------------------------------
>
> Key: YUNIKORN-544
> URL: https://issues.apache.org/jira/browse/YUNIKORN-544
> Project: Apache YuniKorn
> Issue Type: Improvement
> Components: documentation
> Reporter: Kinga Marton
> Assignee: Lin You-Xuan
> Priority: Major
> Labels: newbie
> Attachments: yunikorn – debug 2022-02-07 10-25-10.png
>
>
> The actual documentation describing how to debug the scheduler locally seems
> to be wrong. I tried to setup following the provided steps and it not working.
> Finally I was able to start it, but by some different settings. (For example
> Run kind = directory instead of package)
> We need to fix it.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]