Skip to content

Commit d37af50

Browse files
authored
Upgrade dependencies (#118)
1 parent 2849f2e commit d37af50

File tree

4 files changed

+28
-27
lines changed

4 files changed

+28
-27
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Statistic folder to drop exported reports
44
# Keep the folder for the README but ignore everything else
55
/input_statistics/*
6-
!/input_statistics/README.txt
6+
!/input_statistics/README.md
77
target
88
logs
99
# misc. IDE config files
File renamed without changes.

pom.xml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>2.7.8</version>
9+
<version>2.7.18</version>
1010
<relativePath/>
1111
</parent>
1212

1313
<groupId>com.activeviam.tools</groupId>
1414
<artifactId>mac</artifactId>
1515
<version>3.0.0-SNAPSHOT</version>
16-
<name>ActivePivot Memory Analysis Cube</name>
16+
<name>Atoti Server Memory Analysis Cube</name>
1717

1818
<licenses>
1919
<license>
@@ -25,11 +25,10 @@
2525
<properties>
2626
<jdk.version>11</jdk.version>
2727

28-
<activepivot.version>6.0.6</activepivot.version>
29-
<activeui.version>5.1.5</activeui.version>
28+
<atoti-server.version>6.0.10</atoti-server.version>
29+
<atoti-ui.version>5.1.13</atoti-ui.version>
3030

3131
<tomcat.version>9.0.31</tomcat.version>
32-
<lombok.version>1.18.18</lombok.version>
3332

3433
<spring.boot.mainclass>com.activeviam.mac.app.MacSpringBootApp</spring.boot.mainclass>
3534

@@ -43,7 +42,7 @@
4342
<dependency>
4443
<groupId>com.activeviam.activepivot</groupId>
4544
<artifactId>activepivot-server</artifactId>
46-
<version>${activepivot.version}</version>
45+
<version>${atoti-server.version}</version>
4746
<type>pom</type>
4847
<scope>import</scope>
4948
</dependency>
@@ -54,7 +53,6 @@
5453
<dependency>
5554
<groupId>org.projectlombok</groupId>
5655
<artifactId>lombok</artifactId>
57-
<version>${lombok.version}</version>
5856
<scope>provided</scope>
5957
</dependency>
6058

@@ -101,11 +99,11 @@
10199
<artifactId>hibernate-c3p0</artifactId>
102100
</dependency>
103101

104-
<!-- ActiveUI dependency -->
102+
<!-- Atoti UI dependency -->
105103
<dependency>
106104
<groupId>com.activeviam.activeui</groupId>
107105
<artifactId>activeui</artifactId>
108-
<version>${activeui.version}</version>
106+
<version>${atoti-ui.version}</version>
109107
<scope>runtime</scope>
110108
</dependency>
111109

@@ -137,13 +135,13 @@
137135
<dependency>
138136
<groupId>com.activeviam.activepivot</groupId>
139137
<artifactId>activepivot-test</artifactId>
140-
<version>${activepivot.version}</version>
138+
<version>${atoti-server.version}</version>
141139
<scope>test</scope>
142140
</dependency>
143141
<dependency>
144142
<groupId>com.activeviam.activepivot</groupId>
145143
<artifactId>activepivot-server-test</artifactId>
146-
<version>${activepivot.version}</version>
144+
<version>${atoti-server.version}</version>
147145
<scope>test</scope>
148146
</dependency>
149147
<dependency>
@@ -169,7 +167,7 @@
169167
<dependency>
170168
<groupId>com.google.guava</groupId>
171169
<artifactId>guava</artifactId>
172-
<version>31.0.1-jre</version>
170+
<version>32.1.3-jre</version>
173171
<scope>test</scope>
174172
</dependency>
175173
</dependencies>
@@ -179,7 +177,7 @@
179177
<plugin>
180178
<groupId>org.apache.maven.plugins</groupId>
181179
<artifactId>maven-enforcer-plugin</artifactId>
182-
<version>3.0.0-M3</version>
180+
<version>3.4.1</version>
183181
<executions>
184182
<execution>
185183
<id>enforce-versions</id>

src/test/java/com/activeviam/mac/statistic/memory/ATestMemoryStatistic.java

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
import com.qfs.store.NoTransactionException;
5151
import com.qfs.store.TypeValues;
5252
import com.qfs.store.build.impl.UnitTestDatastoreBuilder;
53-
import com.qfs.store.impl.Datastore;
5453
import com.qfs.store.query.ICursor;
5554
import com.qfs.store.record.IRecordReader;
5655
import com.qfs.store.transaction.DatastoreTransactionException;
@@ -111,13 +110,13 @@ public static void performGC() {
111110

112111
/*
113112
* Note. We can't rely on calling MemUtils.runGC() because on some servers (alto), it seems not enough.
114-
* Plus, MemUtils relies on on heap memory....
113+
* Plus, MemUtils relies on on-heap memory....
115114
*/
116115
for (int i = 0; i < MAX_GC_STEPS; i++) {
117116
try {
118117
System.gc();
119118

120-
Thread.sleep(1 << i); // give gc some times.
119+
Thread.sleep(1 << i); // give gc some time.
121120

122121
// create a soft assertion that allows getting the assertions results of all assertions
123122
// even if the first assertion is already false.
@@ -134,7 +133,7 @@ public static void performGC() {
134133
}
135134

136135
void createApplication(
137-
final ThrowingLambda.ThrowingBiConsumer<Datastore, IActivePivotManager> actions) {
136+
final ThrowingLambda.ThrowingBiConsumer<IDatastore, IActivePivotManager> actions) {
138137
final IDatastoreSchemaDescription datastoreSchema =
139138
StartBuilding.datastoreSchema()
140139
.withStore(
@@ -321,7 +320,7 @@ void createApplication(
321320
.end()
322321
.build())
323322
.build();
324-
final ApplicationInTests<Datastore> application =
323+
final ApplicationInTests<IDatastore> application =
325324
ApplicationInTests.builder()
326325
.withDatastore(datastoreSchema)
327326
.withManager(userManagerDescription)
@@ -332,7 +331,7 @@ void createApplication(
332331
}
333332

334333
void createMinimalApplication(
335-
final ThrowingLambda.ThrowingBiConsumer<Datastore, IActivePivotManager> actions) {
334+
final ThrowingLambda.ThrowingBiConsumer<IDatastore, IActivePivotManager> actions) {
336335

337336
final IDatastoreSchemaDescription datastoreSchema =
338337
StartBuilding.datastoreSchema()
@@ -382,7 +381,7 @@ void createMinimalApplication(
382381
.build())
383382
.build();
384383

385-
final ApplicationInTests<Datastore> application =
384+
final ApplicationInTests<IDatastore> application =
386385
ApplicationInTests.builder()
387386
.withDatastore(datastoreSchema)
388387
.withManager(userManagerDescription)
@@ -397,7 +396,7 @@ void createMinimalApplication(
397396
*
398397
* @param datastore datastore to fill
399398
*/
400-
static void fillApplicationMinimal(final Datastore datastore) {
399+
static void fillApplicationMinimal(final IDatastore datastore) {
401400
AtomicInteger operationsBatch = new AtomicInteger();
402401
datastore.edit(
403402
tm -> {
@@ -429,7 +428,7 @@ static void fillApplicationMinimal(final Datastore datastore) {
429428
*
430429
* @param datastore datastore to fill
431430
*/
432-
static void fillApplication(final Datastore datastore) {
431+
static void fillApplication(final IDatastore datastore) {
433432
datastore.edit(
434433
tm -> {
435434
final int peopleCount = STORE_PEOPLE_COUNT;
@@ -470,7 +469,7 @@ static void fillApplication(final Datastore datastore) {
470469
*
471470
* @param datastore datastore to fill
472471
*/
473-
static void fillApplicationMinimalWithSingleValue(final Datastore datastore) {
472+
static void fillApplicationMinimalWithSingleValue(final IDatastore datastore) {
474473
AtomicInteger operationsBatch = new AtomicInteger();
475474

476475
datastore.edit(
@@ -502,7 +501,7 @@ static void fillApplicationMinimalWithSingleValue(final Datastore datastore) {
502501
*
503502
* @param datastore datastore to fill
504503
*/
505-
static void editApplicationMinimalWithSingleValue(final Datastore datastore) {
504+
static void editApplicationMinimalWithSingleValue(final IDatastore datastore) {
506505
datastore.edit(
507506
tm -> {
508507
final int peopleCount = STORE_PEOPLE_COUNT;
@@ -534,7 +533,7 @@ static void editApplicationMinimalWithSingleValue(final Datastore datastore) {
534533
* @param datastore datastore to fill
535534
*/
536535
static void fillApplicationWithBranches(
537-
final Datastore datastore, Collection<String> branches, boolean minimalFilling)
536+
final IDatastore datastore, Collection<String> branches, boolean minimalFilling)
538537
throws IllegalArgumentException {
539538
if (minimalFilling) {
540539
fillApplicationMinimal(datastore);
@@ -940,7 +939,11 @@ ApplicationInTests<IDatastore> createDistributedApplicationWithKeepAllEpochPolic
940939
StartBuilding.cube("QueryCubeA")
941940
.withContributorsCount()
942941
.withCalculations(
943-
context -> Copper.count().multiply(Copper.constant(2L)).publish(context))
942+
context ->
943+
Copper.count()
944+
.multiply(Copper.constant(2L))
945+
.as("Contributors count times 2")
946+
.publish(context))
944947
.asQueryCube()
945948
.withClusterDefinition()
946949
.withClusterId(clusterName)

0 commit comments

Comments
 (0)