-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jackson 2.18 with max-token-count support #1556
Conversation
pjfanning
commented
Nov 9, 2024
•
edited
Loading
edited
- supports Fix #1310: Count JSON tokens FasterXML/jackson-core#1296
- Jackson lock-free buffer recyclers turned out to have major trouble and have been deprecated - Jackson LockFreePool recycler pool causes memory issues trinodb/trino#21356
@@ -159,11 +160,10 @@ object JacksonObjectMapperProvider extends ExtensionId[JacksonObjectMapperProvid | |||
private def getBufferRecyclerPool(cfg: Config): RecyclerPool[BufferRecycler] = { | |||
cfg.getString("buffer-recycler.pool-instance") match { | |||
case "thread-local" => JsonRecyclerPools.threadLocalPool() | |||
case "lock-free" => JsonRecyclerPools.newLockFreePool() | |||
case "shared-lock-free" => JsonRecyclerPools.sharedLockFreePool() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So there is been removed and should we mention that in the release note?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes - support was removed from Jackson for these because they did not work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, but seems need be included in the release note.
We add release notes for every release. Generally, they are created around release time. |