Skip to content

Commit 6b7da77

Browse files
feeblefakiedependabot[bot]jnmt
authored
Backport to branch(3) : Bump the dependencies group with 6 updates (#182)
* Bump the dependencies group with 6 updates --- updated-dependencies: - dependency-name: io.dropwizard.metrics:metrics-core dependency-version: 4.2.33 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: io.dropwizard.metrics:metrics-jmx dependency-version: 4.2.33 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: io.dropwizard.metrics:metrics-jmx dependency-version: 4.2.33 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: com.scalar-labs:scalardb dependency-version: 3.16.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: com.scalar-labs:scalardb-schema-loader dependency-version: 3.16.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: org.apache.logging.log4j:log4j-core dependency-version: 2.25.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: org.apache.logging.log4j:log4j-slf4j-impl dependency-version: 2.25.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: org.apache.logging.log4j:log4j-slf4j-impl dependency-version: 2.25.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: com.scalar-labs:scalardb-schema-loader dependency-version: 3.16.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies ... * Fix errors for log4j and ScalarDB * Fix for the recovery behavior change in ScalarDB --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jun Nemoto <[email protected]>
1 parent 980a07b commit 6b7da77

File tree

4 files changed

+17
-9
lines changed

4 files changed

+17
-9
lines changed

build.gradle

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ subprojects {
1919
guiceVersion = '5.1.0'
2020
guavaVersion = '32.1.3-jre'
2121
slf4jVersion = '1.7.36'
22-
log4jVersion = '2.24.3'
22+
log4jVersion = '2.25.0'
2323
jsonpVersion = '1.1.4'
2424
jacksonVersion = '2.19.1'
2525
toml4jVersion = '0.7.2'
26-
scalarDbVersion = '3.15.3'
26+
scalarDbVersion = '3.16.0'
2727
scalarAdminVersion = '2.2.1'
2828
resilience4jRetryVersion = '1.7.1'
29-
dropwizardMetricsVersion = '4.2.32'
29+
dropwizardMetricsVersion = '4.2.33'
3030
prometheusVersion = '0.16.0'
3131
jettyVersion = '9.4.57.v20241219'
3232
assertjVersion = '3.27.3'
@@ -54,6 +54,12 @@ subprojects {
5454

5555
dependencies {
5656
implementation group: 'org.slf4j', name: 'slf4j-api', version: "${slf4jVersion}"
57+
implementation(group: 'org.apache.logging.log4j', name: 'log4j-core', version: "${log4jVersion}") {
58+
exclude group: 'com.github.spotbugs', module: 'spotbugs-annotations'
59+
}
60+
implementation(group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: "${log4jVersion}") {
61+
exclude group: 'com.github.spotbugs', module: 'spotbugs-annotations'
62+
}
5763
implementation group: 'com.google.inject', name: 'guice', version: "${guiceVersion}"
5864
implementation group: 'com.google.guava', name: 'guava', version: "${guavaVersion}"
5965
implementation group: 'javax.json', name: 'javax.json-api', version: "${jsonpVersion}"

client/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ dependencies {
2828
api project(':common')
2929
implementation group: 'com.moandjiezana.toml', name: 'toml4j', version: "${toml4jVersion}"
3030
implementation group: 'info.picocli', name: 'picocli', version: "${picoCliVersion}"
31-
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: "${log4jVersion}"
32-
implementation group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: "${log4jVersion}"
3331
api group: 'com.scalar-labs', name: 'scalardb', version: "${scalarDbVersion}"
3432
api group: 'javax.json', name: 'javax.json-api', version: "${jsonpVersion}"
3533
api group: 'org.glassfish', name: 'javax.json', version: "${jsonpVersion}"

generic-contracts/src/integration-test/java/com/scalar/dl/genericcontracts/GenericContractObjectAndCollectionEndToEndTest.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
import com.scalar.db.api.Scan.Ordering;
6060
import com.scalar.db.api.Scanner;
6161
import com.scalar.db.api.TransactionState;
62-
import com.scalar.db.common.error.CoreError;
62+
import com.scalar.db.common.CoreError;
6363
import com.scalar.db.exception.storage.ExecutionException;
6464
import com.scalar.db.io.Key;
6565
import com.scalar.dl.client.exception.ClientException;
@@ -82,6 +82,10 @@
8282

8383
public class GenericContractObjectAndCollectionEndToEndTest
8484
extends GenericContractEndToEndTestBase {
85+
private static final String COORDINATOR_NAMESPACE = "coordinator";
86+
private static final String COORDINATOR_STATE_TABLE = "state";
87+
private static final String METADATA_TX_STATE = "tx_state";
88+
8589
private static final String ASSET_ID = "id";
8690
private static final String ASSET_AGE = "age";
8791
private static final String ASSET_OUTPUT = "output";
@@ -637,11 +641,13 @@ public void putObject_FunctionArgumentsGiven_ShouldPutRecordToFunctionTable()
637641
.table(getFunctionTable())
638642
.partitionKey(Key.ofText(SOME_COLUMN_NAME_1, SOME_OBJECT_ID))
639643
.clusteringKey(Key.ofText(SOME_COLUMN_NAME_2, SOME_VERSION_ID_0))
640-
.intValue("tx_state", TransactionState.ABORTED.get())
644+
.intValue(METADATA_TX_STATE, TransactionState.PREPARED.get())
641645
.build();
642646
clientService.executeContract(
643647
ID_OBJECT_PUT, contractArguments0, ID_OBJECT_PUT_MUTABLE, functionArguments0);
648+
// Make the transaction prepared state and non-expired
644649
storage.put(put);
650+
storageAdmin.truncateTable(COORDINATOR_NAMESPACE, COORDINATOR_STATE_TABLE);
645651

646652
// Act Assert
647653
assertThatThrownBy(

ledger/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ dependencies {
4848
implementation group: 'com.moandjiezana.toml', name: 'toml4j', version: "${toml4jVersion}"
4949
implementation group: 'info.picocli', name: 'picocli', version: "${picoCliVersion}"
5050
implementation group: 'io.github.resilience4j', name: 'resilience4j-retry', version: "${resilience4jRetryVersion}"
51-
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: "${log4jVersion}"
52-
implementation group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: "${log4jVersion}"
5351

5452
// The following packages are provided for ScalarDL contracts in runtime
5553
implementation group: 'org.hashids', name: 'hashids', version: '1.0.3'

0 commit comments

Comments
 (0)