Commit Graph

184 Commits

Author SHA1 Message Date
Oliver Drotbohm
b58f4ecb92 GH-741 - Release version 1.2.2. 2024-07-19 01:11:14 +02:00
Oliver Drotbohm
61bcafeaed GH-732 - Only create event publication registry entries for after commit listeners. 2024-07-14 19:23:27 +02:00
Raed
52c937a826 GH-717 - Enable tests that were mistakenly disabled. 2024-07-08 22:15:51 +02:00
Raed
2197321e66 GH-715 - Fix typo in Javadoc. 2024-07-08 22:09:17 +02:00
Oliver Drotbohm
bd2e4964fe GH-702 - Extract common properties of JDBC EPR test setup. 2024-07-05 11:18:51 +02:00
Oliver Drotbohm
62b9e7a092 GH-677 - Prepare next development iteration. 2024-06-21 13:57:05 +02:00
Oliver Drotbohm
c569a481fd GH-677 - Release version 1.2.1. 2024-06-21 13:57:05 +02:00
Oliver Drotbohm
b37e39d89e GH-605 - Prepare next development iteration. 2024-06-17 21:09:44 +02:00
Oliver Drotbohm
0d74b1b1d0 GH-605 - Release version 1.2.0. 2024-05-24 12:56:39 +02:00
Oliver Drotbohm
9a52cbf534 GH-630 - Let JdbcEventPublicationRepository implement BeanClassLoaderAware.
To make sure the event type is loaded via the RestartClassLoader when using Spring Boot Devtools.
2024-05-23 13:15:48 +02:00
Oliver Drotbohm
5780ae044b GH-627 - Improve repository interaction in DefaultEventPublicationRegistry.
DefaultEventPublicationRegistry is now directly invoking the corresponding repository to delete events older than a certain duration.
2024-05-23 10:21:07 +02:00
Oliver Drotbohm
c11198f36d GH-617 - Fix JDBC event deletion implementation.
We now augment the basic query with exactly the number of parameter placeholders as we're handing in as parameters.
2024-05-23 10:20:28 +02:00
Oliver Drotbohm
f8283fa644 GH-519 - Improve Postgres default indexes.
We now use a hash index for the serialized event to improve performance.
2024-05-21 09:03:29 +02:00
Oliver Drotbohm
4be7626855 GH-584 - Fix configuration property metadata for JSON support in Kafka and RabbitMQ. 2024-05-08 10:33:21 +02:00
Oliver Drotbohm
1e79109af9 GH-583 - java.lang.boolean -> java.lang.Boolean in configuration property metadata. 2024-05-08 10:23:42 +02:00
Benjamin Knauer
32f4cbca4d GH-549 - Use error log in PersistentApplicationEventMulticaster if listener not found.
Related pull request: GH-548.
2024-04-29 08:34:51 +02:00
Oliver Drotbohm
742ca82f8b GH-561 - Prepare next development iteration. 2024-04-19 18:56:33 +02:00
Oliver Drotbohm
c8ec877bc7 GH-561 - Release version 1.2.0-RC1. 2024-04-19 18:56:33 +02:00
Oliver Drotbohm
6b839cf6dc GH-525 - Prepare next development iteration. 2024-03-22 11:41:33 +01:00
Oliver Drotbohm
c441fdf535 GH-525 - Release version 1.2.0-M3. 2024-03-22 11:41:33 +01:00
Oliver Drotbohm
ce2f608e60 GH-536 - Add missing package-info.java files. 2024-03-22 08:48:51 +01:00
Oliver Drotbohm
639e86a7ee GH-532 - Upgrade to Spring Cloud AWS 3.1.1.
Switch to latest Localstack Docker image for testing, too.
2024-03-22 08:18:16 +01:00
Oliver Drotbohm
71a4960687 GH-529 - Upgrade to Flapdoodle MongoDB 4.12.2. 2024-03-21 23:13:26 +01:00
Oliver Drotbohm
60de42bf6c GH-518 - Support for conditions on @ApplicationModuleListener. 2024-03-14 18:07:43 +01:00
Oliver Drotbohm
b73b4ca70a GH-514 - Prepare next development iteration. 2024-02-23 16:54:58 +01:00
Oliver Drotbohm
7315c8a13e GH-514 - Release version 1.2.0-M2. 2024-02-23 16:54:57 +01:00
Oliver Drotbohm
ef7f114866 GH-510 - Upgrade to Spring Boot 3.3 M2.
Explicitly exclude Reactor Core to avoid the Neo4j reactive auto-configuration kicking in, now unconditionally registering a reactive transaction manager causing simple @Transactional declarations to break as two transaction manager beans are present.

Also upgrade to Spring Framework 6.1.4 for Javadoc reference.
2024-02-23 14:27:39 +01:00
Oliver Drotbohm
840a1b61b7 GH-403 - Polishing.
Added indexes for HSQLDB (after fix for GH-507). Removed by-listener index for MySQL as it would not be used anyway. Polished index names. Disable Spring Boot banners in tests.

Original pull request: GH-411.
2024-02-20 12:57:04 +01:00
Maciej Walkowiak
f440af943b GH-403 - Add database indexes in schema files.
Original pull request: GH-411.
2024-02-20 12:53:48 +01:00
Oliver Drotbohm
aa4b34c396 GH-507 - Improve database schema initialization for event publications.
We now use ResourceDatabasePopulator to execute the schema files creating the infrastructure for the event publication registry. This makes sure that the statements in those files are executed individually.

Related ticket: GH-403.
2024-02-20 12:53:47 +01:00
Oliver Drotbohm
43e479004d GH-491 - Polishing. 2024-02-09 12:46:35 +01:00
lukasdooo
5efc7e01f0 GH-491 - Only delete completed events. 2024-02-09 12:46:23 +01:00
Oliver Drotbohm
c5f73e675d GH-483 - Let CompletionRegisteringAdvisor forward EventExternalized event. 2024-01-29 18:42:55 +01:00
Oliver Drotbohm
c06a2c915e GH-474 - Prepare next development iteration. 2024-01-19 19:49:09 +01:00
Oliver Drotbohm
6f5886ddef GH-474 - Release version 1.2.0-M1. 2024-01-19 19:49:08 +01:00
Oliver Drotbohm
c32227bdfb GH-463 - Update copyright headers. 2024-01-17 19:45:40 +01:00
Oliver Drotbohm
6905fdd8ae GH-458 - Move off deprecated DatabaseDriver.fromDataSource(…). 2024-01-17 16:32:58 +01:00
Oliver Drotbohm
c4e6e8613d GH-451 - Polishing. 2024-01-16 20:18:00 +01:00
TAO
16cd708adf GH-435 - Fix potentially broken debug log output in PersistentApplicationEventMulticaster.
Swapped the ternary operator conditions for the 'message' variable assignment.

Fixes GH-435.
2024-01-16 20:06:18 +01:00
Oliver Drotbohm
a85a788ad2 GH-438 - Fix event externalization for RabbitMQ.
We now properly wrap the null value returned as a result from the RabbitMQ event externalization into a CompletableFuture. Tightened test case to prevent regressions going forward.
2024-01-16 19:16:36 +01:00
Oliver Drotbohm
dd6bb85e94 GH-451 - Introduce EventPublicationRepository.findCompletedPublications().
The default EventPublicationRegistry previously erroneously called find*In*completePublications(), i.e. returned incomplete publications when it was supposed to look up the completed ones. To be able to do the latter we need to extend EventPublicationRepository and introduce a query execution for all completed publications.

As we'd normally only chance API in major versions, but the bugfix needing to go into a bugfix release, the new method is introduced as default method rejecting the execution in case a currently existing repository implementation does not implement it. This allows us to adapt the implementations we ship to support the bugfix, but will require other implementations to ship an adapted version. This means we can ship a release that's not breaking assuming one of the official store implementations is used.
2024-01-16 18:09:26 +01:00
Oliver Drotbohm
31dfa45924 GH-443 - Declare most concrete type for EventPublicationRegistry configuration. 2024-01-10 14:46:42 +01:00
Oliver Drotbohm
da43c72828 GH-395 - Avoid event publication completion for failed CompletableFutures.
We now explicitly handle CompletableFuture instances returned from transactional event listeners by registering the completion handlers only on success, the debug logging on failure and immediately return the decorated instance.

Previously, a failed CompletableFuture instance would still have the publication marked completed as it doesn't cause any exception being thrown and thus ultimately ending up in the code path that issues the completion.
2023-11-28 15:27:17 +01:00
Oliver Drotbohm
5bb16e4c93 GH-393 - Prepare next development iteration. 2023-11-24 18:22:06 +01:00
Oliver Drotbohm
c6c0c0f500 GH-393 - Release version 1.1.0. 2023-11-24 18:22:06 +01:00
nkolosnjaji
2afa435722 GH-369 - Prefer MongoTemplate.findAndModify(…) over ….updateFirst(…).
Original pull request: GH-380.
2023-11-24 13:28:32 +01:00
Oliver Drotbohm
b4bb541649 GH-372 - Propagate original exception from CompletionRegisteringAdvisor.
We now propagate potentially occurring exceptions in CompletionRegisteringAdvisor to make sure the standard exception handling facilities kick in, both for synchronous and asynchronous listener invocations.

This implies that during republication we need to handle exceptions to make sure that failing synchronous listeners to not prevent the submission of subsequent publications. We currently log such exceptions into error.
2023-11-19 21:58:32 +01:00
Oliver Drotbohm
9f42ae4308 GH-368 - Polishing. 2023-11-14 11:02:21 +01:00
Oliver Drotbohm
80e53accf7 GH-368 - Integration tests. 2023-11-14 11:01:49 +01:00
Benjamin Knauer
74dda2cdae GH-368 - Consider filter handed into IncompleteEventPublications.resubmitIncompletePublications(…).
Original pull request: GH-367.
2023-11-14 11:00:41 +01:00