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

Commit

Permalink
[DB TimeLock] 3A.2 Silly errors (#5521)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyk-91 authored Jun 25, 2021
1 parent f458cd0 commit aa3e499
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions changelog/@unreleased/pr-5521.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: fix
fix:
description: The DB persister runtime config for TimeLock now has the correct serialisation
type `database`.
links:
- https://github.com/palantir/atlasdb/pull/5521
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@
package com.palantir.timelock.config;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig;
import org.immutables.value.Value;

@Value.Immutable
@JsonDeserialize(as = ImmutableDatabaseTsBoundPersisterRuntimeConfiguration.class)
@JsonTypeName("database")
public interface DatabaseTsBoundPersisterRuntimeConfiguration extends TsBoundPersisterRuntimeConfiguration {
@JsonProperty("key-value-service")
KeyValueServiceRuntimeConfig keyValueServiceRuntimeConfig();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public TimeLockAdjudicationConfiguration adjudication() {
return ImmutableTimeLockAdjudicationConfiguration.builder().build();
}

@JsonProperty
@JsonProperty("timestamp-bound-persistence")
public abstract Optional<TsBoundPersisterRuntimeConfiguration> timestampBoundPersistence();

@Value.Check
Expand Down

0 comments on commit aa3e499

Please sign in to comment.