SteNicholas commented on code in PR #3340:
URL: https://github.com/apache/celeborn/pull/3340#discussion_r2158260998
##########
service/src/main/java/org/apache/celeborn/server/common/service/utils/JsonUtils.java:
##########
@@ -30,6 +31,7 @@ public class JsonUtils {
static {
MAPPER.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
MAPPER.setVisibility(PropertyAccessor.FIELD,
JsonAutoDetect.Visibility.ANY);
+ MAPPER.registerModule(new JavaTimeModule());
Review Comment:
Follow up #2555. `JsonUtils#toJson` does not support Java 8 date/time type
`java.time.Instant`, which exception is as follows:
```
Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException:
Java 8 date/time type `java.time.Instant` not supported by default: add Module
"com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling
(through reference chain:
org.apache.celeborn.server.common.service.model.ClusterInfo["gmtCreate"])
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]