This is an automated email from the ASF dual-hosted git repository.
fanng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new ddcd18744d [MINOR] fix(irc): Correct metric name typo in view exists
endpoint (#8886)
ddcd18744d is described below
commit ddcd18744dde70c2e0afff25c9b83e7864bec9ec
Author: Bharath Krishna <[email protected]>
AuthorDate: Thu Oct 23 00:44:05 2025 -0700
[MINOR] fix(irc): Correct metric name typo in view exists endpoint (#8886)
### What changes were proposed in this pull request?
Change 'view-exits' to 'view-exists' in the @ResponseMetered annotation
for the viewExists() REST endpoint.
### Why are the changes needed?
Fix typo
### Does this PR introduce _any_ user-facing change?
Yes, fixes the metric name
### How was this patch tested?
To see the current metric:
```
curl -s http://localhost:9001/metrics | grep -o '"[^"]*view-exit[^"]*"'
```
After this fix, the metric name should be fixed
---
.../apache/gravitino/iceberg/service/rest/IcebergViewOperations.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/iceberg/iceberg-rest-server/src/main/java/org/apache/gravitino/iceberg/service/rest/IcebergViewOperations.java
b/iceberg/iceberg-rest-server/src/main/java/org/apache/gravitino/iceberg/service/rest/IcebergViewOperations.java
index 2b3b2db2fc..0cf4e37879 100644
---
a/iceberg/iceberg-rest-server/src/main/java/org/apache/gravitino/iceberg/service/rest/IcebergViewOperations.java
+++
b/iceberg/iceberg-rest-server/src/main/java/org/apache/gravitino/iceberg/service/rest/IcebergViewOperations.java
@@ -221,7 +221,7 @@ public class IcebergViewOperations {
@Path("{view}")
@Produces(MediaType.APPLICATION_JSON)
@Timed(name = "view-exists." + MetricNames.HTTP_PROCESS_DURATION, absolute =
true)
- @ResponseMetered(name = "view-exits", absolute = true)
+ @ResponseMetered(name = "view-exists", absolute = true)
public Response viewExists(
@PathParam("prefix") String prefix,
@Encoded() @PathParam("namespace") String namespace,