diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index 8bc5225f115..6ea455d2926 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -898,6 +898,14 @@ + + + + + + + + @@ -906,11 +914,24 @@ + + + + + + + + + + + + + @@ -919,6 +940,14 @@ + + + + + + + + @@ -927,6 +956,14 @@ + + + + + + + + @@ -1326,6 +1363,14 @@ + + + + + + + + diff --git a/rskj-core/build.gradle b/rskj-core/build.gradle index d105c1ceae6..4eb588263e9 100644 --- a/rskj-core/build.gradle +++ b/rskj-core/build.gradle @@ -112,7 +112,7 @@ ext { spongyCastleVer : '1.58.0.0', bouncyCastleVer : '1.59', ethereumLeveldbJniVer : '1.18.3', - rocksdbJniVer : '6.27.3', + rocksdbJniVer : '7.10.2', slf4jVer : '1.7.36', logbackVer : '1.2.10', jacksonVer : '2.13.3', diff --git a/rskj-core/src/test/java/org/ethereum/datasource/RocksDbDataSourceTest.java b/rskj-core/src/test/java/org/ethereum/datasource/RocksDbDataSourceTest.java index 3cc7d39a7fa..3ed917b7449 100644 --- a/rskj-core/src/test/java/org/ethereum/datasource/RocksDbDataSourceTest.java +++ b/rskj-core/src/test/java/org/ethereum/datasource/RocksDbDataSourceTest.java @@ -109,15 +109,15 @@ void updateBatchRetriesOnDeleteError() { Set deleteKeys = ImmutableSet.of(ByteUtil.wrap(keyToDelete1), ByteUtil.wrap(keyToDelete2)); try (MockedConstruction writeBatchMockedConstruction = Mockito.mockConstruction(WriteBatch.class, - (mock, context) -> doThrow(new RocksDBException(dbExceptionMessage)).when(mock).delete(any()) + (mock, context) -> doThrow(new RocksDBException(dbExceptionMessage)).when(mock).delete(any(byte[].class)) )) { RuntimeException updateException = assertThrows(RuntimeException.class, () -> dataSource.updateBatch(batch, deleteKeys)); assertEquals(RocksDBException.class.getName() + ": " + dbExceptionMessage, updateException.getMessage()); WriteBatch writeBatch1 = writeBatchMockedConstruction.constructed().get(1); - verify(writeBatch1, times(1)).delete(any()); + verify(writeBatch1, times(1)).delete(any(byte[].class)); WriteBatch writeBatch2 = writeBatchMockedConstruction.constructed().get(1); - verify(writeBatch2, times(1)).delete(any()); + verify(writeBatch2, times(1)).delete(any(byte[].class)); } catch (RocksDBException e) { throw new RuntimeException(e); }