[
https://issues.apache.org/jira/browse/YUNIKORN-98?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17085426#comment-17085426
]
Wilfred Spiegelenburg commented on YUNIKORN-98:
-----------------------------------------------
The response of internal server error (500) is also not correct if metrics are
turned off. We should be returning a Not Implemented (501) as a more
appropriate value.
As comparison:
* 501 Not Implemented: The server either does not recognise the request
method, or it lacks the ability to fulfil the request. Usually this implies
future availability (e.g., a new feature of a web-service API)
* 500 Internal Server Error: A generic error message, given when an unexpected
condition was encountered and no more specific message is suitable
We have a more specific message as we cannot fulfil the request currently so a
501 is better
> Metric enablement check is broken
> ---------------------------------
>
> Key: YUNIKORN-98
> URL: https://issues.apache.org/jira/browse/YUNIKORN-98
> Project: Apache YuniKorn
> Issue Type: Bug
> Components: core - common
> Affects Versions: 0.8
> Reporter: Wilfred Spiegelenburg
> Assignee: Wilfred Spiegelenburg
> Priority: Blocker
>
> With the reflow of the metrics logic in the web interface a check was not
> changed from {{!=}} to {{==}}.
> This causes the metrics to always be disabled and not show up in the web UI.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]