apache / apache/gravitino

[Improvement] Gravitino server should not return 404 when entity like metalake, user not found

Open
#4,770 2 comments 0 reactions 0 assignees View on GitHub
improvement
Dominant language
Java
Stars
3.2k
Forks
935
Avg merge
1d 16h
Merged PRs (30d)
298

Description

### What would you like to be improved?

When we call `http://localhost:8090/ui/metalakes?metalake=test1` and metalake `test1` does not exist, front page return 404

image

The response code 404 will confuse users.

### How should we improve?

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by tracing the server entry point for /ui/metalakes?metalake and how a missing metalake is handled. Check the existing endpoint tests, if present, and clarify the intended response before changing behavior; done means a nonexistent entity no longer produces a confusing front-page 404.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.