Commit Graph

198 Commits

Author SHA1 Message Date
Oliver Drotbohm
03a6700a52 GH-804 - Polishing.
Actively reject attempts to use a dedicated schema with SQL Server. Prevent schema reset being executed if no schema is used. Properly report exception during database name detection.

Original pull request: GH-808.
2024-09-11 18:31:09 +02:00
Øyvind Johannessen
a1f2eb0482 GH-804 - Support for schema initialization on Microsoft SQL Server.
Original pull request: GH-808.
2024-09-11 18:30:32 +02:00
K. Siva Prasad Reddy
2b6a0bebf2 GH-795 - Using @MockitoBean and @MockitoSpyBean. 2024-09-04 14:37:46 +02:00
Martin Beentjes
efb3729079 GH-788 - Correct package declaration in JacksonEventSerializer. 2024-08-30 17:23:19 +02:00
Oliver Drotbohm
cd0b5cf5c3 GH-748 - Allow publication completion to delete database entries.
We now expose a spring.modulith.events.completion-mode property, defaulting the previous behavior to a value of UPDATE. The property can also be configured to DELETE, which will cause the persistence implementations to flip to removing the database entries for event publications instead of setting the completion date.
2024-08-27 21:52:53 +02:00
Oliver Drotbohm
65178e42de GH-785 - Prepare next development iteration. 2024-08-23 12:36:24 +02:00
Oliver Drotbohm
fbff89425f GH-785 - Release version 1.3.0-M2. 2024-08-23 12:36:24 +02:00
Oliver Drotbohm
b17a8fcbf1 GH-774 - Upgrade to Spring Framework 6.2 M7. 2024-08-23 11:14:35 +02:00
Oliver Drotbohm
9a908ee275 GH-754 - Rename EventPublication.isPublicationCompleted() to ….isCompleted(). 2024-08-07 21:25:58 +02:00
Oliver Drotbohm
9c7537f378 GH-753 - Avoid superfluous, repeated deserialization in JdbcEventPublication.getEvent(). 2024-08-07 21:22:55 +02:00
Oliver Drotbohm
4802089604 GH-749 - Optimize publication completion by event and target identifier.
We now additionally guard the completion query by event and target identifier to also only apply to publications that have not been completed yet. This will allow databases to optimize the query plan to apply simple comparisons (the date being null) over complex comparisons (the event payload) to reduce the intermediate results to process further and thus improve performance.
2024-08-06 21:24:12 +02:00
Oliver Drotbohm
06f4cc70b0 GH-258 - Optimize publication completion to issue by-id query.
DefaultEventPublicationRegistry now tracks the event publications currently in progress, so that the completion step can use the database identifier to issue an update statement solely based on that.
2024-08-06 21:24:09 +02:00
Oliver Drotbohm
1e3a61838e GH-742 - Prepare next development iteration. 2024-07-19 01:58:03 +02:00
Oliver Drotbohm
9bf8a70c9f GH-742 - Release version 1.3.0-M1. 2024-07-19 01:58:03 +02:00
Oliver Drotbohm
c6c58277e8 GH-737 - Work around double registry registration in AWS integration tests.
Looks like Boot 3.4 registers an addition DynamicPropertyRegistry bean.
2024-07-19 01:43:59 +02:00
Oliver Drotbohm
6906aa0ea4 GH-726 - Only create event publication registry entries for after commit listeners. 2024-07-14 19:36:43 +02:00
Oliver Drotbohm
07ddeac700 GH-685 - Polishing.
Disable schema support for MySQL as it doesn't know about schemas per database.

General polishing.
2024-07-09 11:23:14 +02:00
Raed
75b3ff4cac GH-685 - Introduce spring.modulith.events.jdbc.schema to allow defining the database schema for the event_publication table. 2024-07-08 23:12:26 +02:00
Raed
6def19ed4b GH-707 - Enable tests that were mistakenly disabled. 2024-07-08 22:14:07 +02:00
Raed
de4a5dd0e3 GH-709 - Fix typo in Javadoc. 2024-07-08 22:06:33 +02:00
Oliver Drotbohm
debe021d3d GH-699 - Extract common properties of JDBC EPR test setup. 2024-07-05 10:57:34 +02:00
Oliver Drotbohm
1aef1b6191 GH-605 - Prepare next development iteration. 2024-05-24 12:56:39 +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