Informatievlaanderen / VSDS-LDESServer4J

Linked Data Event Streams Server for Java
https://informatievlaanderen.github.io/VSDS-LDESServer4J
European Union Public License 1.2
8 stars 8 forks source link

fix: mongock order failure #1266

Closed jobulcke closed 2 months ago

jobulcke commented 2 months ago

There are multiple event listeners present that listens to the ApplicationReadyEvent, not only including the mongock module, but also components that keep event streams in memory. When the project was ran by IntelliJ, no error was detected, however, an error occured every time when the project was ran via the Docker image. After looking into the code, there was no order specified which event listeners was executed first. The mongock module must have been detected every time earlier then the rest of the event listeners, but that was not the case in the Docker image, resulting in fetching entities from the db that yet have been updated causing an error. This should be resolved by adding one simple annotation

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud