wForget opened a new issue, #2792: URL: https://github.com/apache/uniffle/issues/2792
### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) ### Search before asking - [x] I have searched in the [issues](https://github.com/apache/incubator-uniffle/issues?q=is%3Aissue) and found no similar issues. ### Describe the bug Opening an application's history page can fail with HTTP 500 when its event log contains Uniffle custom listener events: ```text com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of org.apache.spark.shuffle.events.ShuffleAssignmentInfoEvent (no Creators, like default constructor, exist) ``` The exception occurs during event log replay: ```text FsHistoryProvider → ReplayListenerBus → JsonProtocol → ObjectMapper.readValue ``` Uniffle's Java event classes have parameterized constructors without explicit deserialization mappings or no-argument constructors. Older Jackson Scala modules inferred their constructor parameter names. Jackson 2.16 changed this behavior to limit interference with non-Scala classes ([jackson-module-scala#644](https://github.com/FasterXML/jackson-module-scala/issues/644)), exposing this compatibility issue. Local reproduction using the same event class shows: | Spark | Jackson | Result | |---|---|---| | 3.5.1 | 2.15.2 | Successful deserialization | | 4.1.1 | 2.20.0 | `InvalidDefinitionException` | | 4.2.0 | 2.21.2 | `InvalidDefinitionException` | **Expected behavior:** History Server should replay Uniffle events and display the application's history, including Uniffle metrics. **Proposed fix:** Add no-argument constructors and JavaBean setters to the affected event classes and nested metric/timing objects. Preserve existing JSON property names and parameterized constructors. Cover non-empty nested metrics, boolean failure flags, and shaded JAR replay in compatibility tests. This failure affects history-page loading; it does not by itself indicate that the Spark application failed. ### Affects Version(s) master ### Uniffle Server Log Output ```logtalk ``` ### Uniffle Engine Log Output ```logtalk ``` ### Uniffle Server Configurations ```yaml ``` ### Uniffle Engine Configurations ```yaml ``` ### Additional context _No response_ ### Are you willing to submit PR? - [x] Yes I am willing to submit a PR! -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
