Skip to content

Potential misuse of gRPC UNAVAILABLE in kuksa.val.v2 #173

@rafaeling

Description

@rafaeling

According to the gRPC status code documentation the UNAVAILABLE status should be used when the gRPC service itself is not available (e.g., server down or unreachable).

In Databroker kuksa.val.v2, however, UNAVAILABLE is currently also used in a different context:
// UNAVAILABLE if there is no provider currently providing the actuator

This might cause confusion, since UNAVAILABLE is intended to describe service-level availability rather than application-level conditions.

Suggestion: We should review this usage and consider whether a different status code (e.g., NOT_FOUND, FAILED_PRECONDITION, or another more appropriate one) would better capture the “no provider for actuator” case

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions