Skip to content

Commit 32819d7

Browse files
committed
news
1 parent 005ad98 commit 32819d7

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

NEWS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
## 2025-mm-dd v4.5.0-SNAPSHOT
1+
## 2025-mm-dd v5.0.0-SNAPSHOT
22
* [MODSOURCE-919](https://folio-org.atlassian.net/browse/MODSOURCE-919) Fill in permissions header during event sending to Kafka
33
* [MODDICORE-464](https://folio-org.atlassian.net/browse/MODDICORE-464) Add links, linking rules setter to MarcBibRecordModifier
4+
* [MODDICORE-468](https://folio-org.atlassian.net/browse/MODDICORE-468) Upgrade to Vert.x v5.0 and RMB v36.0.0
45

56
## 2025-03-07 v4.4.0
67
* [MODDICORE-433](https://folio-org.atlassian.net/browse/MODDICORE-433) Add userId to event header and allow to send events with null token

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<groupId>org.folio</groupId>
55
<artifactId>data-import-processing-core</artifactId>
6-
<version>4.5.0-SNAPSHOT</version>
6+
<version>5.0.0-SNAPSHOT</version>
77
<packaging>jar</packaging>
88
<name>data-import-processing-core</name>
99
<organization>

src/main/java/org/folio/processing/events/services/processor/EventProcessorImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public class EventProcessorImpl implements EventProcessor {
2626

2727
@Override
2828
public CompletableFuture<DataImportEventPayload> process(DataImportEventPayload eventPayload) {
29-
LOG.debug("process:: Processing event payload jobExecutionId: {} recordId: {}",
30-
eventPayload.getJobExecutionId(), extractRecordId(eventPayload));
29+
LOG.debug("process:: Processing event payload, eventType: {} jobExecutionId: {} recordId: {}",
30+
eventPayload.getEventType(), eventPayload.getJobExecutionId(), extractRecordId(eventPayload));
3131
CompletableFuture<DataImportEventPayload> future = new CompletableFuture<>();
3232
try {
3333
Optional<EventHandler> optionalEventHandler = eventHandlers.stream()
@@ -90,8 +90,8 @@ private void logEventProcessingTime(String eventType, long startTime, DataImport
9090
eventType, profileType, profileId, (endTime - startTime) / 1000000L, eventPayload.getJobExecutionId(), extractRecordId(eventPayload));
9191
}
9292
} catch (Exception e) {
93-
LOG.warn("logEventProcessingTime:: An Exception occurred {} jobExecutionId: {} recordId: {}",
94-
e.getMessage(), eventPayload.getJobExecutionId(), extractRecordId(eventPayload));
93+
LOG.warn("logEventProcessingTime:: An Exception occurred, jobExecutionId: {} recordId: {}",
94+
eventPayload.getJobExecutionId(), extractRecordId(eventPayload), e);
9595
}
9696
}
9797

src/test/java/org/folio/processing/events/utils/RestUtilTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,7 @@ public void shouldReturnFailedFutureWhenJsonDoesntParse(TestContext testContext)
165165
RestUtil.doRequest(params, "/pubsub/publish", HttpMethod.POST, mockItem)
166166
.onComplete(postPublishResult -> {
167167
testContext.assertTrue(postPublishResult.failed());
168-
Throwable throwable = postPublishResult.cause();
169-
testContext.assertTrue(throwable instanceof EncodeException);
168+
testContext.assertTrue(postPublishResult.cause() instanceof EncodeException);
170169
async.complete();
171170
});
172171
}

0 commit comments

Comments
 (0)