Skip to content

Conversation

@lhotari
Copy link
Member

@lhotari lhotari commented Jan 9, 2023

Description

This change applies to Jackson usage on the server side (Broker, Pulsar Functions etc.) and on the client.

Modifications

  • Add Parameter names, Java 8 Date/time and Java 8 Datatypes modules and register them by default

Additional context

dev mailing list thread: https://lists.apache.org/thread/9bxs90q0m5phhytz6480b6fcnfclxt3s

This PR depends on #19160 so that the properly configured ObjectMapper instances are used.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository: lhotari#125

@lhotari lhotari marked this pull request as draft January 12, 2023 20:53
@lhotari lhotari force-pushed the lh-add-jackson-java8-modules branch from 4ddcb22 to ea891ce Compare January 16, 2023 10:07
@lhotari lhotari changed the title [improve][common] Add and register Jackson Java 8 support modules to Pulsar [improve][misc] Register Jackson Java 8 support modules by default Jan 16, 2023
@lhotari
Copy link
Member Author

lhotari commented Jan 16, 2023

Since a PIP was requested, I have created #19243 which is already in voting since there was already a discussion.

…Pulsar

- Jackson contains Java 8 support modules that haven't been added and registered in Pulsar.
  - more information about modules: https://github.com/FasterXML/jackson-modules-java8

- Add Parameter names, Java 8 Date/time and Java 8 Datatypes modules and register them by default
@lhotari lhotari marked this pull request as ready for review January 23, 2023 07:11
@lhotari lhotari force-pushed the lh-add-jackson-java8-modules branch from 4a768ad to 582d5dc Compare January 23, 2023 07:12
@codecov-commenter
Copy link

Codecov Report

Merging #19161 (582d5dc) into master (457a0d5) will decrease coverage by 0.87%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #19161      +/-   ##
============================================
- Coverage     63.54%   62.67%   -0.87%     
- Complexity     3615    25488   +21873     
============================================
  Files          1895     1818      -77     
  Lines        137475   133061    -4414     
  Branches      15091    14637     -454     
============================================
- Hits          87355    83395    -3960     
+ Misses        42240    41963     -277     
+ Partials       7880     7703     -177     
Flag Coverage Δ
inttests 24.88% <100.00%> (+0.70%) ⬆️
systests 25.72% <100.00%> (-0.14%) ⬇️
unittests 59.81% <100.00%> (-1.77%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...apache/pulsar/common/util/ObjectMapperFactory.java 93.68% <100.00%> (+0.20%) ⬆️
...ain/java/org/apache/pulsar/broker/rest/Topics.java 0.00% <0.00%> (-100.00%) ⬇️
...ulsar/broker/delayed/bucket/DelayedIndexQueue.java 0.00% <0.00%> (-100.00%) ⬇️
...lsar/websocket/admin/v1/WebSocketProxyStatsV1.java 0.00% <0.00%> (-100.00%) ⬇️
...aming/FlowOrQpsEquallyDivideBundleSplitOption.java 0.00% <0.00%> (-100.00%) ⬇️
...ed/bucket/TripleLongPriorityDelayedIndexQueue.java 0.00% <0.00%> (-100.00%) ⬇️
.../pulsar/broker/rest/RestMessagePublishContext.java 0.00% <0.00%> (-92.60%) ⬇️
...oker/stats/prometheus/PrometheusMetricStreams.java 0.00% <0.00%> (-89.48%) ⬇️
...ava/org/apache/pulsar/broker/stats/WindowWrap.java 0.00% <0.00%> (-84.62%) ⬇️
...a/org/apache/pulsar/client/util/TypeCheckUtil.java 0.00% <0.00%> (-83.34%) ⬇️
... and 336 more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs ready-to-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants