This is an automated email from the ASF dual-hosted git repository.

ddanielr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/main by this push:
     new 5504cd8e1f Fixes tabletMergability 404 error (#5746)
5504cd8e1f is described below

commit 5504cd8e1f5e7dd839701d408c346085f14b0875
Author: Daniel Roberts <[email protected]>
AuthorDate: Mon Jul 21 11:51:09 2025 -0400

    Fixes tabletMergability 404 error (#5746)
    
    The Duration datatype was not able to be serialized.
    Added the jackson JavaTimeModule to fix the 404 return.
---
 assemble/pom.xml                                                     | 5 +++++
 server/monitor/pom.xml                                               | 4 ++++
 .../java/org/apache/accumulo/monitor/next/CustomObjectMapper.java    | 2 ++
 3 files changed, 11 insertions(+)

diff --git a/assemble/pom.xml b/assemble/pom.xml
index d1a2ca80bc..9770ffffa1 100644
--- a/assemble/pom.xml
+++ b/assemble/pom.xml
@@ -61,6 +61,11 @@
       <artifactId>jackson-datatype-jdk8</artifactId>
       <optional>true</optional>
     </dependency>
+    <dependency>
+      <groupId>com.fasterxml.jackson.datatype</groupId>
+      <artifactId>jackson-datatype-jsr310</artifactId>
+      <optional>true</optional>
+    </dependency>
     <dependency>
       <groupId>com.fasterxml.jackson.jakarta.rs</groupId>
       <artifactId>jackson-jakarta-rs-base</artifactId>
diff --git a/server/monitor/pom.xml b/server/monitor/pom.xml
index a9cf60ede1..d92c06d8b1 100644
--- a/server/monitor/pom.xml
+++ b/server/monitor/pom.xml
@@ -43,6 +43,10 @@
       <groupId>com.fasterxml.jackson.datatype</groupId>
       <artifactId>jackson-datatype-jdk8</artifactId>
     </dependency>
+    <dependency>
+      <groupId>com.fasterxml.jackson.datatype</groupId>
+      <artifactId>jackson-datatype-jsr310</artifactId>
+    </dependency>
     <dependency>
       <groupId>com.github.ben-manes.caffeine</groupId>
       <artifactId>caffeine</artifactId>
diff --git 
a/server/monitor/src/main/java/org/apache/accumulo/monitor/next/CustomObjectMapper.java
 
b/server/monitor/src/main/java/org/apache/accumulo/monitor/next/CustomObjectMapper.java
index 05c4801974..5f98e3a619 100644
--- 
a/server/monitor/src/main/java/org/apache/accumulo/monitor/next/CustomObjectMapper.java
+++ 
b/server/monitor/src/main/java/org/apache/accumulo/monitor/next/CustomObjectMapper.java
@@ -36,6 +36,7 @@ import 
org.apache.accumulo.monitor.next.serializers.ThriftSerializer;
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.fasterxml.jackson.databind.module.SimpleModule;
 import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
+import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
 
 import io.micrometer.core.instrument.Meter.Id;
 import io.micrometer.core.instrument.cumulative.CumulativeDistributionSummary;
@@ -59,6 +60,7 @@ public class CustomObjectMapper implements 
ContextResolver<ObjectMapper> {
     module.addSerializer(TabletId.class, new TabletIdSerializer());
     mapper.registerModule(module);
     mapper.registerModule(new Jdk8Module());
+    mapper.registerModule(new JavaTimeModule());
 
   }
 

Reply via email to