[ 
https://issues.apache.org/jira/browse/YUNIKORN-2190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chia-Ping Tsai updated YUNIKORN-2190:
-------------------------------------
    Description: 
the endpoint 
{code:java}
/ws/v1/partition/{partitionName}/usage/users
{code}
will return null when user usages are nonexistent.

the return type is expected to be array, so it seems to me the empty array is 
more suitable to be returned.

  was:
the endpoint "/ws/v1/partition/{partitionName}/usage/users" will return null 
when user usages are nonexistent.

the return type is expected to be array, so it seems to me the empty array is 
more suitable to be returned.


> Using empty array to replace null response from 
> /ws/v1/partition/{partitionName}/usage/users
> --------------------------------------------------------------------------------------------
>
>                 Key: YUNIKORN-2190
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-2190
>             Project: Apache YuniKorn
>          Issue Type: Improvement
>            Reporter: Chia-Ping Tsai
>            Priority: Trivial
>
> the endpoint 
> {code:java}
> /ws/v1/partition/{partitionName}/usage/users
> {code}
> will return null when user usages are nonexistent.
> the return type is expected to be array, so it seems to me the empty array is 
> more suitable to be returned.



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