Support Jackson 3.x release line#21029
Conversation
|
Failed to generate code suggestions for PR |
|
❌ Gradle check result for 08afabb: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit 3bc6e02.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
|
Failed to generate code suggestions for PR |
|
❌ Gradle check result for 8f7c773: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Failed to generate code suggestions for PR |
|
❌ Gradle check result for dc8261d: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Failed to generate code suggestions for PR |
|
Persistent review updated to latest commit c4ee6f8 |
|
Persistent review updated to latest commit f29e4a7 |
|
❌ Gradle check result for f29e4a7: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Persistent review updated to latest commit c52b5b2 |
|
❕ Gradle check result for c52b5b2: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
|
Persistent review updated to latest commit bd926ae |
|
Persistent review updated to latest commit 3ccda43 |
Signed-off-by: Andriy Redko <drreta@gmail.com>
|
Persistent review updated to latest commit e361206 |
| * the generator instantiation till the first usage. | ||
| */ | ||
| private XContentGenerator generatorInstance() throws IOException { | ||
| if (generator == null) { |
There was a problem hiding this comment.
@andrross @cwperks this is probably the most impactful change in the whole pull request, making generator initialization lazy. I initially overthought it and used volatile + double check locking but looking closely, I have not found the evidence XContentBuilder instances are shared across threads (quite expected), simple null check should be sufficient.
|
|
||
| public XContentBuilder prettyPrint() { | ||
| generator.usePrettyPrint(); | ||
| this.prettyPrint = true; |
There was a problem hiding this comment.
So calling this method (and some others) will have no effect if generatorInstance() has already been invoked on this instance? Is this behavior change going to be impactful? Should these method throw if the generator instance has already been constructed?
Description
Support Jackson 3.x release line. The change does a few things:
servermodule will continue to bundle Jackson 2.x artifacts (along with Jackson 3.x) to not break existing pluginsservercould drop Jackson 2.x artifacts bundlingRelated Issues
Closes #19597
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.