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

Chia-Ping Tsai commented on YUNIKORN-2262:
------------------------------------------

{quote}
Please use error joining for this to show we have wrapped the error. It will 
make testing etc easier than re-writing using %w 
{quote}

Pardon me, why Join is better than %w in this case? there are two errors, so I 
assume %w is good enough.

> propagate the error message when queue creation gets failed
> -----------------------------------------------------------
>
>                 Key: YUNIKORN-2262
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-2262
>             Project: Apache YuniKorn
>          Issue Type: Improvement
>            Reporter: Chia-Ping Tsai
>            Assignee: Chenchen Lai
>            Priority: Minor
>
> [https://github.com/apache/yunikorn-core/blob/master/pkg/scheduler/partition.go#L334]
> the error message of root cause is swallowed, so it is hard to be inspired by 
> the common message "failed to create rule based queue ..."
> BTW, the error I met is the parent queue "is already a leaf". The error 
> message is helpful and it makes us catch up the root cause easily.



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