Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Replace the Jackson Afterburner module with Blackbird (#5541)
Browse files Browse the repository at this point in the history
  • Loading branch information
carterkozak authored Jul 7, 2021
1 parent 5d8cfcb commit 93f84ca
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion atlasdb-impl-shared/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies {
implementation 'com.fasterxml.jackson.core:jackson-core'
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8'
implementation 'com.fasterxml.jackson.module:jackson-module-afterburner'
implementation 'com.fasterxml.jackson.module:jackson-module-blackbird'
implementation 'com.github.ben-manes.caffeine:caffeine'
implementation 'com.google.auto.service:auto-service-annotations'
implementation 'com.google.guava:guava'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
import com.fasterxml.jackson.module.afterburner.AfterburnerModule;
import com.fasterxml.jackson.module.blackbird.BlackbirdModule;
import com.google.common.primitives.Ints;
import com.palantir.atlasdb.ptobject.EncodingUtils;
import com.palantir.atlasdb.sweep.queue.id.SweepTableIndices;
Expand All @@ -27,7 +27,7 @@
public final class WriteReferencePersister {
private static final byte[] writePrefix = {1};
private static final ObjectMapper OBJECT_MAPPER =
new ObjectMapper().registerModule(new Jdk8Module()).registerModule(new AfterburnerModule());
new ObjectMapper().registerModule(new Jdk8Module()).registerModule(new BlackbirdModule());

private final SweepTableIndices tableIndices;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
import com.fasterxml.jackson.module.afterburner.AfterburnerModule;
import com.fasterxml.jackson.module.blackbird.BlackbirdModule;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Iterables;
Expand Down Expand Up @@ -65,7 +65,7 @@ protected String getInitializingClassName() {
private final InitializingWrapper wrapper = new InitializingWrapper();

private static final ObjectMapper OBJECT_MAPPER =
new ObjectMapper().registerModule(new Jdk8Module()).registerModule(new AfterburnerModule());
new ObjectMapper().registerModule(new Jdk8Module()).registerModule(new BlackbirdModule());

private static final String ROW_AND_COLUMN_NAME = "s";
private static final byte[] ROW_AND_COLUMN_NAME_BYTES = PtBytes.toCachedBytes(ROW_AND_COLUMN_NAME);
Expand Down
5 changes: 5 additions & 0 deletions changelog/@unreleased/pr-5541.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: improvement
improvement:
description: Replace the Jackson Afterburner module with Blackbird
links:
- https://github.com/palantir/atlasdb/pull/5541
9 changes: 5 additions & 4 deletions versions.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ com.boundary:high-scale-lib:1.0.6 (2 constraints: 9d14d4a0)
com.clearspring.analytics:stream:2.5.2 (1 constraints: 970f7788)
com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
com.fasterxml:classmate:1.3.4 (1 constraints: 9b122713)
com.fasterxml.jackson:jackson-bom:2.12.3 (14 constraints: 34376253)
com.fasterxml.jackson:jackson-bom:2.12.3 (15 constraints: b24dabc9)
com.fasterxml.jackson.core:jackson-annotations:2.12.3 (13 constraints: c3d398e7)
com.fasterxml.jackson.core:jackson-core:2.12.3 (17 constraints: 4b5073b9)
com.fasterxml.jackson.core:jackson-databind:2.12.3 (31 constraints: 31473ca3)
com.fasterxml.jackson.core:jackson-core:2.12.3 (18 constraints: c96661c6)
com.fasterxml.jackson.core:jackson-databind:2.12.3 (32 constraints: af5df72e)
com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.12.3 (4 constraints: 3753d888)
com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.12.3 (2 constraints: 352b4987)
com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.12.3 (5 constraints: a252e54e)
Expand All @@ -22,7 +22,8 @@ com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.12.3 (5 constraints: b9
com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.12.3 (3 constraints: 903d4249)
com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.12.3 (3 constraints: 2d3890f3)
com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.12.3 (2 constraints: 6e1d2e4b)
com.fasterxml.jackson.module:jackson-module-afterburner:2.12.3 (10 constraints: 5aa321c1)
com.fasterxml.jackson.module:jackson-module-afterburner:2.12.3 (9 constraints: 249eb161)
com.fasterxml.jackson.module:jackson-module-blackbird:2.12.3 (2 constraints: ee13f781)
com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.12.3 (3 constraints: 903d4249)
com.fasterxml.jackson.module:jackson-module-parameter-names:2.12.3 (2 constraints: 661d2d2f)
com.github.ben-manes.caffeine:caffeine:3.0.3 (12 constraints: 84be4739)
Expand Down

0 comments on commit 93f84ca

Please sign in to comment.