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 398c1a9d73 [MINOR] Fix(iceberg): Typo in Iceberg table-exists metric
name (#8884)
398c1a9d73 is described below
commit 398c1a9d73a8c48681682a7bad1adfb06baa0785
Author: Bharath Krishna <[email protected]>
AuthorDate: Wed Oct 22 18:19:05 2025 -0700
[MINOR] Fix(iceberg): Typo in Iceberg table-exists metric name (#8884)
### What changes were proposed in this pull request?
The @ResponseMetered annotation had 'table-exits' instead of
'table-exists', causing incorrect metric reporting for the tableExists
endpoint.
This fixes the metric name to properly align with the operation.
### Why are the changes needed?
Fix typo in metric name
### Does this PR introduce _any_ user-facing change?
Fix typo in metric name
### How was this patch tested?
To see the current metric:
```
curl -s http://localhost:9001/metrics | grep -o '"[^"]*table-exit[^"]*"'
```
After this fix, the metric name should be fixed
---
.../apache/gravitino/iceberg/service/rest/IcebergTableOperations.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/IcebergTableOperations.java
b/iceberg/iceberg-rest-server/src/main/java/org/apache/gravitino/iceberg/service/rest/IcebergTableOperations.java
index 68d8c20af2..cbe0a3dc38 100644
---
a/iceberg/iceberg-rest-server/src/main/java/org/apache/gravitino/iceberg/service/rest/IcebergTableOperations.java
+++
b/iceberg/iceberg-rest-server/src/main/java/org/apache/gravitino/iceberg/service/rest/IcebergTableOperations.java
@@ -258,7 +258,7 @@ public class IcebergTableOperations {
@Path("{table}")
@Produces(MediaType.APPLICATION_JSON)
@Timed(name = "table-exists." + MetricNames.HTTP_PROCESS_DURATION, absolute
= true)
- @ResponseMetered(name = "table-exits", absolute = true)
+ @ResponseMetered(name = "table-exists", absolute = true)
public Response tableExists(
@PathParam("prefix") String prefix,
@Encoded() @PathParam("namespace") String namespace,